<?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: SUBROUTINE IN SAP SCRIPT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028161#M716108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can call ABAP sub routines from script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur script:&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;/ : .......................&lt;/P&gt;&lt;P&gt;/ : ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in ur report program : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT &amp;lt;prog&amp;gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;form&amp;gt; TABLES in_tab STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;in_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;check this link.....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful....&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 05:23:54 GMT</pubDate>
    <dc:creator>harimanjesh_an</dc:creator>
    <dc:date>2007-10-29T05:23:54Z</dc:date>
    <item>
      <title>SUBROUTINE IN SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028157#M716104</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;HOW WE CALL SUBROUTINE IN SAP SCRIPT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF OUR REQUIREMENT IS THT TO ADD NEW FIELD IN FORM AND U HAVE PASS VALUE THROUGH DRIVER PROGRAM FOR THT&lt;/P&gt;&lt;P&gt;  PLEASE PROVIDE ME CODE FOR THT SCENERIO&lt;/P&gt;&lt;P&gt;  PROVIDE IN EASY WAY STEP BY STEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;RAHUL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028157#M716104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: SUBROUTINE IN SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028158#M716105</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;You can define a form in your driver program of the form or in any other program.&lt;/P&gt;&lt;P&gt;form v_form tables in_par structure &amp;lt;b&amp;gt;itcsy&amp;lt;/b&amp;gt; out_par structure &amp;lt;b&amp;gt;itcsy&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;*your code here....&lt;/P&gt;&lt;P&gt;*...&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;Here the type should be ITCSY for input and output parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call this form in your script ...&lt;/P&gt;&lt;P&gt;/:PERFORM v_form IN PROGRAM z_prog&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;EKKO-EBELN&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A1&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A2&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A3&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A4&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A5&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;A6&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028158#M716105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUBROUTINE IN SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028159#M716106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HiRahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sapscript editor: use following syntax: &lt;/P&gt;&lt;P&gt;perfrom '&amp;lt;b&amp;gt;Perform&amp;lt;/b&amp;gt; name' &amp;lt;b&amp;gt;in prog&amp;lt;/b&amp;gt;ram '(se38 program name)' &lt;/P&gt;&lt;P&gt;                            &amp;lt;b&amp;gt;using&amp;lt;/b&amp;gt; &amp;amp;variable name&amp;amp; &lt;/P&gt;&lt;P&gt;                            &amp;lt;b&amp;gt;changing&amp;lt;/b&amp;gt; &amp;amp;variable name&amp;amp;.&lt;/P&gt;&lt;P&gt;            &amp;lt;b&amp;gt;Endperform.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Se38 program with the name used in the perform statement and write the code in it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info: refer the link...good one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:13:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028159#M716106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: SUBROUTINE IN SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028160#M716107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul&lt;/P&gt;&lt;P&gt;u want add field na go to se71 and change mode where u want add filed in main r header r footer add the filed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program u retrive the data from itab thats all .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028160#M716107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T05:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUBROUTINE IN SAP SCRIPT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028161#M716108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can call ABAP sub routines from script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur script:&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;/ : .......................&lt;/P&gt;&lt;P&gt;/ : ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in ur report program : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT &amp;lt;prog&amp;gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;form&amp;gt; TABLES in_tab STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;in_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;check this link.....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward me if useful....&lt;/P&gt;&lt;P&gt;Harimanjesh AN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 05:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-in-sap-script/m-p/3028161#M716108</guid>
      <dc:creator>harimanjesh_an</dc:creator>
      <dc:date>2007-10-29T05:23:54Z</dc:date>
    </item>
  </channel>
</rss>

