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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

copy purchase order line and increment batch number

(0) ShareShare
ReportReport
Posted on by 75

when I create a new line in the purchase order the batch number is incremented with the number sequence
but when I copy a line with the standard function "Purchase order line: copy from line" I get the same batch number
I would like to get the next number
how can i fix it
Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi DJosef!

    When you copy purchase order line you copy all related field as is. The batch number is the field from InventDim table and InventDimId field is copied.

    If you want to get the next batch number you should do the process customization, i.e. you need to generate next batch number and then generate new InventDimId value.

  • DJosef Profile Picture
    75 on at

    Hi Rustem,

    thank you for your reply

    yes that's true but I did not find the code that copy InventDimId

  • Verified answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Take a look at initFromPurchLine() method on PurchLine table.

  • DJosef Profile Picture
    75 on at

    Thank you Rustem

    it is resolved

    I put my code in the "copyLine" method of the class "PurchCopying"

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans