cancel
Showing results for 
Search instead for 
Did you mean: 

modify screen in PAI?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor

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

Former Member
0 Kudos

Hi Durairaj!

I dont really understand your solution. When the checkbox is clicked i set a variable to "Y" in the PAI, but how can i do now so that the PBO is executed?

Thanks

Alex

athavanraja
Active Contributor
0 Kudos

you need to set a <b>function code</b> for the check box so that when you check or uncheck the check box - PAI will get triggered, and then PBO will get triggered.

Regards

Raja

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Durairaj Athava...

by your answer i could solve the similar issue.

Thanks a lot !!

Answers (5)

Answers (5)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

In your PBO:

if checkbox = 'X'.

loop at screen.

.....

modify screen.

endloop.

else.

loop at screen.

.....

modify screen.

endloop.

endif.

Former Member
0 Kudos

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