<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Print Purchase Order Document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094295#M101702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;tried that in a small prog,&lt;/P&gt;&lt;P&gt;not sure what the Kappl parameter should be, but anyway it complains about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LW_SUBRC being unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2005 18:53:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-28T18:53:18Z</dc:date>
    <item>
      <title>Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094293#M101700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is there a function, that lets you print a purchase order from the system, if not , what would the best way of doing this be?&lt;/P&gt;&lt;P&gt;I did try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function 'ME_DISPLAY_PURCHASE_DOCUMENT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works , I belive , if the document has been printed before, but not if it has not, am I correct?&lt;/P&gt;&lt;P&gt;Once printed I need the spool no.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 16:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094293#M101700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-28T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094294#M101701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Z Function module using the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One import parameter for PO num say I_PO.&lt;/P&gt;&lt;P&gt;You can have few exceptions.&lt;/P&gt;&lt;P&gt;Declare NAST Table in the global data of the function group.&lt;/P&gt;&lt;P&gt;Replace 'XXXX' with proper values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear nast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Raise exception if there is no delivery no.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF I_PO IS INITIAL.&lt;/P&gt;&lt;P&gt;    RAISE Exception.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill in the NAST header line for this label.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR NAST.&lt;/P&gt;&lt;P&gt;  NAST-OBJKY = I_PO.&lt;/P&gt;&lt;P&gt;  NAST-LDEST = 'XXXX'.&lt;/P&gt;&lt;P&gt;  NAST-SPRAS = 'EN'.&lt;/P&gt;&lt;P&gt;  NAST-TDSPRAS = 'EN'.&lt;/P&gt;&lt;P&gt;  NAST-DIMME = 'X'.               " Print Immediate' flag&lt;/P&gt;&lt;P&gt;  NAST-DELET = 'X'.            " Release after print'&lt;/P&gt;&lt;P&gt;  NAST-ANZAL = 1.                      " Specify one copy&lt;/P&gt;&lt;P&gt;  NAST-NACHA = 1.                     " output to printer&lt;/P&gt;&lt;P&gt;  NAST-VSZTP = 4.&lt;/P&gt;&lt;P&gt;  NAST-KAPPL = 'XXXX'.&lt;/P&gt;&lt;P&gt;  NAST-KSCHL = 'XXXX'.&lt;/P&gt;&lt;P&gt;  NAST-EDIKEY = 0.&lt;/P&gt;&lt;P&gt;  NAST-MANUE = 'X'.&lt;/P&gt;&lt;P&gt;  NAST-VSTAT = '0'.      " set status = not yet processed&lt;/P&gt;&lt;P&gt;  NAST-ERUHR = SY-UZEIT.&lt;/P&gt;&lt;P&gt;  NAST-ERDAT = SY-DATUM.&lt;/P&gt;&lt;P&gt;  NAST-USNAM = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert entry into NAST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  INSERT NAST.&lt;/P&gt;&lt;P&gt;  COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call sap STANDARD routines to process the message request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LW_SUBRC = 999.&lt;/P&gt;&lt;P&gt;  PERFORM EINZELNACHRICHT(RSNAST00)&lt;/P&gt;&lt;P&gt;                                   USING LW_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF LW_SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE Exception.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 17:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094294#M101701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-28T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094295#M101702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;tried that in a small prog,&lt;/P&gt;&lt;P&gt;not sure what the Kappl parameter should be, but anyway it complains about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LW_SUBRC being unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 18:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094295#M101702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-28T18:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094296#M101703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put this at the top of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lw_subrc type sy-subrc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 18:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094296#M101703</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-28T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094297#M101704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;now keep getting &lt;/P&gt;&lt;P&gt;Processing program missing for output ZARG (medium 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zstprintpreview2                                            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES nast.&lt;/P&gt;&lt;P&gt;DATA lw_subrc LIKE sy-subrc.&lt;/P&gt;&lt;P&gt;CLEAR nast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill in the NAST header line for this label.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR nast.&lt;/P&gt;&lt;P&gt;nast-objky = '4500006302'.&lt;/P&gt;&lt;P&gt;nast-ldest = '$LT4F'.&lt;/P&gt;&lt;P&gt;nast-spras = 'EN'.&lt;/P&gt;&lt;P&gt;nast-tdspras = 'EN'.&lt;/P&gt;&lt;P&gt;nast-dimme = 'X'. " Print Immediate' flag&lt;/P&gt;&lt;P&gt;nast-delet = 'X'. " Release after print'&lt;/P&gt;&lt;P&gt;nast-anzal = 1. " Specify one copy&lt;/P&gt;&lt;P&gt;nast-nacha = 1. " output to printer&lt;/P&gt;&lt;P&gt;nast-vsztp = 4.&lt;/P&gt;&lt;P&gt;nast-kappl = 'XXXX'.&lt;/P&gt;&lt;P&gt;nast-kschl = 'ZARG'.&lt;/P&gt;&lt;P&gt;nast-edikey = 0.&lt;/P&gt;&lt;P&gt;nast-manue = 'X'.&lt;/P&gt;&lt;P&gt;nast-vstat = '0'. " set status = not yet processed&lt;/P&gt;&lt;P&gt;nast-eruhr = sy-uzeit.&lt;/P&gt;&lt;P&gt;nast-erdat = sy-datum.&lt;/P&gt;&lt;P&gt;nast-usnam = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert entry into NAST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;INSERT nast.&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call sap STANDARD routines to process the message request&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;lw_subrc = 999.&lt;/P&gt;&lt;P&gt;PERFORM einzelnachricht(rsnast00)&lt;/P&gt;&lt;P&gt;USING lw_subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lw_subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  RAISE exception.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 19:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094297#M101704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-28T19:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094298#M101705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like the config has not been done.  Check the config in transaction SPRO.  Here is the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Materials Management
       Purchasing
             Messages
                   Output Control
                          Message Types
                                 Define Message Types for PUrchase ORder&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 19:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094298#M101705</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-28T19:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094299#M101706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I had in there &lt;/P&gt;&lt;P&gt;AUFB	Dunning Ord Confirm&lt;/P&gt;&lt;P&gt;ERIN	Reminder&lt;/P&gt;&lt;P&gt;MAHN	Dunning&lt;/P&gt;&lt;P&gt;MAIL	New PO printout&lt;/P&gt;&lt;P&gt;NEU	New PO printout&lt;/P&gt;&lt;P&gt;NEUS	New PO printout&lt;/P&gt;&lt;P&gt;ZEDI	Glens EDI Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i've tried it with NEUS&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2005 20:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094299#M101706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-28T20:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Print Purchase Order Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094300#M101707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Rajesh Mandalapu's suggestion has fixed the problem,&lt;/P&gt;&lt;P&gt;The spool number is returned in sy-msgv1, how reliable is it use this as the spool number I have just created, in a multi user environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 01:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-purchase-order-document/m-p/1094300#M101707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T01:27:58Z</dc:date>
    </item>
  </channel>
</rss>

