10-15-2008 3:37 PM
Hi Gurus,
I am Executing a report,once i got the output (which includes various screens),after my final output screen when i press BACK i am going to actual selection screen
here my problem comes,when i press EXECUTE, basically we need to get initial output screen,but here in my case my control is going to one of the output screens not the initial output screen.how to fix this issue.
Thanks & Regards,
Vijaya.
10-15-2008 3:46 PM
Hi Vijaya,
How you get back to SELECTION SCREEN?
You should use following code;
SET SCREEN 0.
LEAVE SCREEN.
I think you used 'CALL SELECTION-SCREEN XXXX' statement.
Regards,
R.Nagarajan.
-
We can -
10-15-2008 3:42 PM
Hi Vijaya,
Here are you talking about a simple Interactive list display.
When you execute it must go to your Basic list. You pls check events END-OF-SELECTION and AT LINE-SELECTION written properly.
Happy coding.
/Kiran
10-15-2008 3:46 PM
Hi Vijaya,
How you get back to SELECTION SCREEN?
You should use following code;
SET SCREEN 0.
LEAVE SCREEN.
I think you used 'CALL SELECTION-SCREEN XXXX' statement.
Regards,
R.Nagarajan.
-
We can -
10-15-2008 4:05 PM
Nagaranjan,
You havn't catch my problem,
i am have used set screen and going back to my selection screen,
from there when i press EXECUTE i am not getting the initial output screen.
here the control goes to one of the screen included in my output,but not the intial output screen,
Thanks & Regards,
Vijaya.
10-15-2008 10:12 PM
Hi,
Could anybody plz help me,how to fix this issue?
Regards,
Vijaya.
10-15-2008 10:15 PM
When you hit 'BACK' on your last screen, use leave to transaction (your transaction) instead of leaving the screens. This should reset everything. Hope that helps.
Lamont
10-16-2008 1:02 PM
Hi Gurus,Problem was Solved.
Solution:
In PBO Module (just at starting)
MODULE tab2_change_tc_attr OUTPUT.
IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).
PERFORM refresh_internal_data.
Leave to list-processing.
call transaction 'ZBESTFIT'.(Tcode for our Report Program)
ENDIF.
DESCRIBE TABLE it_horder LINES tab2-lines.
ENDMODULE. "TAB2_change_tc_attr OUTPUT
Edited by: vijaya on Oct 16, 2008 2:07 PM
10-20-2008 11:50 AM
Hi Vijaya,
I have come across the same situation as you.
can you please clearly explain me.
Thanks,
Kumar
10-22-2008 10:52 AM
Hi Kumar,
i Expect your report has multiple screens,
in your last screen which you have designed
in the PBO module (at starting )
you create module say MODULE tab2_change_tc_attr OUTPUT.
in this module you write this logic
IF ( sy-ucomm = 'BACK' AND sy-lsind = 0 ).
PERFORM refresh_internal_data. "(refresh all of ur itabs)
Leave to list-processing.
call transaction 'ZBESTFIT'.(Tcode for our Report Program)"(U should create tcode else will not work.
ENDIF.
ENDMODULE. "TAB2_change_tc_attr OUTPUT
Regards,
Vijaya.