‎2009 Mar 05 9:51 PM
hi experts,
is it possible to call a subscreen inside of a pai module or a form?
‎2009 Mar 06 3:16 AM
hi,
I think you can define a golable variable used to store your subscreen number, change this number according to your sy-ucomm in PAI.
when you calling subscreen, use the variable instead of the hard code of screen number.
‎2009 Mar 05 9:59 PM
I think, You have to do this from PBO. any kind of screen modification should be done in PBO only.
Kuntal
‎2009 Mar 05 10:15 PM
hi Kuntal, that would be logical. however I need to call this subscreen as a reaction to a user command (ie. a function code). I could set a global variable in PAI and then call the subscreen in PBO accordingly, but there is no way to check a variable value in screen logic, so again, I'd have to call the subscreen inside of a module. how do you bind the call of a subscreen to a user command?
‎2009 Mar 05 10:19 PM
I think you can define 2 different screen with same layout, and call the screens depending on the F-code user has pressed. I have done this, and it worked successfully.
Kuntal
‎2009 Mar 05 10:59 PM
Hi,
In PAI set a flag when there is user_command based on which you need a subscreen
then In PBO using the condition if the flag is set... you can call the subscreen within the if condition.
Regards,
Siddarth
‎2009 Mar 06 3:16 AM
hi,
I think you can define a golable variable used to store your subscreen number, change this number according to your sy-ucomm in PAI.
when you calling subscreen, use the variable instead of the hard code of screen number.
‎2009 Mar 06 4:29 AM