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 NAV (Archived)

NAV design reports/templates in word

(0) ShareShare
ReportReport
Posted on by

I have made reports in Word for packing slip (208), sales Qoute (1304), sales confirmation (1305), sales invoice (1306) and sales creditnote (1307).

I have different information missing, but to start with the packing slip (208), I can only get the Quantity of delivered products on it. I need to have all these three on the product line:

  • Quantity ordered
  • Quantity delivered
  • Quantity in backorder

I have tried all the XML RTF's available, and can only get the Quantity delivered on the packing slip!

Anyone know what I can do??

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Jesper

    In order to find "Quantity Ordered" and "Quantity in backorder" in report 208 you will have to find the order line connected to the shipment line. Something like this:

    IF SalesLine.GET(SalesLine."Document Type"::Order,"Order No.","Order Line No.") THEN BEGIN

     QtyOrdered := SalesLine.Quantity;

     BackOrderQty := SalesLine.Quantity - Quantity;

    END;

    This mean you will have to create the variables and put them in the report yourself.

  • Community Member Profile Picture
    on at

    Hi Benny,

    Okay - I have looked at this, but it's a Little outside my league! I have been in the Development, and looked at the report C/AL Code, but it doesn't mean alot to me!

  • Community Member Profile Picture
    on at

    welcome to the wonderful world of NAV where plebian users are not able to do much of anything without paying their 'partners' a toll of some sort.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Jesper

    Here is a step by step guide to define your variables and put them in the report:

    When you choose design at the report choose menu "View" and then "C/AL Globals":

    Picture2.jpg

    In this window you create the variables:

    Picture3.jpg

    Back in the dataitem window you add your Quantity variables as columns:

    Picture4.jpg

    On the dataitem "Sales Shipment Line" press F9 to enter the code area:

    Picture5.jpg

    Now add the code:

    You should now be able to add the columns to your layout.

  • Community Member Profile Picture
    on at

    Hi Benny,

    This is great - thanks it works great! Just one thing - there are too many decimals, how can I change this?

  • Community Member Profile Picture
    on at

    Hi Jesper

    If you want 2 decimals you can round the result like this:

    QtyOrdered := ROUND(SalesLine.Quantity,0.01);

    BackOrderQty := ROUND(SalesLine.Quantity - Quantity,0.01);

  • Community Member Profile Picture
    on at

    Hi Benny,

    I'm beginning to see the "logic" in the coding and different areas to enter columns and so on. Could you show me an example where I get the order no. on the report 208? Working with the different examples really help understanding and working in the development!

    Thanks again.

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Jesper

    This is an easy one, since the value is present in the "Sales Shipment Header" you just have to add a new column under the "Sales Shipment Header" dataelement:

  • Community Member Profile Picture
    on at

    Fantastic!

  • Community Member Profile Picture
    on at

    Hi Benny,

    Are you up for one or two more or shall I post them as new questions?

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans