Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Printing tracking number on SOP Documents

(0) ShareShare
ReportReport
Posted on by

Can anyone tell me the formula needed in Report Writer to get the courier tracking number to print on SOP documents? 

Thanks,

Jennifer Pegg

Engine Control Systems Limited

*This post is locked for comments

  • Suggested answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Printing tracking number on SOP Documents

    Jennifer,

    Here is the answer to your question regarding putting the tracking number on a SOP Document:

    TechKnowledge Content

    SUMMARY

    This article describes how to use the Report Writer function rw_CreateSOPTrackingNumberString for Tracking Numbers on Sales Order Processing Sales Invoices and Order forms.

    MORE INFORMATION

    When tracking numbers are entered in the Sales User-Defined Fields Entry window, the rw_CreateSOPTrackingNumberString function will print the Tracking Numbers on the Sales Invoice and Order Forms. This functionality was added to Great Plains Release 7.5 with Service Pack 2. To use this function, follow the steps below:

    Calculated Fields:

    1. In the Toolbox, select Calculated Fields from the drop-down list, and then click New.

    2. In the Calculated Field Definition window, type Tracking Number as the name.

    3. For the Result type, select String from the drop-down list.

    4. Select Calculated as the Expression Type.

    In the Functions section:

    1. Click in the Calculated Expression.

    2. Click the Functions tab.

    3. Select User Defined.

    4. Click the drop-down list for Core and select Sales.

    5. Click the drop-down list for Function and select rw_CreateSOPTrackingNumberString. Click Add.

    In the Fields section:

    1. Click in the Calculated area.

    2. Click the Fields tab.

    3. Click the drop-down list for Report Table and select Sales Transaction Work.

    4. Click the drop-down list for Table Fields and select SOP Number. Click Add.

    In the Fields section:

    1. Click in the Calculated area.

    2. Click the Fields tab.

    3. Click the drop-down list for Report Table and select Sales Transaction Work.

    4. Click the drop-down list for Table Fields and select SOP Type. Click Add.

    The Calculated Expression should read:

    FUNCTION_SCRIPT(rw_CreateSOPTrackingNumberStringSOP_HDR_WORK.SOP NumberSOP_HDR_WORK.SOP Type )

    Add the field to the RF section of the Invoice or Order you are modifying. It will print in alphabetical order with a comma between multiple tracking numbers.

    Note: There is a character limit of 80 when adding the Tracking Number to Invoices or Orders.

  • Suggested answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Printing tracking number on SOP Documents

    Hi Jennifer,

    Please mark this question as answered if you think this answer worked.

    Thank you,

    Leslie

  • soma Profile Picture
    soma 24,410 on at
    RE: Printing tracking number on SOP Documents

    Good luck...

  • Liane Profile Picture
    Liane on at
    RE: Printing tracking number on SOP Documents

    Thanks for the link Soma.  The possible solutions listed in the blog post look very promising.  I'm going to try out the Support Debugging Tool option.

  • Suggested answer
    soma Profile Picture
    soma 24,410 on at
    RE: Printing tracking number on SOP Documents

    Please have a look on the below link.

    blogs.msdn.com/.../how-to-get-extender-long-strings-to-display-more-than-80-characters-in-report-writer.aspx

    Hope this helps!!!

  • Liane Profile Picture
    Liane on at
    RE: Printing tracking number on SOP Documents

    This is a great post!  This works just great for users that have only a few tracking numbers linked to a SOP invoice.  However, we have a client who has some invoices with 20 tracking numbers attached and the numbers are 20 characters each so they are well over the 80 character limit.  Any ideas on how to increase the size of the field printed on the invoice?

  • Crystal Karlson Profile Picture
    Crystal Karlson 254 on at
    Re: Re: Re: Re: Re: Printing tracking number on SOP Documents

    Does anyone know where the tracking # goes once the document is posted? I know Unposted goes to SOP10700, but I would like the tracking to show up on Historical documents as well.

    Thank you!

  • Re: Re: Re: Re: Re: Printing tracking number on SOP Documents

    Hi Leslie,

     Just curious - have you ever done a parsestring with this tracking number calculated field so that it can wrap when there are more than 80 characters of tracking numbers on an order or invoice?  We had an instance where a tracking number is 17 characters in length and there can be anywhere from 1 to 15 tracking numbers per order.

    Thanks! 

    Jean 

     

  • Re: Re: Re: Re: Printing tracking number on SOP Documents

    Hi Ian,

    In 2008 you wrote about creating a table relationship with the sopTrackingNumbersWorkHist table and the Sales Transaction Work table in the Tables>Tables area of Report writer so that you could eventually get the user defined fields for tracking numbers to print on the SOP Invoice.

    I was able to set up the Table releationships but am having difficulties understanding from there how you get that sopTrackingNumbersWorkHist table attached to the SOP Invoice so you can find those fields.

    I already have the User Defined fields table related in the report from the SOP Transaction Work Table.  Is it possible to expound on this to get it to relate to the tables on the report?

    Thanks,

    Jean

  • Re: Re: Re: Re: Re: Printing tracking number on SOP Documents

    Thank you so much for the formula, this is exactly what we were looking for.  It works perfectly!!

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans