Application Development and Automation 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: 
Read only

call subscreen inside a module or a form.

Former Member
0 Likes
813

hi experts,

is it possible to call a subscreen inside of a pai module or a form?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
717

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.

6 REPLIES 6
Read only

former_member376453
Contributor
0 Likes
717

I think, You have to do this from PBO. any kind of screen modification should be done in PBO only.

Kuntal

Read only

0 Likes
717

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?

Read only

0 Likes
717

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

Read only

Former Member
0 Likes
717

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

Read only

Former Member
0 Likes
718

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.

Read only

Former Member
0 Likes
717

This message was moderated.