<?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 a program from another program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350434#M175792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you the import export as Rich mentioned  and then create range in program B and include all values form internal table into LOW field of range.&lt;/P&gt;&lt;P&gt;Then you can use range any where in program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2006 20:45:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-24T20:45:49Z</dc:date>
    <item>
      <title>Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350427#M175785</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;I have program A and program B,  need to call prg B from prg A. and need to pass values from prg A as single values in selection criteria of prog B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me how to call.&lt;/P&gt;&lt;P&gt;Answers are highly rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 01:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350427#M175785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T01:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350428#M175786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the  SUBMIT statement in Program A.. something like.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SUBMIT &amp;lt;progrm B&amp;gt; with &amp;lt;parameter&amp;gt;  = &amp;lt;value&amp;gt;
                       &amp;lt;parameter&amp;gt;  = &amp;lt;value&amp;gt;
                        .....
 AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also pl check this &lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm"&amp;gt;SAP Help&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 01:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350428#M175786</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-05-24T01:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350429#M175787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh has your solution.  Just wanted to make you aware that this also works for select-options as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT &amp;lt;progrm B&amp;gt; with &amp;lt;selectoption&amp;gt; in &amp;lt;r_value&amp;gt;
                        with &amp;lt;selectoption&amp;gt; in  = &amp;lt;r_value&amp;gt;
                        .....
 AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can pass values and internal tables thru memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program a....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;export itab = itab to memory id 'ZTEST'.
submit &amp;lt;report&amp;gt; and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program B.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import itab = itab from memory id 'ZTEST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 01:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350429#M175787</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-24T01:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350430#M175788</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;below is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT v_kunnr IS INITIAL.&lt;/P&gt;&lt;P&gt;    SUBMIT zdealer_contacts_add_edit AND RETURN&lt;/P&gt;&lt;P&gt;                                     WITH p_kunnr = v_kunnr&lt;/P&gt;&lt;P&gt;                                     WITH p_name1 = p_name1  "AVH&lt;/P&gt;&lt;P&gt;                                     WITH p_cdseq = space&lt;/P&gt;&lt;P&gt;                                     WITH p_flag = 'A'&lt;/P&gt;&lt;P&gt;                                     WITH p_addr = it_zts0001-zaddress&lt;/P&gt;&lt;P&gt;                                     WITH p_pers = it_zts0001-zcperson&lt;/P&gt;&lt;P&gt;                                     WITH p_numb = it_zts0001-zcnumber&lt;/P&gt;&lt;P&gt;                                     VIA SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it calls program zdealer_contacts_add_edit and pass the values above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 02:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350430#M175788</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-24T02:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350431#M175789</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;There are two ways , The first way is using Sumit statement.And second by using function module&lt;/P&gt;&lt;P&gt;Rzl_submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps out, Please award suitable points and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Irfan Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 03:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350431#M175789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T03:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350432#M175790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;TRY WITH THIS &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and return - returns to the calling program &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;submit zxxxx via selection-screen and return. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ZX refers to the variant. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;submit zxxxx via selection-screen using selection-set 'ZX' and return. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 03:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350432#M175790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T03:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350433#M175791</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;prog A has internal table with one field and contains multiple records, have to pass this table into selection screen field-low(Range) in Prog B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 20:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350433#M175791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T20:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350434#M175792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you the import export as Rich mentioned  and then create range in program B and include all values form internal table into LOW field of range.&lt;/P&gt;&lt;P&gt;Then you can use range any where in program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 20:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350434#M175792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350435#M175793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure,  see the sample program below.  Here we are taking values from the itab and building our RANGE,  then we are passin this RANGE to the select-option of the submitted program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: begin of itab occurs 0,
      datum type sy-datum,
      end of itab.

&amp;lt;b&amp;gt;ranges: r_datum for sy-datum.&amp;lt;/b&amp;gt;

* create some data in ITAB
itab-datum = sy-datum.
do 10 times.
  itab-datum = itab-datum  + 1.
  append itab.
enddo.

&amp;lt;b&amp;gt;


* Build the range
clear r_datum. refresh r_datum.
loop at itab.
  r_datum-sign = 'I'.
  r_datum-option = 'EQ'.
  r_datum-low = itab-datum.
  append r_datum.
endloop.&amp;lt;/b&amp;gt;

submit zreport
&amp;lt;b&amp;gt;    with s_datum in  r_datum&amp;lt;/b&amp;gt;
          and return.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 20:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350435#M175793</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-24T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a program from another program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350436#M175794</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;You code something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ranges: r_matnr for mara-matnr.

loop at &amp;lt;internal table&amp;gt;.
  r_matnr-sign   = 'I'.
  r_matnr-option = 'EQ'.
  r_matnr-low    = &amp;lt;internal table&amp;gt;-&amp;lt;field name&amp;gt;.
  append r_matnr.
endloop.

...

submit &amp;lt;program b&amp;gt; with s_matnr in r_matnr
                   and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will give you an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 20:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-program-from-another-program/m-p/1350436#M175794</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-05-24T20:50:23Z</dc:date>
    </item>
  </channel>
</rss>

