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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to determine "sales shipment header" created from "Sales Invoice Header".

(0) ShareShare
ReportReport
Posted on by 50

I have a problem regarding partial shipments and creating invoice from order. If I create an invoice a record is also added to "sales shipment header". When I want to get the "sales shipment header" by Order No. I get both the records of the orders. In my case I just want to get the records created for that shipment at that time. Is there a way to determine which  "sales shipment header" is created for "Sales Invoice Header"? Is there a relation between the two? 

Thanks in advance.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: How to determine "sales shipment header" created from "Sales Invoice Header".

    Hi, as far as I know, since there is a 1-to-many situation, they are not directly related.

    But in Item Ledger Entries and Value Entries, they are related by Item Ledger Entry No.

    pastedimage1686097358375v2.png

    pastedimage1686097374269v3.png

    pastedimage1686097384457v4.png

    Hope this can give you some hints.

    Thanks.

    ZHU

  • yaza Profile Picture
    50 on at
    RE: How to determine "sales shipment header" created from "Sales Invoice Header".

    Hi Zhu,

    Thank you for clarifying that for me.But for example: If I have a "Sales Invoice Header" and I want to get the "Sales Shipment Header" for it in AL language, How would I be able to do so? Could you please give me an example?

    What I did was: 

    SalesShipmentHeader.SetFilter("Order No.", SORNo);
    But as I mentioned before it get's all Sales shipment headers for this soru.
    Thanks in advance.
    Gr. Youssef

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans