<?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 program from another program and passing values between them in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265678#M1529482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably multiple posts on forums about open_job function module, submit keyword, etc.  Search forums and look at your ABAP Help for submit keyword.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 11:26:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-08T11:26:20Z</dc:date>
    <item>
      <title>calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265674#M1529478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  want to call abap program (program2) from another abap program(program1). The called program 2 has its own selection screen ( or variant) and calculate multiple colums and generate output file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to pass values to this second program 2 and return one of the columns from this to first program ( program 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know how to pass values from first program to second program and then return column values to first program so that it can be used further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZSDS_DEMAND1 using selection-set 'DEMAND1' and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 10:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265674#M1529478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265675#M1529479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the option of SUBMIT you can pass your parameters from program 1 to program 2.&lt;/P&gt;&lt;P&gt;In program 2, you should use the instruction "EXPORT TO MEMORY" with data you want to pass to program 1.&lt;/P&gt;&lt;P&gt;In program 1, then, with "IMPORT FROM MEMORY", you get data passed by program 2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 10:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265675#M1529479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265676#M1529480</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;try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  SUBMIT &amp;lt;reportname&amp;gt;
          WITH fields
          EXPORTING LIST TO MEMORY AND RETURN.

* read list from memory into table
  CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
      listobject = lt_listobject.

*Spool content in Ascii format
  CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
      listobject         = lt_listobject
      listasci           = txtlines.

  CALL FUNCTION 'LIST_FREE_MEMORY'
    TABLES
      listobject = lt_listobject.


  txtlines1[] = txtlines[].
  CLEAR : txtlines .REFRESH txtlines.
  LOOP AT txtlines1.
    IF txtlines1(1) EQ '|' .                  "for every two fields the Pipe symbols will be there for alv report  
      MOVE txtlines to w_char.
      "split w_char at '|' into internal table fields
      "APPEND &amp;lt;Internaltable&amp;gt;.
    ENDIF.
  ENDLOOP.

"Use the above internal table data in other query processing
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 10:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265676#M1529480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T10:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265677#M1529481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks andrea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program 2 has it own selection screen with wmultiple fields (which is available as a variant). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want use all fields of selection screen as it except 1 column ( lets say material number) which i want to pass via program 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so basically i want to call program 2 which should use its existing selection screen parameter except one field. This one parameter field (e:gmaterial) which i want to pass via program1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 10:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265677#M1529481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265678#M1529482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably multiple posts on forums about open_job function module, submit keyword, etc.  Search forums and look at your ABAP Help for submit keyword.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 11:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265678#M1529482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: calling program from another program and passing values between them</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265679#M1529483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
          
* Calling report and export the ouput to memory
    SUBMIT &amp;lt;reportname&amp;gt;
             WITH matnr    in s_matnr      "for select options
             WITH werks eq  p_matnr     " for parameters
              EXPORTING LIST TO MEMORY AND RETURN.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 11:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-from-another-program-and-passing-values-between-them/m-p/7265679#M1529483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-08T11:33:55Z</dc:date>
    </item>
  </channel>
</rss>

