4 weeks ago - last edited 3 weeks ago
Hello experts,
I have a program (dialog program - scr 400) screen and button on the screen. It's calling another program (+ transaction) having selection screen and after execution ALV grid displayed. After performing work it should back to original calling screen having dialog program screen (400).
ZPROGRAM1 (Screen 400) -> Call Transaction - ZPROGRAM2 (+selection screen) -> ALV screen and then back with same sequence.
We have tried with, AT SELECTION SCREEN EXIT-COMMAND and leave 0 or set screen 0 but somehow it is not working. CALL SCREEN will not work since it back button is in another program which is called.
How to call previous screens which are in call stack.
Regards,
PD
Our code in ZPROG1 (having total 4 screens 100->200->300->400) from calling dialog programming module (at Screen no.400) on button click sy-ucomm case:
PAI module:
CALL TRANSACTION 'ZTRANS' "AND SKIP FIRST SCREEN. "same is the program name ZTRANS
In ZTRANS program, there is selection screen and after executing selection screen thee is ALV display. This is working fine. After back from ALV, it is again coming back to Selection screen of ZTRANS. After this if we back to ZTRANS.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN 'PF01'. "back or exit button FCODE
SET SCREEN 0.
It is exiting from ZTRANS program (transaction) totally and not coming back to original calling screen of ZPROG1 (400).
If we use, leave to screen 400, it will not find screen since both are different programs. If we do call transaction ZPROG1 then it is calling transaction 100 screen no which is starting. But, we want to come back to 400 (screen).
Any help appreciated.
PD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
11 | |
10 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.