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)

Crete sales line item at the time of packing slip

(0) ShareShare
ReportReport
Posted on by 258

Hi,

I want to create sales line item when we opening or after opening Packing slip form. I will add one item for  the particular customer in customer form. If the sales order is created for same customer while packing slip i need to add a item (which is added in customer form), the same should be reflected into sales order line also. Please give some information to proceed. Salesline.createline(), SalesLine.inifromsalesTable() are table methods, and SalesFromLetter  class need to be used. Any other detail information would be appreciated. Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Manikanda Gopal Profile Picture
    258 on at

    Hi ,

    Here i am updating the current status..

    Please any one help to resolve this.

    void ..()

    {

    ...

    ;

       salesLine.clear();

       salesLine.SalesId = salesTable.SalesId;

       salesLine.ItemId  = "CL-100-B-D";    //your item id from form

       salesLine.SalesQty = 2;     //your qty from form

       salesLine.createLine(true, true, true, true, true, true);

       salesFormLetter =         SalesFormLetter::construct(DocumentStatus::PackingSlip);

       salesFormLetter.update(

       salesTable,

       systemdateget(),

       SalesUpdate::All,

       AccountOrder::None,

       NoYes::No,

       NoYes::No,

       false

       );

       SalesParmUpdate_ds.reread();

       SalesParmUpdate_ds.research();

       SalesParmLine_ds.reread();

       SalesParmLine_ds.research();

    }

    From the above code,

    The Sales Line was created(salesLine.createLine()) successfully . Then i want the same line should be in packing slip. For that i used SalesFromLetter.Update() method. The Update method directly posting the sales order. After that i cant able to post the invoice.

    Can anyone help to create a packing slip line with out posting.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 34

#2
Michel ROY Profile Picture

Michel ROY 14

#3
Jagadabi Profile Picture

Jagadabi 6

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans