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)

Weight update on bill of lading items form

(0) ShareShare
ReportReport
Posted on by 6,609

Good moring!

I was curious if anyone could point me to where the WMSBillOfLadingCarrier.weight field could be updated in a packing slip operation which I understand auto-generates a BOL. What I'm trying to ultimately do is populate the "Weight" column in form Bill of lading items. Handling quantity is populated but Weight isn't. Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    As I know, in all AX versions the weight field is only a entry of the WMSBillOfLadingCarrier form.

    Regards

  • bankk Profile Picture
    6,609 on at

    Thanks Denis. Do you have any advice on where to start looking for a proper place to auto-populate the weight? I don't want to impact the existing weight values already manually entered to-date however. If I can find where the BOL is auto-generated in the packing process I think I'll have what I need. Any leads would be appreciated. Thanks again.

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    Looking on WMSBillOfLading Table, constructFromPackingSlip method.

    This method is called during the Packing process from SalesFormLetter_InternalPackingSlip class, writeJournal method.

       if (this.useBillOfLading())

       {

           wmsBillOfLading = WMSBillOfLading::constructFromPackingSlip(custPckSlpJour, salesParmUpdate);

           custPckSlpJour.BillOfLadingId       = wmsBillOfLading.BillOfLadingId;

    ....

    This both for AX 2009 and AX 4.0.

    Regards

  • bankk Profile Picture
    6,609 on at

    Doh! Unfortunately I'm running on 2012R2 and I couldn't find SalesFormLetter_InternalPackingSlip. Thank you anyway Denis.

    I'll keep digging but if anyone has any ideas please let me know. Thanks much!

  • Verified answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    About AX 2012 R2, look the WmsbolItemProvider class, createOrUpdateWMSBillOfLadingCarrier method.

    About Packing, look the WmsbolItemProviderCustPackSlipTrans extends class, method initWMSBillOfLadingCarrier.

    The process start from SalesPackingSlipJournalPost class, updateJournalTable method.

    Then, is called the WMSBillOfLading table, constructFromPackingSlip method.

    Regards

  • bankk Profile Picture
    6,609 on at

    Hi Denis,

    I've put breakpoints in every class/method you mentioned but none of them have caught the execution. I followed the stack trace from a breakpoint in SalesFormLetter and lost it when I got to SysDictClass.invokeStaticMethodIL(). I'm totally confused.

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    On your user option, Development Tab, disable the CIL.

    Also, on Sales Parameter you have to set the BillOfLading to PackingSlip or Both?

    Check the code on SalesPackingSlipJournalPost class, updateJournalTable method, line 11.

    if (this.useBillOfLading())

       {

    ...

    Regards

  • bankk Profile Picture
    6,609 on at

    Hi Denis,

    Now that I'm able to catch the breakpoints i'm in much better shape to continue debugging. Many thank you's for your patience and support with my issue!

  • Denis Macchinetti Profile Picture
    16,444 on at

    Hi

    You are welcome.

    Please, remember to tick the answer as verified.

    Regards

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