<?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: ab sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630805#M604909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions and other Export, Import parameters are self-explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print control means maintaining the parameters related to that output type to print the script printout. &lt;/P&gt;&lt;P&gt;SAPScripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Link for SAP Scripts (step by step procedure)&lt;/P&gt;&lt;P&gt;&lt;A href="http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html&amp;lt;/b&amp;gt;" target="test_blank"&gt;http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html&amp;lt;/b&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP SCRIPT FIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scripts easy material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/sap_script_made_easy.html" target="test_blank"&gt;http://www.allsaplinks.com/sap_script_made_easy.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 05:40:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T05:40:49Z</dc:date>
    <item>
      <title>ab sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630804#M604908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;   please explain what is print control ? what is the use of that?&lt;/P&gt;&lt;P&gt;if u r using only one layout in sapscript what is the use of using start_form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    in my sapscript i need according to p doc no . i need total weight,also&lt;/P&gt;&lt;P&gt;output should look like:&lt;/P&gt;&lt;P&gt;     each of the weight and the total&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;eg : first item                  1200&lt;/P&gt;&lt;P&gt;       second item             5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           total                  6200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to that pls explain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 05:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630804#M604908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T05:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: ab sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630805#M604909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED. Some of the important export parameters for this function module are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form: The parameter contains the name of the layout set you want to use for printing. If you specify no layout set here, the system restarts the last active layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Language: Layout sets are language-dependent. Enter the desired language here. If the layout set does not exist in this language, the system tries to call the layout set in its original language. If the parameter LANGUAGE is empty, the system uses the language of the last active layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startpage: Usually, SAP script starts with the page specified as start page in the layout set definition. If we want to start output with another layout set page, enter the name of the desired layout set page here. If the desired page is not defined, the system uses the start page defined in the layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program: To replace program symbols, SAP script must know which active program contains the work areas for the values to be passed. If we omit the parameter, the system searches for the field values in the program that was specified in the parameter OPTIONS (field TDPROGRAM) of OPEN_FORM. If we enter a program name, the system replaces the program symbols with the values from this program up to the next END_FORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions and other Export, Import parameters are self-explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Print control means maintaining the parameters related to that output type to print the script printout. &lt;/P&gt;&lt;P&gt;SAPScripts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Link for SAP Scripts (step by step procedure)&lt;/P&gt;&lt;P&gt;&lt;A href="http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html&amp;lt;/b&amp;gt;" target="test_blank"&gt;http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPSCRIPT.html&amp;lt;/b&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf" target="test_blank"&gt;http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf" target="test_blank"&gt;http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf" target="test_blank"&gt;http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf" target="test_blank"&gt;http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf" target="test_blank"&gt;http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP SCRIPT FIELDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scripts easy material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/sap_script_made_easy.html" target="test_blank"&gt;http://www.allsaplinks.com/sap_script_made_easy.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 05:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630805#M604909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T05:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: ab sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630806#M604910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Use of PRINT-CONTROL in SAPscript&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SAP Note No. 66478 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Symptom&lt;/P&gt;&lt;P&gt;     What do I have to bear in mind when using the PRINT-CONTROL command in SAPscript texts or forms?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Additional key words&lt;/P&gt;&lt;P&gt;     SAPscript, PRINT-CONTROL, printer control, bar code&lt;/P&gt;&lt;P&gt;     Cause and preconditions&lt;/P&gt;&lt;P&gt;     Information requirement in addition to the documentation&lt;/P&gt;&lt;P&gt;     Solution&lt;/P&gt;&lt;P&gt;     The PRINT-CONTROL command in SAPscript (see note 5196 or ABAP/4 syntax&lt;/P&gt;&lt;P&gt;     documentation for the command PRINT-CONTROL) was implemented so that it&lt;/P&gt;&lt;P&gt;     is possible to include printer-specific commands in SAPscript texts and&lt;/P&gt;&lt;P&gt;     forms.These commands are used to call special functions on the printer&lt;/P&gt;&lt;P&gt;     or output device that are not supported by the existing SAPscript&lt;/P&gt;&lt;P&gt;     printer drivers. PRINT-CONTROL enables you to modify the print data&lt;/P&gt;&lt;P&gt;     stream created by the SAPscript printer drivers within certain limits or&lt;/P&gt;&lt;P&gt;     to send additional commands.&lt;/P&gt;&lt;P&gt;     The SAP standard (or standard forms of the SAP applications) does not&lt;/P&gt;&lt;P&gt;     use any print CONTROL commands in SAPscript, because these are always&lt;/P&gt;&lt;P&gt;     printer-specific and may lead to unforseeable consequences as well as&lt;/P&gt;&lt;P&gt;     problems during the upgrade.&lt;/P&gt;&lt;P&gt;     Information on using the command PRINT-CONTROL in SAPscript texts or&lt;/P&gt;&lt;P&gt;     forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The print control, which is issued via the PRINT-CONTROL command, should&lt;/P&gt;&lt;P&gt;     always be a print control created in the customer namespace (Zxxxx) for&lt;/P&gt;&lt;P&gt;     the device type used. You should not use any Sxxxx print controls as&lt;/P&gt;&lt;P&gt;     their contents may change at any time due to SAP release and driver&lt;/P&gt;&lt;P&gt;     updates. Refer to note 3166 for information on how to modify SAP device&lt;/P&gt;&lt;P&gt;     types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The printer commands contained in the print control should not affect&lt;/P&gt;&lt;P&gt;     the current printer settings because the SAPscript printer driver does&lt;/P&gt;&lt;P&gt;     not have any information regarding the changes that may be triggered by&lt;/P&gt;&lt;P&gt;     a print control and that would, therefore, have to be reset by&lt;/P&gt;&lt;P&gt;     printer-specific commands. The printer driver assumes that the print&lt;/P&gt;&lt;P&gt;     control does not affect the texts/graphics issued subsequently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You should never use PRINT-CONTROL for controlling print attributes&lt;/P&gt;&lt;P&gt;     already contained in the SAPscript driver. You must change these&lt;/P&gt;&lt;P&gt;     attributes in the normal way via the form or style definitions and the&lt;/P&gt;&lt;P&gt;     definition of device types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In particular, you should never use PRINT-CONTROL to change the current&lt;/P&gt;&lt;P&gt;     font, font attributes (such as Unterline, Bold, and Italics), paper&lt;/P&gt;&lt;P&gt;     tray, print mode (one-sided/double-sided), current character set, print&lt;/P&gt;&lt;P&gt;     position, text color, coordinate system, page orientation, and so on as&lt;/P&gt;&lt;P&gt;     this may affect the print output of any subsequent regular text. In each&lt;/P&gt;&lt;P&gt;     case, the particular text/form author using PRINT-CONTROL is responsible&lt;/P&gt;&lt;P&gt;     for the consequences of using the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     SAP cannot provide any support for print output errors caused by&lt;/P&gt;&lt;P&gt;     PRINT-CONTROL commands or implement program modifications in the SAP&lt;/P&gt;&lt;P&gt;     standard due to these errors.&lt;/P&gt;&lt;P&gt;     The recommendations of this note are equally valid for ABAP lists (and&lt;/P&gt;&lt;P&gt;     the use of the ABAP PRINT-CONTROL command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The following example makes clear why using PRINT-CONTROL is "dangerous"&lt;/P&gt;&lt;P&gt;     in SAPscript:&lt;/P&gt;&lt;P&gt;     In the window of an SAPscript form the following text is entered:&lt;/P&gt;&lt;P&gt;     /: PRINT-CONTROL ZPRCT&lt;/P&gt;&lt;P&gt;     =  command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     In this case you expect that the contents of the print control ZPRCT&lt;/P&gt;&lt;P&gt;     will appear and directly afterwards the text "command" (at least for&lt;/P&gt;&lt;P&gt;     device types operated with HPL2 (PCL-5) or STN2 (line printer) during&lt;/P&gt;&lt;P&gt;     the print output of the form window. However, this does not have to be&lt;/P&gt;&lt;P&gt;     the case!For the SAPscript printer drivers, the first text to be printed&lt;/P&gt;&lt;P&gt;     in this form window is the string "command" since the driver does not&lt;/P&gt;&lt;P&gt;     know what is triggered by the data contained in the Printcontrol ZPRCT&lt;/P&gt;&lt;P&gt;     at the printer.For this reason the printer driver may first send the&lt;/P&gt;&lt;P&gt;     contents of the print control ZPRCT, then execute a character set&lt;/P&gt;&lt;P&gt;     selection and/or the font selection (to choose the current font) and&lt;/P&gt;&lt;P&gt;     after this, send the string "command".In this case, print commands are&lt;/P&gt;&lt;P&gt;     sent by the driver to the printer between the print control and the&lt;/P&gt;&lt;P&gt;     string "command"!&lt;/P&gt;&lt;P&gt;     You basically cannot rely on the printer driver not to insert print&lt;/P&gt;&lt;P&gt;     commands between PRINT-CONTROL xxxxx commands and "normal" text in a&lt;/P&gt;&lt;P&gt;     SAPscript text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 05:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ab-sapscript/m-p/2630806#M604910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T05:44:52Z</dc:date>
    </item>
  </channel>
</rss>

