web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Inventory transfer journal from one wMSlocation to another wMSlocation

(0) ShareShare
ReportReport
Posted on by 1,027

Hi Experts,

Is it possible to transfer an item from one wMSLocationId to another with in same InventLocationId?

Consider I have two dimensions

1. InventSiteId = "S" ; InventLocationId = "WH"; wMSLocationId = "XXX"; InventDimId = 00200

2. InventSiteId = "S" ; InventLocationId = "WH"; wMSLocationId = "YYY"; InventDimId= 00741

I am trying to create Transfer journal through x++.

For the field inventJournalTrans.InventDimId, I assigned 00200 and

For the field inventJournalTrans.ToInventDimId I assigned 00741

The insert statement inventJournalTrans.Insert(); is inserting value 00200 for field inventJournalTrans.ToInventDimId

Then I tried creating transfer journal manually. "From location" and "To location" columns are not editable. I believe I am missing some setup to enable the "From location" and "To location" in Inventory Transfer journal form

Kindly guide.

Thanks,

N.Sridhar

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Guy Terry Profile Picture
    28,890 Moderator on at
    RE: Inventory transfer journal from one wMSlocation to another wMSlocation

    If Location are not available, check the Storage dimension group of the Item. Is Location 'Active' on that?

  • Community Member Profile Picture
    on at
    RE: Inventory transfer journal from one wMSlocation to another wMSlocation

    Hi Sridhar,

    Do you search for each inventdim after assigned different wmslocationId in your code?

    For example:

    inventJournalTrans.clear();

       inventJournalTrans.initFromInventJournalTable(inventJournalTable);

       inventJournalTrans.ItemId = "AAA";

       //frominventDim.wMslocationid = "";

       frominventDim.inventSiteId ="CAD";

       frominventdim.InventLocationId = "FABRICA";

       frominventdim.inventBatchId = "1a";

       //Toinventdim.wmslocationid = "";

       ToinventDim.InventSiteId = "CAD";

       ToinventDim.InventLocationId = "FERT";

       ToinventDim.inventBatchId = "1a";

       ToinventDim = InventDim::findOrCreate(ToinventDim);

       frominventDim = InventDim::findOrCreate(frominventDim);

       inventJournalTrans.InventDimId = frominventDim.inventDimId;

       inventJournalTrans.initFromInventTable(InventTable::find("AAA"));

       inventJournalTrans.Qty = 1;

       inventJournalTrans.ToInventDimId = ToinventDim.inventDimId;

       inventJournalTrans.TransDate = SystemDateget();

       inventJournalTrans.insert();

  • Sridhar Narayanan Profile Picture
    1,027 on at
    RE: Inventory transfer journal from one wMSlocation to another wMSlocation

    Thanks Terry and Parab.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans