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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

X++ PackingSlip from WMS Journal

(0) ShareShare
ReportReport
Posted on by 3,013

I have a registered WMS Journal I create for a Purchase Order. However, I try to register the PackingSlip with this code, but the purchase order doesn't change to received.

Any ideas of what I'm missing?

static boolean Automain(Args  args)
{
    boolean ret = true;    
    PurchFormLetter_PackingSlip  purchFormLetter_PackingSlip;
    Common                  record      = args.record();
    WMSJournalTable         _WMSJournalTable;
 
 
    ttsbegin;
 
    purchFormLetter_PackingSlip = PurchFormLetter::construct(DocumentStatus::PackingSlip);
 
   _WMSJournalTable = record;
    purchFormLetter_PackingSlip.WMSJournalTable_ds(args.record().dataSource());
    purchFormLetter_PackingSlip.showQueryForm(false);
    purchFormLetter_PackingSlip.update(_WMSJournalTable,
                                                    _WMSJournalTable.journalId ,
                                                    systemDateGet(),
                                                    PurchUpdate::Recorded,
                                                    AccountOrder::None,
                                                    false,
                                                    false);
 
 
    ttscommit;
    return ret;
}

*This post is locked for comments

I have the same question (0)
  • Ghetz Profile Picture
    3,013 on at

    In order to get the job done, finally we had to populate a ParmTable as well.

    We had to call  purchFormLetter_PackingSlip.parmLineList(list.pack()); as it's done in the PurchFormLetter.main() method.

  • nerdij Profile Picture
    50 on at

    Ghetz:

            Hi. Can you show us the final x++ code to register the PackingSlip in WMSJournal?

    Thanks a lot

    //Ivan

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans