on 08-02-2005 12:28 PM
Hi,
I would like to know if it's posible to do a modify screen in PAI. The documentation says it is not posible, but i need some functionality to modify the screen when a checkbox in a dynpro is checked.
Thanks a lot
Alex
its not possible in PAI.
but what you can do is set a variable to say "Y" when a check box is clicked (in PAI) and in the PBO check if the variable = "Y" if yes then do the screen modification.
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Adding to Raja's reply,here is the sample code.
PARAMETERS: ONE RADIOBUTTON GROUP R1 default 'X' user-command rusr,
ALL RADIOBUTTON GROUP R1,
USER LIKE USR02-BNAME DEFAULT SY-UNAME modif id Z1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'Z1'. "Name field
IF all = 'X'.
SCREEN-ACTIVE = 0.
ELSE.
SCREEN-ACTIVE = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
You can assign a user command to the radio button group using the USER-COMMAND ucomm addition.
Since all of the buttons in the same group have the same command, you can only use this addition with the first parameter in the group.
Hi Garcia,
MODIFY SCREEN works only in PBO. Workarounds are there but standard says ' 'don't do it'.
Go to SE11 and supply SCREEN as table name. You will learn a lot about the table and various other possibilities.
Regards,
Deva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As Raja said, assign a function code to your checkbox. It's the same as assigning a function code to a button. In such a case, when you check your box, PAI will be triggered and after it, PBO of your screen(if the next screen is the same screen).
Svetlin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can modify screen only in<b> PBO</b>, if u do that in PAI it wont have any effect just it will be of no use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In your PBO:
if checkbox = 'X'.
loop at screen.
.....
modify screen.
endloop.
else.
loop at screen.
.....
modify screen.
endloop.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
it is not possible to modify screen in PAI. You can do the following:
assign a dummy function code in the screen attributes of the checkbox. This will raise the PAI when the checkbox is ticked and afterwards PBO again. In PBO you have then the possibility to modify the screen according to the checkbox set to 'X'.
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.