Skip to main content

Notifications

Microsoft Dynamics AX forum
Suggested answer

Is it possible to add the column "Available physical" to the Transfer Order lines?

Posted on by 135

I am fairly new to Microsoft AX, and I would like to ask if it is possible to add an Available physical item, for example on the Lines tab of the Transfer Orders whenever you add an Item, the available physical column would show up and display the available physical inventory for the selected item.

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Thanks for the input sir.

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Me neither, I was just asked to add a new column to show the physical values even though there is already an On-hand button that can be easily clicked.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Check first if there is a button called Inventory dimensions on the journal. That exists on many forms where inventory dimensions are used. With that you can select which inventory dimensions you want to see on the grid.

    If there is no such button, you can add the fields yourself from InventDim table (join with InventDimId / ToInventDimId depending on which one you need.

    I don't fully understand why would you want to filter these records to find out the on hand for different warehouses. It anyway shows only those warehouses that you already created as journal lines. On the standard On hand form you would get much more information.

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    I have finally made the Available Inventory of the item appear, for I have added a Method inside the InventTransferLine and created a new RealEdit at the Grid Design that calls the method.

    public display InventQtyAvailPhysical availPhysicalCalculated()

    {

       InventSum inventorySum;

       select sum(AvailPhysical) from inventorySum

           where this.ItemId == inventorySum.ItemId;

       return (inventorySum.AvailPhysical);

    }

    It displayed the proper Available Physical Total for the item, but my problem now is that I could not filter the Available Physical Inventory for the specific warehouse and site because there is no fields within InventTransferLine that specifies the warehouse or site, is there any workaround for this?

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Will do, thanks for the input sir.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    The issue could be that the record is not refreshed after you have put in item id and inventdim settings. If you click F5, does it help?

    What if you debug it? Do you have ItemId and InventDim and InventDimParm going in to the InventOnhand::newParameters call?

    What if you create a job that calls the on hand query with same parameters that your display method - does it return anything?

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    I have done that, yet it is still not working for me.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    You need to add the method to the data source of the form, or to the actual table. If you added it to the form level, it doesn't work.

  • Sean The Michael Profile Picture
    Sean The Michael 135 on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Thank you sirs for all the input, but I am still trying to resolve this because even though I have successfully created the column, the data does not show the output, even after setting the Data Source and Data Fields

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Is it possible to add the column "Available physical" to the Transfer Order lines?

    Hi Sean The Michael,

    If this one click is too much then take a look at the field and the method in the on-hand view and how this is implemented.

    You should be able to 'borrow' from the code that is already there.

    Best regards,

    Ludwig

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans