<?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: PO form (SAPSCRIPT form) setup in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807638#M41476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can suggest this as i have not personally tried. Since in the configuration you mention the print program as well as the form name for the output type NEU(Purchase order output type) and in the processing routines you give the print program and the layout set name i guess it will take that layout set. In this case you having to mention two forms would not be possible but would it be possible to leave the form name blank there and in the print program you can use a different form if the plant differs.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;IF EKPO-WERKS = 'PLANT1'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;ELSEIF EKPO-WERKS = 'PLANT2'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2004 09:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-08-24T09:47:18Z</dc:date>
    <item>
      <title>PO form (SAPSCRIPT form) setup</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807637#M41475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to have multiple PO form (SAPSRIPTs) per given plant? i.e. plant 1 will create/use PO form1, plant 2 will use PO form2. the purpose is have one plant print it in an 80 col. printer landscape, the other form on a 132 col. printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much,&lt;/P&gt;&lt;P&gt;rico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2004 09:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807637#M41475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-24T09:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: PO form (SAPSCRIPT form) setup</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807638#M41476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can suggest this as i have not personally tried. Since in the configuration you mention the print program as well as the form name for the output type NEU(Purchase order output type) and in the processing routines you give the print program and the layout set name i guess it will take that layout set. In this case you having to mention two forms would not be possible but would it be possible to leave the form name blank there and in the print program you can use a different form if the plant differs.&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;IF EKPO-WERKS = 'PLANT1'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;ELSEIF EKPO-WERKS = 'PLANT2'.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2004 09:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807638#M41476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-24T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: PO form (SAPSCRIPT form) setup</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807639#M41477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be controlled Using Condition Records. In condition records you can specify Document Type / Pur Org and Output device. If your plant is linked to a Pur Org and Pur Organinaztion is unique for a PLANT you can use this technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2004 16:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807639#M41477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-24T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: PO form (SAPSCRIPT form) setup</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807640#M41478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rico,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your goal is to print two different forms from the same PO, one possible approach is as follows:&lt;/P&gt;&lt;P&gt;(1) Set up two output message types based on NEU -- such as 'Z80L' (for 80 col. landscape) and 'Z132' (for the other).  Both could be hooked into the same print program (if need be) yet different SAPscript forms.&lt;/P&gt;&lt;P&gt;(2) Build a condition table with plant as part of the key.&lt;/P&gt;&lt;P&gt;(3) Configure output determination for the relevant procedure to include these new message types, with the plant condition table in the access path for both of them.&lt;/P&gt;&lt;P&gt;(4) Load unique plant-specific condition records under each output type, specifying the appropriate printer in the communications tab (e.g. plant 1 would go under Z80L with printer ZABC while plant 2 would go under Z132 with printer ZDEF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During document-based automated output proposal, SAP will scan through both output types' condition records.  When it finds a plant that matches the one on the PO it will act on the corresponding message type which will then route the correct form to the correct printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: One thing you didn't mention is whether the plant field you wish to use is at the header level (ekko-reswk) or item-level (ekpo-werks).  If the latter, there may be additional work involved.  In any case, I hope the above is enough to get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2004 06:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/po-form-sapscript-form-setup/m-p/807640#M41478</guid>
      <dc:creator>msmithson</dc:creator>
      <dc:date>2004-08-25T06:10:17Z</dc:date>
    </item>
  </channel>
</rss>

