11-07-2007 3:18 PM
Pls help me. I have this selection-screen window (my main window) and it has few buttons. One of the buttons of that main window is going to take you to another window which displays an ALV report. on that ALV report window when I press the back button (located at the top of the screen), it ends the entire program and goes back to my program editor.
How can I go back to the main window? <b>PLS help.</b> im a newbie. <b>THANKS.</b>
11-07-2007 3:20 PM
Jabbar,
what statement you are using to come back from the ALV report.
Satish
11-07-2007 3:25 PM
<b>Satish, </b>I do not use any code to come back. I have no idea what to use. PLS HELP. im a newbie.
11-07-2007 3:25 PM
Hi Jabbar,
I've got similar issue ..may not be same as your problem..
I've solved as below..may be useful for you....
AT USER-COMMAND.
DATA : varb(10) TYPE c.
CASE sy-ucomm.
WHEN 'F3'.
CALL FUNCTION 'POPUP_TO_DECIDE_INFO'
EXPORTING
defaultoption = 'Y'
textline1 = 'Do you want to exit report ?'
titel = 'Exit report confirmation'
IMPORTING
answer = varb.
IF varb EQ 'J'.
SUBMIT zreport. "report name
ENDIF.
ENDCASE.
11-07-2007 3:30 PM
try with:
Go Back:
set screen 0.
leave screen.
Exit the program:
Leave Program
11-07-2007 3:33 PM
i got it!
i called the previous screen. <b>THANKS GUYS. I GAVE POINTS. </b>
11-07-2007 3:37 PM
Hi,
Execute the ALV report,
Before clicking the Back button,
Switch on the debugger, enter /H at command field,
Analyze the code, look if there exists Leave Program, correct it.
Bye,
KC