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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Unanswered

X++ PackingSlip from WMS Journal

(0) ShareShare
ReportReport
Posted on by 3,029

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,029 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans