<?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: Populate data from one program to another in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312232#M793317</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 refer to the link below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/rep_submit.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/rep_submit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2008 15:22:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-21T15:22:19Z</dc:date>
    <item>
      <title>Populate data from one program to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312228#M793313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some value from one program and have to call one transaction and in that i have an input field which shud be populated from previous value from previous program...How to do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 14:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312228#M793313</guid>
      <dc:creator>Karan_Chopra_</dc:creator>
      <dc:date>2008-01-21T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from one program to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312229#M793314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;Export to memory&lt;/STRONG&gt; and later &lt;STRONG&gt;Import from Memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you want to pass a Table to memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You have to define an internal table ITAB in program AAA.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the program AAA you export your ITAB to the memory.  &lt;/P&gt;&lt;P&gt;    EXPORT ITAB TO MEMORY ID 'TD' (ID is the name of memory, you don't need to create it ).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In program BBB you have to declare The same table (same table's name and same fields).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. In BBB you can import ITAB :  &lt;/P&gt;&lt;P&gt;    IMPORT ITAB FROM MEMORY ID 'TD'  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now you can export it to AAA after modifications.  &lt;/P&gt;&lt;P&gt;    EXPORT ITAB TO MEMORY ID 'TD' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. In AAA :  &lt;/P&gt;&lt;P&gt;    IMPORT ITAB FROM MEMORY ID 'TD' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution is independant to SUBMIT.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you just want to pass a Variable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this code from SAP Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TEXT1(10) VALUE 'Exporting'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;ITAB-BOOKID = 100 + SY-INDEX.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT TEXT1&lt;/P&gt;&lt;P&gt;TEXT2 FROM 'Literal'&lt;/P&gt;&lt;P&gt;TO MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT ITAB&lt;/P&gt;&lt;P&gt;TO MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT SAPMZTS2 AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT SAPMZTS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for SAPMZTS2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TEXT1(10),&lt;/P&gt;&lt;P&gt;TEXT3 LIKE TEXT1 VALUE 'Initial'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TEXT3 FROM MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.&lt;/P&gt;&lt;P&gt;WRITE: / SY-SUBRC, TEXT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for SAPMZTS3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM SAPMZTS3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT JTAB.&lt;/P&gt;&lt;P&gt;WRITE / JTAB-BOOKID.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;[/code]&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;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 14:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312229#M793314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T14:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from one program to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312230#M793315</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 also make use of submit statement.&lt;/P&gt;&lt;P&gt;Put submit and press f1. Check for its variation where it returns values to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: submit xyz returning a1 b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddhesh S.Tawate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 15:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312230#M793315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T15:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from one program to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312231#M793316</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;&lt;/P&gt;&lt;P&gt;For PARAMETER :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_rsparams type table of rsparams with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; move: 'FIELD1' to gt_rsparams-selname,&lt;/P&gt;&lt;P&gt;        'F'     to gt_rsparams-kind,      " PARAMETER&lt;/P&gt;&lt;P&gt;        FIELD   to gt_rsparams-low.&lt;/P&gt;&lt;P&gt;  append gt_rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; move: 'S_FIELD2' to gt_rsparams-selname,&lt;/P&gt;&lt;P&gt;        'S'      to gt_rsparams-kind.      " SELECT-OPTION&lt;/P&gt;&lt;P&gt;  if not s_FIELD2[] is initial.&lt;/P&gt;&lt;P&gt;    loop at s_FIELD2.&lt;/P&gt;&lt;P&gt;      if not s_FIELD2-high is initial.&lt;/P&gt;&lt;P&gt;        move: 'I'      to gt_rsparams-sign,&lt;/P&gt;&lt;P&gt;              'BT'     to gt_rsparams-option,&lt;/P&gt;&lt;P&gt;              s_FIELD2-low   to gt_rsparams-low,&lt;/P&gt;&lt;P&gt;              s_FIELD2-high  to gt_rsparams-high.&lt;/P&gt;&lt;P&gt;        append gt_rsparams.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        move: 'I'      to gt_rsparams-sign,&lt;/P&gt;&lt;P&gt;              'EQ'     to gt_rsparams-option,&lt;/P&gt;&lt;P&gt;              s_FIELD2-low   to gt_rsparams-low.&lt;/P&gt;&lt;P&gt;        append gt_rsparams.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endloop.&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;submit PROGRAM_NAME2 with selection-table gt_rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rEGARDS,&lt;/P&gt;&lt;P&gt;moHAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 15:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312231#M793316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data from one program to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312232#M793317</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 refer to the link below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/rep_submit.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/rep_submit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 15:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-data-from-one-program-to-another/m-p/3312232#M793317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T15:22:19Z</dc:date>
    </item>
  </channel>
</rss>

