<?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: scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355292#M520342</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;chk this from Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 09:18:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-14T09:18:17Z</dc:date>
    <item>
      <title>scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355289#M520339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to call subroutines in scripts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355289#M520339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355290#M520340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM &amp;lt;form&amp;gt; IN PROGRAM &amp;lt;prog&amp;gt; 
/: USING &amp;amp;INVAR1&amp;amp; 
/: USING &amp;amp;INVAR2&amp;amp; 
...... 
/: CHANGING &amp;amp;OUTVAR1&amp;amp; 
/: CHANGING &amp;amp;OUTVAR2&amp;amp; 
...... 
/: ENDPERFORM 
INVAR1 
and INVAR2 are variable symbols and may be of any of the four SAPscript symbol 
types. 
OUTVAR1 
and OUTVAR2 are local text symbols and must therefore be character strings. 
The ABAP subroutine called via the command line stated above must be defined in the ABAP 
report prog as follows: 
FORM &amp;lt;form&amp;gt; TABLES IN_TAB STRUCTURE ITCSY 
OUT_TAB STRUCTURE ITCSY. 
... 
ENDFORM. 
The values of the SAPscript symbols passed with /: USING... are now stored in the internal 
table IN_TAB . Note that the system passes the values as character string to the subroutine, 
since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See 
the example below on how to access the variables. 
The internal table OUT_TAB contains names and values of the CHANGING parameters in the 
PERFORM statement. These parameters are local text symbols, that is, character fields


chk this sample code of driver program:
REPORT ZVKKSCRIPTS1 .
data: v_mat like mara-matnr,
var1 like makt-maktx.
form subroutine tables itab structure itcsy
otab structure itcsy.
read table itab with key name = 'IT_VBAP-MATNR'.
if sy-subrc = 0.
v_mat = itab-value.
select single maktx from makt into var1
where matnr = v_mat and
spras = sy-langu.
if sy-subrc = 0.
read table otab with key name = 'VAR1'.
if sy-subrc = 0.
otab-value = var1.
modify otab index sy-tabix.
endif.
endif.
endif.
endform. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355290#M520340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355291#M520341</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;perfrorm &amp;lt;formname&amp;gt; in program &amp;lt;program name&amp;gt;&lt;/P&gt;&lt;P&gt;                               using &amp;lt;i1&amp;gt;&lt;/P&gt;&lt;P&gt;                               changing&amp;lt;i2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in zprogram u have to write the form ...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form &amp;lt;form name&amp;gt;  tables &amp;lt;intab&amp;gt; structure itcsy&lt;/P&gt;&lt;P&gt;                                       &amp;lt;outtab&amp;gt; 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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355291#M520341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355292#M520342</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;chk this from Help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 09:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355292#M520342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355293#M520343</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;to all thanks for responding to my question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 09:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/2355293#M520343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T09:36:53Z</dc:date>
    </item>
  </channel>
</rss>

