<?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: Calling subroutine from SAPscript - please help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125967#M1188595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside your SAPScript  you can use PERFORM command like given below&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;&lt;/P&gt;&lt;P&gt;&amp;lt;prog&amp;gt; mentioned in the above PERFORM command refers to the print program and subroutine exits in the print program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you enter subroutine name, print program name and parameters correctly.   Parameters can be  USING or CHANGING parameters based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please create sub-routine in your print program which perform data fetching company address and fields from EINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2009 22:34:06 GMT</pubDate>
    <dc:creator>nkr1shna</dc:creator>
    <dc:date>2009-01-26T22:34:06Z</dc:date>
    <item>
      <title>Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125966#M1188594</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 help in regards to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the SAPscript form, I need to obtain 2 things using the PERFORM command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Address of the company code, passing BKPF-BUKRS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 2 fields from table EINE, passing EINA-INFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at several online tutorials on calling a subroutine from a SAPscript.&lt;/P&gt;&lt;P&gt;However, I do not understand them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 21:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125966#M1188594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T21:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125967#M1188595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside your SAPScript  you can use PERFORM command like given below&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;&lt;/P&gt;&lt;P&gt;&amp;lt;prog&amp;gt; mentioned in the above PERFORM command refers to the print program and subroutine exits in the print program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you enter subroutine name, print program name and parameters correctly.   Parameters can be  USING or CHANGING parameters based on your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please create sub-routine in your print program which perform data fetching company address and fields from EINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 22:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125967#M1188595</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2009-01-26T22:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125968#M1188596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you pass address information to a table of structure ITCSY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&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;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 22:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125968#M1188596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T22:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125969#M1188597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me in your PERFORM command in sap-script  what you wish to pass and what you are expecting back from sub-routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 22:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125969#M1188597</guid>
      <dc:creator>nkr1shna</dc:creator>
      <dc:date>2009-01-26T22:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125970#M1188598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, from the perform I will pass the company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the form, I will need to go to V001, get the address number and then get the address details from ADRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I can pass each field one by one to the SAPscript, can't I just pass the full ADRC record?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2009 23:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125970#M1188598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-26T23:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling subroutine from SAPscript - please help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125971#M1188599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this wiki on how to use subroutines inside script&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/subroutines%2band%2btheir%2buse%2bin%2bsapscript" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/subroutines%2band%2btheir%2buse%2bin%2bsapscript&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 00:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-subroutine-from-sapscript-please-help/m-p/5125971#M1188599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-27T00:30:46Z</dc:date>
    </item>
  </channel>
</rss>

