<?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: Using SUBMIT in an ABAP program. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400863#M1842576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jörg Wulf and Always Leaner &amp;amp; all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using that approach of exporting the memory id from the transaction program. But, it still shows me the same behavior. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What it still does now:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I debug the code, it goes to the transaction program and in one swift moment comes straight back to my FM ( without filling the internal table obviously )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I learnt from poking around here and there:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;"SUBMIT program" works only for Reports?! ( with events &amp;amp; selection screen ) Is this the reason why my transaction program (&lt;SPAN style="text-decoration: underline;"&gt; which has PBO and PAI modules w/o events )&lt;/SPAN&gt; does not seem to work for this case? &lt;/STRONG&gt;(Please let me know if this is the reason WHY ? )&lt;/LI&gt;&lt;LI&gt;Also I cannot use the " Call transaction XXXX " statement in my FM because I need only the populated internal table from the transaction program and nothing else. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to access the transaction program's internal contents?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 03:39:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-06-26T03:39:38Z</dc:date>
    <item>
      <title>Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400853#M1842566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a need in my function module where I need to take the help of a transaction wherein I would require the values of an internal table ( which is populated somewhere in the transaction program ) to be passed back to my function module where I intend to use these values to populate in a structure and to do some other mumbo jumbo with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I did the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In my function module, I was able to create a structure which would hold the exact same stuff like the data of the internal table in the transaction program.&lt;/LI&gt;&lt;LI&gt;I then wrote the following SUBMIT code so it jumps to the transaction program to get the values I need.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;EXPORT internaltable &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;c_memory&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SUBMIT ZTRANSACTIONPROGRAM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;w_param1 &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'1000'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;w_param2 &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;iw_something&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;IMPORT &lt;/SPAN&gt;internaltable &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;c_memory&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;What is happening basically is :- When I debug the code, I find that the execution does go to the transaction program I want it to go. But, soon after it jumps back to the calling FM code. ( &lt;STRONG style="text-decoration: underline;"&gt;Is this because of the return statement I have added here?) &lt;/STRONG&gt;And, the internal table which is imported is empty. No values whatsoever. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;If I want it to go all the way to the line of code in the transaction program - exactly after which that internal table( which I need ) is getting populated - what would I have to do? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;I could insert some code which basically says " Hey! If my calling program is "this"(my FM)&amp;nbsp; -&amp;gt; only then copy this particular internal table at this line ( I would want to insert the code at the place where I would need a data transfer) to the memory id. " Plus, I would want this internal table to be exported so I can import it back to my FM and use it. And, may be an EXIT statement after that? So, I would not want the whole of the transaction program to execute. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Could you help me figure out how I need to code this requirement of mine in the transaction program? Is this doable? Please provide how I would need to code this out in the transaction program.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Would appreciate suggestions and alternatives to this approach. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Alice. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400853#M1842566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T16:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400854#M1842567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;i have some dificulties to get your requirement right, so here is what i understood so far:&lt;/P&gt;&lt;P&gt;You call a custom program via submit.&lt;/P&gt;&lt;P&gt;The submit is executed in a custom FM.&lt;/P&gt;&lt;P&gt;the called program collects some data, which you want to use in your FM afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is correct so far, there are several options for achieving it.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;simple, but deprecated: use common area. define your table-structure in DDIC and use tables statement. Name it the same, both in called program and FM &lt;BR /&gt;Don't use it though.&lt;/LI&gt;&lt;LI&gt;using memory: the basic idea was ok, but you need to do the export when the table is populated. That would be in the called program. The import should be ok.&lt;/LI&gt;&lt;LI&gt;create data with area handle: this is kind of the new edition of common area but with far better control of who can access and how. My favorite but needs a bit of practice.&lt;BR /&gt;To get teh knack of it, there is a fine example in the F1 documentation of create data.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope that helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400854#M1842567</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-06-25T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400855#M1842568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try with the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Data : IT_TABS &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;TYPE TABLE OF abaplist. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;SUBMIT ZTRANSACTIONPROGRAM W&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ITH &lt;/SPAN&gt;w_param1 &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'1000'&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;w_param2 &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;iw_something&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;EXPORTING LIST TO MEMORY AND RETURN. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;IF SY-SUBRC = 0.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'LIST_FROM_MEMORY' &lt;BR /&gt;&amp;nbsp; TABLES &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; listobject = &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; IT_TABS&lt;/SPAN&gt;&amp;nbsp; "Table will be having all internal table details&lt;BR /&gt;&amp;nbsp; EXCEPTIONS &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; not_found&amp;nbsp; = 1 &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG style="color: #333333; font-size: 12px; background-color: #ffffff; font-family: 'Courier New';"&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400855#M1842568</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2014-06-25T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400856#M1842569</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 try with below code after your submit system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;DATA: it_itab(20) VALUE '(&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;ZTRANSACTIONPROGRAM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;)ITAB[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;f_ITAB&amp;gt; TYPE TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGNit_itab TO &amp;lt;f_ITAB&amp;gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400856#M1842569</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2014-06-25T16:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400857#M1842570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Jörg. You have got the requirement right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I would like to use the &lt;STRONG&gt;METHOD - 2 &lt;/STRONG&gt;of what you have given above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me on how I need to code for the 'export' where the table is being populated?&lt;/P&gt;&lt;P&gt;This is exactly what I am looking for.&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, 25 Jun 2014 16:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400857#M1842570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T16:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400858#M1842571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi 'Always Leaner',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I get where you are trying to go here. This is on the same lines of what I was thinking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the import works fine in my FM but the internal table is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a little guidance where I can appropriately place my &lt;SPAN style="text-decoration: underline;"&gt;"export" code&lt;/SPAN&gt; in the transaction program where my internal table(which I need) is being populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I would want that piece of code to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;I could insert some code which basically says " Hey! If my calling program is "this"(my FM)&amp;nbsp; -&amp;gt; only then copy this particular internal table at this line ( I would want to insert the code at the place where I would need a data transfer) to the memory id. " Plus, I would want this internal table to be exported so I can import it back to my FM and use it. And, may be an EXIT statement after that? So, I would not want the whole of the transaction program to execute. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400858#M1842571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-25T16:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400859#M1842572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just reread your post and seemingly i missed the point&lt;SPAN __jive_emoticon_name="blush" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/blush.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You already have lined out a valuable aproach.&lt;/P&gt;&lt;P&gt;For the decision, whether your program is called by your FM, you could do either of:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;add an optional parameter to the program, saying Hey it's me&lt;/LI&gt;&lt;LI&gt;export a flag to memory and take the session id for memory-id&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;call &lt;SPAN class="L0S52"&gt;function &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TH_GET_SESSION_ID'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;importing&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; session_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;memid&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id_len&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_l&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thus you can ascertain, that it's not a leftover. Import it in the program &lt;BR /&gt;and you'll know when to act.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;you cannot however evaluate sy-cprog or call stack, because it gets reset by submit.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Once you're certain, that the calling was from your FM, you can export your table after populating and you can, if there's nothing more to be done, exit the program after that. The AND RETURN statement will assure, that you continue code-execution just where you left in your FM.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;than you just have to import from memory and that's it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;BR -Jörg&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 16:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400859#M1842572</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-06-25T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400860#M1842573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use sy-repid variable in &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;ZTRANSACTIONPROGRAM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example code like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-repid = 'ZCALLINGPROGRAM'&lt;/P&gt;&lt;P&gt;*After internal table is filled in &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;ZTRANSACTIONPROGRAM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Export IT_tab to memory 'ZABC'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import this internal table in zcallingprogram.&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, 25 Jun 2014 16:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400860#M1842573</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2014-06-25T16:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400861#M1842574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;you can achieve what you required, by means of export and import to/from memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would suggest however, that you reconsider the general design of both your FM and your program.&lt;/P&gt;&lt;P&gt;Have you thought of the possibility to reuse the same portion of code in both of your contexts, providing the respective caller with the content of the table?&lt;/P&gt;&lt;P&gt;This would be a clean aproach, you wouldn't have to bother with "who's calling" and exit, but just use a class or FM instead, whenever you are in need of that particular way of providing your content.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Maybe not for your actual problem but for future tasks, it is benefitial to break your code down, modulize it and use it the easy way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 17:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400861#M1842574</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-06-25T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400862#M1842575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Please check the reply I have posted to the original discussion thread.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 03:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400862#M1842575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T03:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400863#M1842576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jörg Wulf and Always Leaner &amp;amp; all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using that approach of exporting the memory id from the transaction program. But, it still shows me the same behavior. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What it still does now:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I debug the code, it goes to the transaction program and in one swift moment comes straight back to my FM ( without filling the internal table obviously )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I learnt from poking around here and there:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;"SUBMIT program" works only for Reports?! ( with events &amp;amp; selection screen ) Is this the reason why my transaction program (&lt;SPAN style="text-decoration: underline;"&gt; which has PBO and PAI modules w/o events )&lt;/SPAN&gt; does not seem to work for this case? &lt;/STRONG&gt;(Please let me know if this is the reason WHY ? )&lt;/LI&gt;&lt;LI&gt;Also I cannot use the " Call transaction XXXX " statement in my FM because I need only the populated internal table from the transaction program and nothing else. &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to access the transaction program's internal contents?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 03:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400863#M1842576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T03:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400864#M1842577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thank you. Please check the reply I have posted to the original discussion thread.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Re-use&lt;/STRONG&gt; - Sadly, I think this is the only option left &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/906/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 03:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400864#M1842577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T03:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400865#M1842578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SUBMIT statement can be used for Executable programs. Please&amp;nbsp; find the below HELP from SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm" title="http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm"&gt;http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still feel export and import statement can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow below approach .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ) Export a flag to memory in FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)set parameter ids for the ztransaction in FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Call ztransaction and skip first screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)Import flag to memory of FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)If flag eq ex, export IT_tab of ztransaction to memory.&lt;/P&gt;&lt;P&gt; free memory id of flag and exit ztransaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) Import It_tab from memory into FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 04:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400865#M1842578</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2014-06-26T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400866#M1842579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice D' Souza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please use below code.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SUBMIT ZTRANSACTIONPROGRAM&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;WITH &lt;/SPAN&gt;w_param1 &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'1000'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.818181991577148px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;WITH &lt;/SPAN&gt;w_param2 &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EQ &lt;/SPAN&gt;iw_something&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING &lt;/SPAN&gt;LIST &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;&lt;STRONG&gt;* Structure get the data from memory in ascii format....................&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lt_list &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;abaplist &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;SPAN class="L0S31"&gt;* Structure get the data from memory....................................&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lt_txtlines&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1024&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;HEADER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lt_list&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;lt_reportlines&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;REFRESH &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;lt_list[]&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;lt_reportlines[]&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'LIST_FROM_MEMORY'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listobject &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not_found&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHECK &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'LIST_TO_ASCI'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listobject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listasci&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_txtlines&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; empty_list&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list_index_invalid &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;3&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHECK &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; lt_reportlines[] &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lt_txtlines[]&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'LIST_FREE_MEMORY'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;STRONG&gt;Venkat.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 04:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400866#M1842579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T04:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400867#M1842580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you debugged the called program(your report), and checked wheather your required code is getting executed. As i think the lines of code which fills the internal table are not getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rest is correct you export the data to memory from called program(your report) and import it in calling program(your FM).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 05:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400867#M1842580</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2014-06-26T05:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400868#M1842581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1] code for function module:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10.0pt;"&gt;data: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;isel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;type table of &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rsparams.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;data: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;type &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rsparams.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;s_matnr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;type &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;matnr.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;loop at &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;it_matnr &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;into &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;s_matnr.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Select option&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;selname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'S_MAT'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;kind&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'S'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;sign&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'I'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;option&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'EQ'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;low&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;s_matnr.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;append &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;isel.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;clear: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel, s_matnr.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;endloop.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;selname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'PB_IND'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;"Radio button&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;kind&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'S'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;sign&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'I'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;option&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'EQ'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;low&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'X'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;append &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;isel.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;clear &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel.&lt;BR /&gt; &lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;selname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'DIADATE'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; "Parameters&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;kind&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'S'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;sign&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'I'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;option&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'EQ'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; xsel&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;low&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sy&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;datum.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;append &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;isel.&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;clear &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;xsel.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;submit &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;zgk_test_program&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;with selection-table &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;isel&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;and return.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;import &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;t_display &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;it_display1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;from memory id &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'t_display'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;free memory id &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'t_display'.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;append lines of &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;it_display1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;it_display.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;2] code for program:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;zgk_test_program&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; export &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;t_display &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to memory id &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'t_display'.&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;t_display is internal table &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;leave program.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 05:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400868#M1842581</guid>
      <dc:creator>gireesh_kokate</dc:creator>
      <dc:date>2014-06-26T05:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400869#M1842582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;thanks for your clarification.&lt;/P&gt;&lt;P&gt;Apparently, your program is of Type M(odulepool) and not 1.&lt;/P&gt;&lt;P&gt;This is the reason for your unseccesful trials. Aou cannot execute a modulepool via submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try CALL TRANSACTION ...&amp;nbsp; instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400869#M1842582</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-06-26T07:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400870#M1842583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. create two separate FM's(set_output and get_output) in your calling FM's function group and declare global internal table to set and get the output data of your transaction for the given input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get_output should pass the data from the global internal table and set_output should set the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use call transaction using for calling your transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Modify the called transaction and write code to call the FM to set the data through set_output into global internal table declared in step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. call the get_output fm and hence you have the output of your called transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400870#M1842583</guid>
      <dc:creator>former_member183073</dc:creator>
      <dc:date>2014-06-26T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400871#M1842584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is ZPROGRAM (customized) you can place the IMPORT in end of the Program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. &lt;/P&gt;&lt;P&gt; SUBMIT zreport with p_param1 = 'value'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with p_param2 = 'value' and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export ITAB to memory Id ''TEST. " (Inside zprogram)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import ITAB to ITAB2 from memory id 'TEST'.&amp;nbsp; " ( inside function Module)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400871#M1842584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-26T09:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in an ABAP program.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400872#M1842585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use export statement in your submit program from which you want to collect the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after executing the submit and return statement add import from memory id code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 12:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-an-abap-program/m-p/10400872#M1842585</guid>
      <dc:creator>yogesh_sharma2789</dc:creator>
      <dc:date>2014-06-26T12:09:50Z</dc:date>
    </item>
  </channel>
</rss>

