Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog transaction

Former Member
0 Kudos
183

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.

6 REPLIES 6

suresh_datti
Active Contributor
0 Kudos
79

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

0 Kudos
79

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

ferry_lianto
Active Contributor
0 Kudos
79

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

Former Member
0 Kudos
79

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

0 Kudos
79

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?

Former Member
0 Kudos
79

Thank you all. I was able to find a place to change the screen.