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

where use logic

Former Member
0 Likes
1,024

Hi Friends,

I have one radio button in one screen(100). I wanted to write the logic for that radio button.

So where I have to write the logic in 100 PBo or in 100 PAI or in any subrouting where processing for that field is going.

Plz reply me earliest.

10 REPLIES 10
Read only

Former Member
0 Likes
994

See the sample program: demo_dynpro_check_radio.

It will tell you how to use radio-buttons and checkboxes in screens.

Regards,

ravi

Read only

Former Member
0 Likes
994

if you want to make that radio button default(among several of its group) you should write that logic in PBO.

if you want to take up some action based on the user selection, you should write that in PAI.

like,

IF R_BTN = 'X'.

do some thing here.

elseif R_BTN2 = 'X'.

do another work

endif.

regard

srikanth

Read only

Former Member
0 Likes
994

Hi,

In the PAI section of the module pool.All the validiations should be done in PAI

Regards,

M.Saravanan

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
994

Hi,

Write the logic in the 100 PAI.

Because after u pressing or doing something such as event..only it has to be triggered..

so. write it in the PAI...

Cheers,

SImha.

Read only

Former Member
0 Likes
994

If you need to process something on selection of the radio button etc it should be in PAI and lets say if you wish to default the radio button parameters depending on some conditions it should be in PBO.

Hope it resolves your issue !!

Regards

Anurag

Read only

Former Member
0 Likes
994

Hi,

In PAI event you can put in the logic.

Rgds,

HR

Read only

Former Member
0 Likes
994

HI,

You can write the logic in PAI.

Regards,

Laxmi.

Read only

Former Member
0 Likes
994

After you select the radiobutton some thing should happen , so the code should be written in PAI(Process After Input)

flow goes like this

PBO -> Screen -> PAI

Before the screen is displayed if you want to display anything on screen then you have to write that in PBO

Read only

Former Member
0 Likes
994

HI,

IN GENERAL we will handle code in PAI for any Radio Buttons or Check boxes... thing is selecting radio button is equivalent to giving some input.. in Process after input we have to handle it..

ex : if Radio button code is Back :

then code like :

module USER_COMMAND_100 input.

CASE SY-UCOMM.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

ENDCASE.

end module.

Regards

Ashok

Read only

Former Member
0 Likes
994

hi

Depends on the requirement you have to place your code.

If you want to give some default value to that button, place it in PBO of the screen,

or if you need to process something based on user input for that button write the code in PAI of the screen.

Reward points if helpful.

Regards,

Swathi