<?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: Call transaction, on pressing BACK displaying initial select screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858952#M47646</link>
    <description>&lt;P&gt;This works perfectly well, and is obvious when you think about it.&lt;/P&gt;&lt;P&gt;Thank-you Martin!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 14:09:11 GMT</pubDate>
    <dc:creator>davestevenson0192</dc:creator>
    <dc:date>2022-12-07T14:09:11Z</dc:date>
    <item>
      <title>Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858943#M47637</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 have an ALV report from which I want to call transaction 'FBE3'. I set parameter ids and did call transaction and skip first screen. The problem is that after the FBE3 screen is displayed correctly, if you press BACK, the initial FBE3 screen is displyed which shows the input parameters instead of the ALV report. I have to press back from the input screen to go back to the ALV report, which is not what I want. I want to be able to go back to the ALV report without stopping at the FBE3 initial screen. Is there anyway to avoid this or could anybody let me know why this happens. I have done numerous call transactions for FB03, VA03 and have never had problems like this before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really appreciate it if somebody could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nanditha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2005 16:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858943#M47637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-20T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858944#M47638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nanditha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have your answer.  Take a look at this code snippet from the customer master display transaction (XD03, the source program is MF02DFO0):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF SY-CALLD = 'X'.
  LEAVE.
ELSE.
  ...
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, there is explicit code in this transaction to leave the transaction when called via CALL TRANSACTION (sy-calld = 'X') and user hits back.  This means that instead of displaying the selection screen when the user clicks on back, the transaction is terminated and control is returned to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the SAP application programmers need to build in the logic into the transaction to prevent the initial selection screen to be displayed again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, I am not sure that you can do much about this from your program.  You will just have to train your users to click on EXIT, rather than BACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2005 17:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858944#M47638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-20T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858945#M47639</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;Try this out&lt;/P&gt;&lt;P&gt;MODULE user_command_9001 INPUT.&lt;/P&gt;&lt;P&gt;DATA: i_return_code TYPE i .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_cfw=&amp;gt;dispatch&lt;/P&gt;&lt;P&gt;      IMPORTING return_code = i_return_code.&lt;/P&gt;&lt;P&gt;  ws_save_ok = ok_code.&lt;/P&gt;&lt;P&gt;  CASE ws_save_ok.&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;   WHEN 'BACK' OR 'EXIT' OR 'CANC'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      PERFORM exit_program.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;WHEN 'MATNR'.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'MAT' FIELD w_block-matnr.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION fbe3 AND SKIP FIRST SCREEN .&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  CLEAR ws_save_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM exit_program&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; CALL METHOD o_grid_container-&amp;gt;free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_cfw=&amp;gt;flush.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Error in FLush&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;LEAVE TO SCREEN 0.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                  " EXIT_PROGRAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this whether u have done all clear while u press back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i had the same problem and i did a small mistake without clearing. So check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2005 03:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858945#M47639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-23T03:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858946#M47640</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;If you use SUBMIT instead of call transaction ,then you can use RETURN with the SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is taken from the F1 Help of SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 6 &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 session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... USING SELECTION-SETS OF PROGRAM prog &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;Uses variants of the program prog when executing the program rep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 PARAMETERs. Otherwise, variants of the program prog may be destroyed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2005 04:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858946#M47640</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-23T04:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858947#M47641</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;See if you have used the return stmnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit FB3 &amp;lt;b&amp;gt;and return&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in user-command check with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&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;Regards,&lt;/P&gt;&lt;P&gt;Anjali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2005 04:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858947#M47641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-23T04:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858948#M47642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original poster has clearly stated that transaction FBE3 is called from the report !.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Brad has given a clear explanation. Its because of the way the underlying porgram of FBE3 is written. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing you can do about it unless modify the source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where does the question of submit comes in this case?&lt;/P&gt;&lt;P&gt;(the underlying program is a module pool program)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2005 04:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858948#M47642</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-05-23T04:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858949#M47643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everybody for your answers. I think what Brad says is absolutely right. Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2005 19:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858949#M47643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-01T19:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858950#M47644</link>
      <description>&lt;P&gt;Hey Guys, well there is a very simple workaround for the problem, when creating your bdc table to be passed to the call transaction, you can add the "back" command yourself and this should make the deal, something like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;append initial line to (lt_bdc) assigning field-symbol(&amp;lt;ls_bdc&amp;gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;ls_bdc&amp;gt;-program = 'SHDB Program of your called tcode' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;ls_bdc&amp;gt;-dynpro = '.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;and at the end of all the things you do, when the user clicks back, "which will call the initial screen in your case", record the name of that screen/program and sett is as well in the lt_bdc table with an ok code back&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;so, at the end &lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;append initial line to lt_bdc assigning &amp;lt;ls_bdc&amp;gt;

&amp;lt;ls_bdc&amp;gt;-program = 'SHDB program of screen you want to scape' e.g ZMY_ALV 
&amp;lt;ls_bdc&amp;gt;-dynpro  = 'screen number you wanna scape'            e.g 1000
&amp;lt;ls_bdc&amp;gt;-fnam    = BDC_OKCODE'
&amp;lt;ls_bdc&amp;gt;-fval    = /EBACK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and this tricks the system that when it sees this screen "the one you want to scape" it will simply click back by itself, going back to the caller in your case!&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858950#M47644</guid>
      <dc:creator>martin_hernandez2</dc:creator>
      <dc:date>2019-07-11T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858951#M47645</link>
      <description>&lt;P&gt;This worked for me. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 18:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858951#M47645</guid>
      <dc:creator>mauro_blanc3</dc:creator>
      <dc:date>2020-11-05T18:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction, on pressing BACK displaying initial select screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858952#M47646</link>
      <description>&lt;P&gt;This works perfectly well, and is obvious when you think about it.&lt;/P&gt;&lt;P&gt;Thank-you Martin!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-on-pressing-back-displaying-initial-select-screen/m-p/858952#M47646</guid>
      <dc:creator>davestevenson0192</dc:creator>
      <dc:date>2022-12-07T14:09:11Z</dc:date>
    </item>
  </channel>
</rss>

