Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

NAV design reports/templates in word

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    Hi Jesper

    I think the best way will be to post new questions, to make it easier for others to search for solutions.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    Hi Benny,

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    Fantastic!

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    Hi Benny,

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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV design reports/templates in word

    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!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans