<?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: Submit Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532488#M574392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rohan...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to export a table use the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_indx TYPE indx.

  EXPORT tab = itab TO DATABASE indx(xy) FROM wa_indx CLIENT
  SY-MANDT
  ID 'DETAILLIST'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to import use this&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* imports from database the list sent by the calling program
  IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
  ID 'DETAILLIST'.

* deletes the data to save wastage of memory
  DELETE FROM DATABASE indx(xy)
    CLIENT sy-mandt
    ID 'DETAILLIST'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 08:56:56 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2007-07-20T08:56:56Z</dc:date>
    <item>
      <title>Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532484#M574388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am passing selection table in the submit statement using a struct of type rsparams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the program that im calling using Submit statment,i want to know how to use that selection table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also can anyone tell me how to use Export Import statement for passing internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers will be rewarded,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532484#M574388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532485#M574389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a FM to capture values of the selection-screen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CURR_REPORT     = L_REPID&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      SELECTION_TABLE = T_SELECT&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;      NO_REPORT       = 2&lt;/P&gt;&lt;P&gt;      OTHERS          = 3.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Where T_SELECT is table of type RSPARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using SUBMIT....&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;program name&amp;gt; USING SELECTION-SCREEN 1000&lt;/P&gt;&lt;P&gt;                        WITH SELECTION-TABLE &amp;lt;b&amp;gt;T_SELECT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532485#M574389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532486#M574390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer the following programs to pass internal tabes between programs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_82235_test1                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

wa1-a = '1'.
wa1-b = '2'.
append wa1 to itab1.
clear wa1.

wa1-a = '3'.
wa1-b = '4'.
append wa1 to itab1.
clear wa1.


export itab1 to memory id '001'.
export itab2 to memory id '002'.

submit z_82235_test2 and return exporting list to memory .


import itab1 from memory id '003'.
import itab2 from memory id '004'.

write:/ 'ITAB1'.
loop at itab1 into wa1.
write : / wa1-a, wa1-b.
clear: wa1.
endloop.

write:/ 'ITAB2'.
loop at itab2 into wa2.
write : / wa2-c, wa2-d.
clear: wa2.
endloop.



report  z_82235_test2                           .

types: begin of tab1,
         a(1),
         b(1),
       end of tab1.

types: begin of tab2,
         c(1),
         d(1),
       end of tab2.

data: itab1 type table of tab1,
      wa1 like line of itab1,
      itab2 type table of tab2,
      wa2 like line of itab2.

import itab1 from memory id '001'.
import itab2 from memory id '002'.

itab2[] = itab1[].

wa1-a = 'a'.
wa1-b = 'b'.
append wa1 to itab1.
clear wa1.




export itab1 to memory id '003'.
export itab2 to memory id '004'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532486#M574390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532487#M574391</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;Chk this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*Code used to populate 'select-options' &amp;amp; execute report  
DATA: seltab type table of rsparams,
      seltab_wa like line of seltab.

  seltab_wa-selname = 'PNPPERNR'.
  seltab_wa-sign    = 'I'.
  seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
  loop at pnppernr.
    seltab_wa-low = pnppernr-low.
    append seltab_wa to seltab.
  endloop.
  SUBMIT zreport with selection-table seltab
                                via selection-screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532487#M574391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532488#M574392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rohan...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to export a table use the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_indx TYPE indx.

  EXPORT tab = itab TO DATABASE indx(xy) FROM wa_indx CLIENT
  SY-MANDT
  ID 'DETAILLIST'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to import use this&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* imports from database the list sent by the calling program
  IMPORT tab = itab FROM DATABASE indx(xy) TO wa_indx CLIENT sy-mandt
  ID 'DETAILLIST'.

* deletes the data to save wastage of memory
  DELETE FROM DATABASE indx(xy)
    CLIENT sy-mandt
    ID 'DETAILLIST'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532488#M574392</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-20T08:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532489#M574393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the main program use the following to export to memory,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_indx TYPE indx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT tab = ITAB2 TO DATABASE indx(xy) FROM wa_indx &lt;/P&gt;&lt;P&gt;CLIENT sy-mandt ID '&amp;lt;enter a 4 letter ID&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ITAB2 is the internal table you want to pass, don't forget to mention the ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the submitted program use the following code to import,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_indx TYPE indx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import tab = ITAB from database indx(xy) to wa_indx CLIENT sy-mandt&lt;/P&gt;&lt;P&gt;id '&amp;lt;enter a 4 letter ID&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB is the table into which the data will get imported, it should have the same structure &lt;/P&gt;&lt;P&gt;as the exported table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here use the same ID as used to EXPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you're done with the import, delete the table from memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete from database indx(xy) client sy-mandt id '&amp;lt;enter a 4 letter ID&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samson Rodrigues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532489#M574393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Submit Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532490#M574394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to fill field name on the selection-screen and the values which u want on selection-screen for these fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to make sure that all required fields are appended to the table of type RSPARAMS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/2532490#M574394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T09:09:44Z</dc:date>
    </item>
  </channel>
</rss>

