Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

Posted on by 50

Hello everyone

I've set up my system to create a Batch Number and a serial number for certain items that are receipted.

System works as expected - we get one batch number and multiple serial numbers depending on the QTY we book in.

I'm struggling to get the printer to print a label for each serial number - at present all it does is prints the first serial number. I'm assuming this is because there is only one batch number generated.

Could someone point me in the right direction?

I've coded it using ZPL.

Thanks in advanced

  • ToddB Profile Picture
    ToddB on at
    RE: Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

    Hi RWJFuller,

    Are these considered License Plate labels?

    If so, I found the below:

    pastedimage1619207370545v1.png

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

    I don't have an AX2012 environment to check your scenario. I can see in the ZPL code that a placeholder is used. Have you verified in the AX coding what is being replaced as real value here?

  • RWJFuller Profile Picture
    RWJFuller 50 on at
    RE: Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

    Hi Andre

    ZPL code below

    ^XA

    ^FX Item ID with Barcode
    ^BY2.4,3,40
    ^FO20,56^BC,,N^FD$ItemId$^FS
    ^CF0,50
    ^FO50,100^FD$ItemId$^FS

    ^FX Item Config
    ^FO300,57^GB80,83,2^FS
    ^CF0,20
    ^FO305,65^FDConfig^FS
    ^CF0,40
    ^FO305,95^FD$ConfigId$^FS

    ^FX Item Description
    ^CF0,20,0
    ^LRY
    ^FO15,145^GB375,60,60^FS
    ^FO25,155 ^FB360,3,0,L,0 ^FD$ItemName$^FS
    ^LRN

    ^FX Item Serial Number with Barcode
    ^CF0,20
    ^FO20,215^FDSerial #^FS
    ^BY1,1,40
    ^FO20,235^BC,,N^FD$InventSerialId$^FS
    ^CF0,40
    ^FO20,280^FD$InventSerialId$^FS


    ^FO20,320^GB360,1,2^FS

    ^PQ1,,,Y

    ^XZ

    Thank you

  • RWJFuller Profile Picture
    RWJFuller 50 on at
    RE: Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

    Hi Andre

    No customisation. I've just set up the relevant item dimensions to use both serial and batch numbers. The process works as expected. When I register the items it assigns one batch and then the boys in goods-in assign a unique serial number to each item. I have a print step on my work template. I've also coded the labels to print using ZPL. My intial thought was the ^PQ function on the label code (print quantity) but after a few tweaks I could still only get it to print the first serial number from that batch.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Printing Serial Numbers upon receipting a Purchase Order AX 2012 R3 CU12

    Hi RWJFuller,

    Do you have a customization to print the serial numbers? If so, can you share the coding so we can check if you are having a loop or select first record only?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans