<?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: SAP SCRIPT Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442630#M826781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasudha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanx for your Replya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in your Example, The variable BARCODE is not decalred in my SCRIPT Driver program. So Where it will be declared ? I can not declare it in Driver program, becuase it is a standard modification. then how can i pass value to the changing parameteres of the subroutine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun Sanghi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 08:58:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T08:58:45Z</dc:date>
    <item>
      <title>SAP SCRIPT Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442627#M826778</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;     I am facing one problem in SAP script while I am customizing PO Printout according to client requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have to do is to print the company's excise details on the PO Print, for that i have written a external subroutine to fetch the data and to pass the script. But now the problem is that i dont the variable to which i must the pass the excise details data for printout. &lt;/P&gt;&lt;P&gt;I tried to  create same variable in top inclue of print program of MEDRUCK Script SAPFM06P. But all in vain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POINTs SURELY WILL BE REWARDED,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442627#M826778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442628#M826779</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;Refer this piece of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax in a form window: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM &amp;lt;form&amp;gt; IN PROGRAM &amp;lt;prog&amp;gt; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR1&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR2&amp;amp; &lt;/P&gt;&lt;P&gt;...... &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR1&amp;amp; &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR2&amp;amp; &lt;/P&gt;&lt;P&gt;...... &lt;/P&gt;&lt;P&gt;/: ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVAR1 and INVAR2 are variable symbols and may be of any of &lt;/P&gt;&lt;P&gt;the four &lt;/P&gt;&lt;P&gt;SAPscript symbol types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTVAR1 and OUTVAR2 are local text symbols and must &lt;/P&gt;&lt;P&gt;therefore be &lt;/P&gt;&lt;P&gt;character strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP subroutine called via the command line stated &lt;/P&gt;&lt;P&gt;above must be &lt;/P&gt;&lt;P&gt;defined in the ABAP report prog as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;form&amp;gt; TABLES IN_TAB STRUCTURE ITCSY &lt;/P&gt;&lt;P&gt;OUT_TAB STRUCTURE ITCSY. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of the SAPscript symbols passed with /: USING... &lt;/P&gt;&lt;P&gt;are now &lt;/P&gt;&lt;P&gt;stored in the internal table IN_TAB . Note that the system &lt;/P&gt;&lt;P&gt;passes the &lt;/P&gt;&lt;P&gt;values as character string to the subroutine, since the &lt;/P&gt;&lt;P&gt;field Feld &lt;/P&gt;&lt;P&gt;VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR &lt;/P&gt;&lt;P&gt;80). See the &lt;/P&gt;&lt;P&gt;example below on how to access the variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table OUT_TAB contains names and values of the &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;parameters in the PERFORM statement. These parameters are &lt;/P&gt;&lt;P&gt;local text &lt;/P&gt;&lt;P&gt;symbols, that is, character fields. See the example below &lt;/P&gt;&lt;P&gt;on how to &lt;/P&gt;&lt;P&gt;return the variables within the subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From within a SAPscript form, a subroutine GET_BARCODE in &lt;/P&gt;&lt;P&gt;the ABAP &lt;/P&gt;&lt;P&gt;program QCJPERFO is called. Then the simple barcode &lt;/P&gt;&lt;P&gt;contained there &lt;/P&gt;&lt;P&gt;('First page', 'Next page', 'Last page') is printed as &lt;/P&gt;&lt;P&gt;local variable &lt;/P&gt;&lt;P&gt;symbol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition in the SAPscript form: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;PAGE&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;NEXTPAGE&amp;amp; &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;BARCODE&amp;amp; &lt;/P&gt;&lt;P&gt;/: ENDPERFORM &lt;/P&gt;&lt;P&gt;/ &lt;/P&gt;&lt;P&gt;/ &amp;amp;BARCODE&amp;amp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coding of the calling ABAP program: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT QCJPERFO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY &lt;/P&gt;&lt;P&gt;OUT_PAR STRUCTURE ITCSY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: PAGNUM LIKE SY-TABIX, "page number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXTPAGE LIKE SY-TABIX. "number of next page &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY 'PAGE'. &lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;PAGNUM = IN_PAR-VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IN_PAR WITH KEY 'NEXTPAGE'. &lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;NEXTPAGE = IN_PAR-VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_PAR WITH KEY 'BARCODE'. &lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;IF PAGNUM = 1. &lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = '|'. "First page &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE = '||'. "Next page &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NEXTPAGE = 0. &lt;/P&gt;&lt;P&gt;OUT_PAR-VALUE+2 = 'L'. "Flag: last page &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_PAR INDEX SY-TABIX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442628#M826779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442629#M826780</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;Please follow the below procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Write your external subroutine in the layout where you exactly you want to print the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_TEXT IN PROGRAM ZPRTTEXT  &lt;/P&gt;&lt;P&gt;USING &amp;amp;NAST-SPRAS&amp;amp;                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a new Z/Y program, and write your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_text tables in_tab structure itcsy&lt;/P&gt;&lt;P&gt;                             out_tab structure itcsy.&lt;/P&gt;&lt;P&gt;tables: zmtx.&lt;/P&gt;&lt;P&gt;data: begin of i_text occurs 0,&lt;/P&gt;&lt;P&gt;      langu like zmtx-langu,&lt;/P&gt;&lt;P&gt;      sortseq like zmtx-sortseq,&lt;/P&gt;&lt;P&gt;      text like zmtx-text,&lt;/P&gt;&lt;P&gt;      end of i_text.&lt;/P&gt;&lt;P&gt;data: v_count type i value 1,&lt;/P&gt;&lt;P&gt;      v_langu like zmtx-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table in_tab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERSION_EXIT_ISOLA_INPUT'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    input                 = in_tab-value&lt;/P&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   output                 = v_langu&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_LANGUAGE       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select langu sortseq text from zmtx&lt;/P&gt;&lt;P&gt;into table i_text&lt;/P&gt;&lt;P&gt;where langu = v_langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_text.&lt;/P&gt;&lt;P&gt;condense i_text-text.&lt;/P&gt;&lt;P&gt;read table out_tab index sy-tabix.&lt;/P&gt;&lt;P&gt;out_tab-value = i_text-text.&lt;/P&gt;&lt;P&gt;modify out_tab from out_tab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100% you will get correct data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442629#M826780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442630#M826781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vasudha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanx for your Replya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in your Example, The variable BARCODE is not decalred in my SCRIPT Driver program. So Where it will be declared ? I can not declare it in Driver program, becuase it is a standard modification. then how can i pass value to the changing parameteres of the subroutine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun Sanghi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 08:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442630#M826781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442631#M826782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create a Z program and this subroutine is a part of the Z program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 09:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-problem/m-p/3442631#M826782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T09:19:00Z</dc:date>
    </item>
  </channel>
</rss>

