<?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 another Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081525#M975938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can send the values of selection-screen elements of the other program using the addition&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With selection-table &amp;lt;seltab&amp;gt;..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data:
  w_scrtab like table of rsparams,
  wa_scr like line of w_scrtab.

wa_scr-selname = 'P_PARAM1'.
wa_scr-kind    = 'P'.
wa_scr-sign    = 'EQ'.
wa_scr-low     = '  rin '.
wa_scr-high    = 'RAJ'.
*wa_scr-low     = 'BABU'.
append wa_scr to w_scrtab.

wa_scr-low     = 'RAJ'.
append wa_scr to w_scrtab.

submit zprog_called1
              with selection-table w_scrtab
              and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the sample code above helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Jul 2008 07:51:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-05T07:51:27Z</dc:date>
    <item>
      <title>Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081518#M975931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling another z program from one z program using submit statement. Can I automatically fill the selection-screen of the called program. The first z program is to get the open PO's. On clicking the PO number it has to open my second Z program with Purchase organization and purchase order number which i clicked from my first program come into the selection screen of the second program. Is it possible to do it. Awaiting for fast reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RajBabu...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081518#M975931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081519#M975932</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;yes you can do this.also you can export import the select options from one program to another if you are unable in submitting with select option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but first try with submit zprogram with select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while sending select option in submit statement , you wil hav to pass each and everthng with sign option low value high value in statement..so just take care of that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081519#M975932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081520#M975933</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;Its possible to acheive that kind of functionality using submit. If you are displaying the opne PO's on an interactive list, use AT-LINE SELECTION event and obtain the user selected PO (from sy-lisel). Once you do that you can transfer the data from this program to the other program using SUBMIT and run the other program to get the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above link you will be able to find different ways in which you can pass data between two programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avinash Ravipati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081520#M975933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081521#M975934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes you can do this by the following option of SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT... [VIA SELECTION-SCREEN]&lt;/P&gt;&lt;P&gt;[USING SELECTION-SET &amp;lt;var&amp;gt;]&lt;/P&gt;&lt;P&gt;[WITH &amp;lt;sel&amp;gt; &amp;lt;criterion&amp;gt;]&lt;/P&gt;&lt;P&gt;[WITH FREE SELECTIONS &amp;lt;freesel&amp;gt;]&lt;/P&gt;&lt;P&gt;[WITH SELECTION-TABLE &amp;lt;rspar&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link to get the complete details of the above statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/Utilities/ABAPReference/ABAPSUBMIT.htm" target="test_blank"&gt;http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/Utilities/ABAPReference/ABAPSUBMIT.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081521#M975934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081522#M975935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should I specify any thing in the 2nd program also. Which submit option to be taken exactly in my first program to fill the selection screen in the 2nd program....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081522#M975935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081523#M975936</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;it depends on by which you are goin...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are goin by export import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before submitting 2nd program in 1st program,export all the select optin to a memory Id.&lt;/P&gt;&lt;P&gt;and in second program at initialization or even at start of selction if there is no at selection -screen event ,you can import all the select-option from the same memory Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you are using submit with selectoptions then you don need to do anythng in your second report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;values for select options will get passed there..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081523#M975936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081524#M975937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Populate all ur select options and parameters in to one internal table of structure RSPARAMS and use below statement to submit the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: wa_rsparams-name = 'SO_MATNR',&lt;/P&gt;&lt;P&gt;   wa_rsparams-kind = 'S' "Select option.)P for parameter)&lt;/P&gt;&lt;P&gt;wa_rsparams-sign = 'I'.&lt;/P&gt;&lt;P&gt;wa_rsparams-option = 'BT'.&lt;/P&gt;&lt;P&gt;wa_rsparams-low = '10'.&lt;/P&gt;&lt;P&gt;wa_rsparams-HIGH = 10000'.&lt;/P&gt;&lt;P&gt;APPEND wa_rsparams TO i_rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUBMIT zrep2 WITH SELECTION-TABLE i_rsparams.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081524#M975937</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-05T07:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081525#M975938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can send the values of selection-screen elements of the other program using the addition&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With selection-table &amp;lt;seltab&amp;gt;..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data:
  w_scrtab like table of rsparams,
  wa_scr like line of w_scrtab.

wa_scr-selname = 'P_PARAM1'.
wa_scr-kind    = 'P'.
wa_scr-sign    = 'EQ'.
wa_scr-low     = '  rin '.
wa_scr-high    = 'RAJ'.
*wa_scr-low     = 'BABU'.
append wa_scr to w_scrtab.

wa_scr-low     = 'RAJ'.
append wa_scr to w_scrtab.

submit zprog_called1
              with selection-table w_scrtab
              and return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the sample code above helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 07:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081525#M975938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling another Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081526#M975939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all of you for your suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jul 2008 13:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-another-program/m-p/4081526#M975939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-05T13:50:25Z</dc:date>
    </item>
  </channel>
</rss>

