<?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/3655883#M880639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: Indeed you can use DO 5 TIMES. .SUBMIT xxxx .... ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will only make sense when you are using different values for the data on the selection screen from the report your are calling in SUBMIT. Else, the report will do the same thing 5 TIMES, while the first time is already enough??!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second: What do you mean by: 'Pass this to a function module'. Pass what to a function module and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third: There is a question about get_delete. Like I already wrote above, call the GET_DELETE report with different selection parameters. By the way: What is LAKH (1000?).&lt;/P&gt;&lt;P&gt;The fetch cursor can take care of this, but than you will have to use the PERFORM state_entries TABLES et_result before the EXIT i believe. Your code is not complete, so I'm taking a guess here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT: Do not use the FETCH and DO 5 TIMES. SUBMIT. ENDDO together. The one or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 13, 2008 10:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Apr 2008 20:31:00 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-04-13T20:31:00Z</dc:date>
    <item>
      <title>SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655882#M880638</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;If i have to SUBMIT a report 5 times within a subroutine of my main report, how is that going to be achieved? Is DO ENDDO a solution to it?&lt;/P&gt;&lt;P&gt;The situation is that i have the following code in my main report main_delete:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_as = 'X'.&lt;/P&gt;&lt;P&gt;    OPEN CURSOR WITH HOLD lv_cursor FOR&lt;/P&gt;&lt;P&gt;        SELECT * FROM dd02l&lt;/P&gt;&lt;P&gt;             WHERE  as4local = 'A' AND&lt;/P&gt;&lt;P&gt;                   ( tabclass = 'TRANSP'    OR&lt;/P&gt;&lt;P&gt;                     tabclass = 'POOL'      OR&lt;/P&gt;&lt;P&gt;                     tabclass = 'CLUSTER' ) .&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR lv_cursor&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_result&lt;/P&gt;&lt;P&gt;        PACKAGE SIZE lv_package_size.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Schdule jobs in parallel for packet of entries as defined by ****&lt;/P&gt;&lt;P&gt;****lv_package_size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        PERFORM state_entries TABLES et_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the subroutine state_entries, i have to call the other report get_delete 5 times using a SUBMIT statement and pass it to a FUNCTION MODULE . How should i achieve this? &lt;/P&gt;&lt;P&gt;Also, in get_delete, there are about 10 lakh records that are being processed. So how will the report know when is the next lot of 2 lakh records going to be processed (as defined by lv_package_size)? Will the FETCH NEXT CURSOR take care of this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 13:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655882#M880638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-13T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655883#M880639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: Indeed you can use DO 5 TIMES. .SUBMIT xxxx .... ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will only make sense when you are using different values for the data on the selection screen from the report your are calling in SUBMIT. Else, the report will do the same thing 5 TIMES, while the first time is already enough??!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second: What do you mean by: 'Pass this to a function module'. Pass what to a function module and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third: There is a question about get_delete. Like I already wrote above, call the GET_DELETE report with different selection parameters. By the way: What is LAKH (1000?).&lt;/P&gt;&lt;P&gt;The fetch cursor can take care of this, but than you will have to use the PERFORM state_entries TABLES et_result before the EXIT i believe. Your code is not complete, so I'm taking a guess here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT: Do not use the FETCH and DO 5 TIMES. SUBMIT. ENDDO together. The one or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 13, 2008 10:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 20:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655883#M880639</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-13T20:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655884#M880640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LAKH is hindi word for 100,000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 02:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655884#M880640</guid>
      <dc:creator>former_member125661</dc:creator>
      <dc:date>2008-04-14T02:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655885#M880641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to pass the report get_delete in the FM 5 times (for 200000 entries each)&lt;/P&gt;&lt;P&gt;Lakh means 100000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 13:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement/m-p/3655885#M880641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T13:40:34Z</dc:date>
    </item>
  </channel>
</rss>

