2006 Feb 23 2:51 PM
In SAPLZMDE there is one screen associated with each transaction. If I didn't want to create a second transaction, is there a way to handle this that you bring up screen A or screen B based on a condition?
Thank you for any help.
2006 Feb 23 2:57 PM
Hi Janet,
Basically, the Transaction is tied to a Program not the screen.. Since it is a custom Program you can try using the CALL SCREEN option based on your conditions.
Regards,
Suresh Datti
2006 Feb 23 3:02 PM
Hi,
You can do that, you can use call screen scrno
and do that based on your condition , is it the same program you want to call......
regards
vijay
2006 Feb 23 3:14 PM
Hi Janet,
You can use CALL SCREEN or LEAVE SCREEN based upon your condition logic.
LEAVE SCREEN same as CALL SCREEN, you need to use with SET SCREEN.
CALL SCREEN 100 is same as SET SCREEN 100 then LEAVE SCREEN.
Hope this will help.
Regards,
Ferry Lianto
2006 Feb 23 3:24 PM
Hi
No! I don't think: every transaction wants only one dynpro.
You can try to write a piece of ABAP code where it decides the next screen:
Trx ZXXXX -
>screen 100
Screen 100.
PROCESS PBO.
MODULE SUPPRESS_DIALOG.
PROCASS PAI.
MODULE LEAVE_SCREEN.
MODULE SUPPRESS_DIALOG.
SUPPRESS DIALOG.
ENDMODULE.
MODULE LEAVE_SCREEN.
IF .....
LEAVE TO SCREEN .....
ELSE.
LEAVE TO SCREEN .....
ENDIF.
ENDMODULE.
Anyway I can't understand how you can indicate these conditions.
Max
2006 Feb 23 4:00 PM
Hi Max,
I agree with you. Every transaction only wants one dynpro. There doesn't appear to be anywhere that I have access to change the dynpro associated with the transaction through a condition.
Would your suggestion be to change the config and create a second transaction?
2006 Feb 23 4:23 PM
Thank you all. I was able to find a place to change the screen.