<?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: From Modulepool screen to ALV List in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174136#M997873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JOy/venkat/kothand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all thepossiblities. But still control is not coming to the screen without executing the remaining code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using LEAVE LIST-PROCESSING &amp;amp; LEAVE TO LIST-PROCESSING also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And im not getting any F1 help on RETURN. It is saying that there so such key word &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can any one help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 15:17:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-11T15:17:41Z</dc:date>
    <item>
      <title>From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174132#M997869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called a module pool screen from ALV using a button in application tool bar. This screen will have OK and CANCEL buttons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I press OK button the program has to continue with the logic and come back to ALV. It is working. For this I used SET SCREEN 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I press CANCEL button the further logic should not be processed and the control should go to ALV screen. How can I do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one send sample code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good answers will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 14:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174132#M997869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174133#M997870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sy-ucomm value and then use   SET SCREEN 0.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN. statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CANC'.&lt;/P&gt;&lt;P&gt;SET SCREEN 0.&lt;/P&gt;&lt;P&gt;LEAVE SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 14:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174133#M997870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174134#M997871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or use this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'CANCEL'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174134#M997871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174135#M997872</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 too had the same problem long back. If i remember correctly i solved it using RETURN command. I cannot remember the exact format but please check with RETURN command and try some possibility&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174135#M997872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174136#M997873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JOy/venkat/kothand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all thepossiblities. But still control is not coming to the screen without executing the remaining code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using LEAVE LIST-PROCESSING &amp;amp; LEAVE TO LIST-PROCESSING also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And im not getting any F1 help on RETURN. It is saying that there so such key word &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can any one help me out in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174136#M997873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174137#M997874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LEAVE LIST-PROCESSING is to get out from ALV processing and not from module to ALV. So it will not work... But you are saying RETURN statement is not there? I am so surprised.  Which Version of SAP is that ? Im using 4.X but i guess it will be there in latest version too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) goto SE38 t-code&lt;/P&gt;&lt;P&gt;2) press CTRL+F8 &lt;/P&gt;&lt;P&gt;3) Give RETURN in keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It &lt;STRONG&gt;may&lt;/STRONG&gt; list &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; if its there really&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174137#M997874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174138#M997875</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;There's no difference beetween OK or CANCEL in order to back to the ALV, so I can't understand your problem:&lt;/P&gt;&lt;P&gt;if you press CANC where do you need to go?&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, 11 Jul 2008 15:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174138#M997875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174139#M997876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain the scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ALV list will have check boxes in front of each record. If i select few records and press UPDATE button, One popup should come. Ofcourse i can get the popup using FM, POPUP_GET_VALUES, I have used one customized screen due to some other reasons. This screen should contain the new values for the fields which are to be updated and also OK &amp;amp; CANCEL buttons. So Im calling this screen in a loop where the records of ALV has been selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once entering the new values in the popup screen, If I press OK, Internal table has to be updated with new values and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i press CANCEL, the control should not go further to the code where internal table is being updated, for the current record which is in loop pass. But it is going to the updation code. This should not happen, because BAPI for updating MARC table is written at the end of entire logic. and popup screen is coming for the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Malti.&lt;/P&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Kothand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did as you suggested. It is giving the message as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No suitable documentation for "RETURN" found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Message no. ED 120&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using the version 4.6B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Malti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174139#M997876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: From Modulepool screen to ALV List</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174140#M997877</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;U need to use the command EXIT in order to leave the form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command.

  CALL FUNCTION 'POPUP_GET_VALUES'
       EXPORTING
            popup_title = 'My popup'
       IMPORTING
            returncode  = returncode
       TABLES
            fields      = t_fields.

  IF returncode = 'A'.
    EXIT.
  ENDIF.

  do something only it RETURNCODE &amp;lt;&amp;gt; 'A'.  

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way the system leaves the form where the exit is called and doesn't run the rest of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the POPUP is into a LOOP u need to call the exit twice:&lt;/P&gt;&lt;P&gt;- The first one to leave the loop;&lt;/P&gt;&lt;P&gt;- The second one to leave the form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command.

  LOOP AT itab.
    CALL FUNCTION 'POPUP_GET_VALUES'
         EXPORTING
              popup_title = 'My popup'
         IMPORTING
              returncode  = returncode
         TABLES
              fields      = t_fields.

    IF returncode = 'A'.
      EXIT.
    ENDIF.
  ENDLOOP.
  IF returncode = 'A'.
    EXIT.
  ENDIF.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 15:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/from-modulepool-screen-to-alv-list/m-p/4174140#M997877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T15:46:58Z</dc:date>
    </item>
  </channel>
</rss>

