<?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: selection-screen problem:need to go back to selectionscreen not source code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413679#M199149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still need help on this.Again, thank you and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2006 13:01:46 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-06-30T13:01:46Z</dc:date>
    <item>
      <title>selection-screen problem:need to go back to selectionscreen not source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413676#M199146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on my dillema. I have 2 reports, zreport1 and zreport2. Now, zreport1 submits &lt;/P&gt;&lt;P&gt;values via selection-screen to zreport2. Now here is the problem, when I press 'BACK' on the &lt;/P&gt;&lt;P&gt;selection-screen of zreport2(rememeber we used submit statement via selection-screen on zreport1)&lt;/P&gt;&lt;P&gt;instead of going back to the selection-screen of zreport1 it goes to the source code of zreport1 which &lt;/P&gt;&lt;P&gt;is wrong. And there are 2 selection-screens on zreport1 depending on the user if he is controller or not. &lt;/P&gt;&lt;P&gt;So what I need to do here is that whenever I press 'BACK' either I'm adding or modifying or displaying records&lt;/P&gt;&lt;P&gt;it should go back to whatever screen I called in zreport1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a diagram.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZREPORT1&lt;/STRONG&gt;**&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt;         &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  if v_controller = 'X'&lt;/P&gt;&lt;P&gt;    display selection-screen 1500&lt;/P&gt;&lt;P&gt;  else&lt;/P&gt;&lt;P&gt;    display selection-screen 500&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if user wants to add records, submit values from zreport1 to zreport2&lt;/P&gt;&lt;P&gt;  and return via selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  *same goes for edit option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if user wants to display, get all records then display in ALV.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZREPORT2&lt;/STRONG&gt;**&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="12" type="ul"&gt;&lt;P&gt; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  So lets assume user decides not to add records and decides to go back. so he presses&lt;/P&gt;&lt;P&gt;  the BACK button in selection-screen of zreport2. Now here's the nasty part, instead of going back to either&lt;/P&gt;&lt;P&gt;  selection-screen 500 or 1500 in zreport1, it goes to the source code of zreport1!. I hope I explained it clearly.&lt;/P&gt;&lt;P&gt;  Again, thanks a lot guys for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 08:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413676#M199146</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-30T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen problem:need to go back to selectionscreen not source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413677#M199147</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION.

*----------Sumbit Report-------*

Sumit Report......AND RETURN

*----------Check Condition &amp;amp; back to select screen-------*
  IF condition.
    MESSAGE s207(zusm_gen) DISPLAY LIKE lc_e .
    EXIT.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Set something in the memmory.&lt;/P&gt;&lt;P&gt;this can be used to check the completion of the report.&lt;/P&gt;&lt;P&gt;if the 2nd report executed porperly then u further execute the code.&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;&lt;P&gt;If u dont have any thing to execute after sumbit report&lt;/P&gt;&lt;P&gt;then u can do is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION.

*----------Sumbit Report-------*

Sumit Report......AND RETURN

    MESSAGE s207(zusm_gen) DISPLAY LIKE 'S' .
    EXIT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&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>Fri, 30 Jun 2006 09:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413677#M199147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T09:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen problem:need to go back to selectionscreen not source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413678#M199148</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;Feel Free to ask Further Question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think ur problem will be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points &amp;amp; close the thread if solved.&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;contact @&lt;/P&gt;&lt;P&gt;manoj.baijnath@wipro.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 09:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413678#M199148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T09:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen problem:need to go back to selectionscreen not source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413679#M199149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still need help on this.Again, thank you and take care!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 13:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413679#M199149</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-30T13:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection-screen problem:need to go back to selectionscreen not source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413680#M199150</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 something  this way. I am comparing sy-ucomm for BACK button fuction code and calling the First Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT abc.

SELECTION-SCREEN BEGIN OF SCREEN 500 .
PARAMETER c AS CHECKBOX.
SELECTION-SCREEN END OF SCREEN 500 .


SELECTION-SCREEN BEGIN OF SCREEN 100 .
PARAMETERS mara TYPE mara-matnr .
SELECTION-SCREEN END OF SCREEN 100.

SELECTION-SCREEN BEGIN OF SCREEN 200 .
PARAMETERS p_werks TYPE marc-werks .
SELECTION-SCREEN END OF SCREEN 200.

CALL SELECTION-SCREEN 500.

IF  c EQ 'X'.

  CALL SELECTION-SCREEN 100.
  IF sy-ucomm EQ 'CBAC'.   "Function code for BACK
    CALL SELECTION-SCREEN 500.
  ENDIF.

ELSE.

  CALL SELECTION-SCREEN 200.
  IF sy-ucomm EQ 'CBAC'.   "Function code for BACK
    CALL SELECTION-SCREEN 500.
  ENDIF.

ENDIF.
&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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2006 13:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-problem-need-to-go-back-to-selectionscreen-not-source-code/m-p/1413680#M199150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-30T13:48:10Z</dc:date>
    </item>
  </channel>
</rss>

