<?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: Submitting screen elements to standard Program MI20 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247016#M1630675</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've checked the code of the standard program RM07IDIF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After coming out from ALV function is called the routine NEUSTART:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM neustart USING x_selection_screen TYPE c.

  DATA: l_rsparams LIKE STANDARD TABLE OF rsparams WITH HEADER LINE.

  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
            CURR_REPORT     = g_f_repid                     "n627513

       TABLES
            selection_table = l_rsparams
       EXCEPTIONS
            not_found       = 1
            no_report       = 2
            OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
*   Programm neu starten mit den vorhandenen Selektionskriterien
    IF x_selection_screen IS INITIAL.
      SUBMIT (g_f_repid) WITH SELECTION-TABLE L_RSPARAMS.   "n627513
    ELSE.
      SUBMIT (g_f_repid) VIA SELECTION-SCREEN               "n627513
                      WITH SELECTION-TABLE l_rsparams.
    ENDIF.
  ENDIF.
ENDFORM.                               " NEUSTART&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it seems the report callis itself again, that routine is skipped only if the user presses the button for the exit (Shift+F3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF g_exit_by_user-exit = x.  "This is returned by ALV 
    LEAVE PROGRAM.                     "&amp;lt;----Leave the program, so it can go to your selection-screen
  ENDIF.

  IF sy-batch IS INITIAL.
  PERFORM neustart USING x.        "&amp;lt;----Here it calls itself, so it goes to selection.screen of RM07IDIF
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you need to change RM07IDIF, try to check how to skip the routine NEUSTART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 14:13:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-23T14:13:09Z</dc:date>
    <item>
      <title>Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247012#M1630671</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 designing custom selection screen and submitting custom elements to MI20 standard program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine but when i click back button from output screen it is going to standard program Selection scree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to avoid this please help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247012#M1630671</guid>
      <dc:creator>Jagadish_ac</dc:creator>
      <dc:date>2011-09-23T13:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247013#M1630672</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 should use the SUBMIT statament:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT RM07IDIF.......AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247013#M1630672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T13:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247014#M1630673</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;Check whether the return statement is used with Submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORT1 USING SELECTION-SCREEN '1100' &lt;/P&gt;&lt;P&gt;AND RETURN. &lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247014#M1630673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247015#M1630674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i click back button from my output screen it is going to Standard Selection screen after clicking back button it is coming to my  selection screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247015#M1630674</guid>
      <dc:creator>Jagadish_ac</dc:creator>
      <dc:date>2011-09-23T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247016#M1630675</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've checked the code of the standard program RM07IDIF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After coming out from ALV function is called the routine NEUSTART:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM neustart USING x_selection_screen TYPE c.

  DATA: l_rsparams LIKE STANDARD TABLE OF rsparams WITH HEADER LINE.

  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
            CURR_REPORT     = g_f_repid                     "n627513

       TABLES
            selection_table = l_rsparams
       EXCEPTIONS
            not_found       = 1
            no_report       = 2
            OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
*   Programm neu starten mit den vorhandenen Selektionskriterien
    IF x_selection_screen IS INITIAL.
      SUBMIT (g_f_repid) WITH SELECTION-TABLE L_RSPARAMS.   "n627513
    ELSE.
      SUBMIT (g_f_repid) VIA SELECTION-SCREEN               "n627513
                      WITH SELECTION-TABLE l_rsparams.
    ENDIF.
  ENDIF.
ENDFORM.                               " NEUSTART&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it seems the report callis itself again, that routine is skipped only if the user presses the button for the exit (Shift+F3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF g_exit_by_user-exit = x.  "This is returned by ALV 
    LEAVE PROGRAM.                     "&amp;lt;----Leave the program, so it can go to your selection-screen
  ENDIF.

  IF sy-batch IS INITIAL.
  PERFORM neustart USING x.        "&amp;lt;----Here it calls itself, so it goes to selection.screen of RM07IDIF
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you need to change RM07IDIF, try to check how to skip the routine NEUSTART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247016#M1630675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247017#M1630676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is no other way. because it is big program i need to copy everything to Z program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is complicated i guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247017#M1630676</guid>
      <dc:creator>Jagadish_ac</dc:creator>
      <dc:date>2011-09-23T14:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247018#M1630677</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 create an Implicit enhancement at the beginning of the routine NEUSTART:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM neustart USING x_selection_screen TYPE c.
"Insert an Implicit enhacement here
IF SY-TCODE = &amp;lt;.my transaction&amp;gt;. EXIT ENDIF.  "&amp;lt;--You can add a piece of code like that

  DATA: l_rsparams LIKE STANDARD TABLE OF rsparams WITH HEADER LINE.

  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
       EXPORTING
            CURR_REPORT     = g_f_repid                     "n627513

       TABLES
            selection_table = l_rsparams
       EXCEPTIONS
            not_found       = 1
            no_report       = 2
            OTHERS          = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ELSE.
*   Programm neu starten mit den vorhandenen Selektionskriterien
    IF x_selection_screen IS INITIAL.
      SUBMIT (g_f_repid) WITH SELECTION-TABLE L_RSPARAMS.   "n627513
    ELSE.
      SUBMIT (g_f_repid) VIA SELECTION-SCREEN               "n627513
                      WITH SELECTION-TABLE l_rsparams.
    ENDIF.
  ENDIF.
ENDFORM.                               " NEUSTART&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247018#M1630677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T14:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Submitting screen elements to standard Program MI20</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247019#M1630678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you MAX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try this code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submitting-screen-elements-to-standard-program-mi20/m-p/8247019#M1630678</guid>
      <dc:creator>Jagadish_ac</dc:creator>
      <dc:date>2011-09-23T14:39:25Z</dc:date>
    </item>
  </channel>
</rss>

