<?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 FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433751#M207040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is happening because its a remote one. Probably you can check this by commenting the submit and writing the code there.&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;TM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2006 09:01:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-15T09:01:35Z</dc:date>
    <item>
      <title>Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433748#M207037</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;I am working with BW/BPS and I am required to write an  exit function, and this exit function is sepcified in the planning function to be called from BPS. My question is - I created a FM and it only has a SUBMIT statement in the FM, how can I get it to stay at the current screen after the FM finishes? I tried to use the AND RETURN, but I would get a grey screen instead of staying at the current screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to call an executable program from this function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise,&lt;/P&gt;&lt;P&gt;RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 07:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433748#M207037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T07:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433749#M207038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/submit.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &lt;/P&gt;&lt;P&gt;Basic form&lt;/P&gt;&lt;P&gt;SUBMIT rep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions&lt;/P&gt;&lt;P&gt;1. ... LINE-SIZE col &lt;/P&gt;&lt;P&gt;2. ... LINE-COUNT lin &lt;/P&gt;&lt;P&gt;3. ... TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;4. ... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;5. ... AND RETURN &lt;/P&gt;&lt;P&gt;6. ... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;7. ... USER user VIA JOB job NUMBER n &lt;/P&gt;&lt;P&gt;8. ... Various additions for parameter transfer to rep &lt;/P&gt;&lt;P&gt;9. ... USING SELECTION-SETS OF PROGRAM prog &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Calls the report rep . Leaves the active program and starts the new report rep . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... LINE-SIZE col &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Prints the report with the line width col . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... LINE-COUNT lin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Prints the report with lin lines (per page). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 4&lt;/P&gt;&lt;P&gt;... VIA SELECTION-SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 5&lt;/P&gt;&lt;P&gt;... AND RETURN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 6&lt;/P&gt;&lt;P&gt;... EXPORTING LIST TO MEMORY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 7&lt;/P&gt;&lt;P&gt;... USER user VIA JOB job NUMBER n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN . &lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 9&lt;/P&gt;&lt;P&gt;... USING SELECTION-SETS OF PROGRAM prog &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Uses variants of the program prog when executing the program rep . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Important &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog . &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;SUBMIT REPORT01&lt;/P&gt;&lt;P&gt;       VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'VARIANT1'&lt;/P&gt;&lt;P&gt;       USING SELECTION-SETS OF PROGRAM 'REPORT00'&lt;/P&gt;&lt;P&gt;       AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;Runtime errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD_PROGRAM_NOT_FOUND : The specified program was not found. &lt;/P&gt;&lt;P&gt;SUBMIT_WRONG_TYPE : The specified program is not a report. &lt;/P&gt;&lt;P&gt;SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter. &lt;/P&gt;&lt;P&gt;SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN . &lt;/P&gt;&lt;P&gt;SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 08:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433749#M207038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433750#M207039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Use leave to list-processing&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 08:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433750#M207039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T08:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433751#M207040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is happening because its a remote one. Probably you can check this by commenting the submit and writing the code there.&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;TM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 09:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433751#M207040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T09:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433752#M207041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;  Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rep_name  VIA SELECTION-SCREEN AND RETURN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u do submit program it executes the report directly.&lt;/P&gt;&lt;P&gt;But when u use VIA SELECTION-SCREEN it stops at the screen .&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;&amp;lt;b&amp;gt;Please Mark Helpful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 09:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433752#M207041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433753#M207042</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;Thanks to all. Here is my call and it brought me to the selecion screen of the executable program. I had to try the arrows several times to get back to he BPS screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT Z_BPS_TEST VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;                  WITH P_AREA    = I_AREA&lt;/P&gt;&lt;P&gt;                  WITH P_LEVEL   = I_PLEVEL&lt;/P&gt;&lt;P&gt;                  WITH P_PCKGE   = I_PACKAGE&lt;/P&gt;&lt;P&gt;                  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think it should work because the executable program is in the same system. If there are no other options then I would have to addd the code in the FM. The problem that I having is the executable program updates all my tables but when BPS call the FM, all my updates are not processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 15:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433753#M207042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433754#M207043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;  I think ur problem was solved ; may i know what is ur problem is can help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &amp;lt;b&amp;gt;Commit Work&amp;lt;/b&amp;gt; in the FM.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 15:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433754#M207043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433755#M207044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't seem to work when I put the commit work statement; I think I have to add the code to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 15:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433755#M207044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T15:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433756#M207045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding commit work inside Z_BPS_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 15:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433756#M207045</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-06-15T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433757#M207046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;  Can u explain the flow so i can try to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where u wnt to save the data .&lt;/P&gt;&lt;P&gt;what u have do in the submit Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact&lt;/P&gt;&lt;P&gt;manoj.baijnath@wipro.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 15:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433757#M207046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T15:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SUBMIT in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433758#M207047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the offer. Actually it would be nice to have this working for me, but I have another solution to this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;P&gt;SUBMIT Z_BPS_TEST VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;       WITH P_AREA = I_AREA&lt;/P&gt;&lt;P&gt;       WITH P_LEVEL = I_PLEVEL&lt;/P&gt;&lt;P&gt;       WITH P_PCKGE = I_PACKAGE&lt;/P&gt;&lt;P&gt;       AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran this FM from the BPS planning function but it kept routing me to the program Z_BPS_TEST selection screen. &lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 22:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-submit-in-fm/m-p/1433758#M207047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-15T22:44:46Z</dc:date>
    </item>
  </channel>
</rss>

