Application Development 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: 

about module pool program

Former Member
0 Kudos

Hi all,

I have 2 screens in the program. In first screen i have one input button and 2 radio buttons.

so if i give input and select one radio button it is going to the 2 nd screen.

So in the 2 nd screen when i save the document it has to go to the function module .before going to the function module it has to check which radio button i have selected in the initial screen..?

how will i do this....?

Pls help me on this issue......

plzzzzzzzzzzzzz

1 ACCEPTED SOLUTION

prasanth_kasturi
Active Contributor
0 Kudos

hi,

as you will the write the code in the same program for both the screens

i.e the radio buttons are declared globally in the program

for example if the radio buttons are r1 and r2.

in PAI of the second screen befor going to FM

check in the following way

If r1 = 'X'.

<ur code>.

elseif r2 = 'X'.

<urcode>.

endif.

hope i was helpful

regards

prasanth

5 REPLIES 5

prasanth_kasturi
Active Contributor
0 Kudos

hi,

as you will the write the code in the same program for both the screens

i.e the radio buttons are declared globally in the program

for example if the radio buttons are r1 and r2.

in PAI of the second screen befor going to FM

check in the following way

If r1 = 'X'.

<ur code>.

elseif r2 = 'X'.

<urcode>.

endif.

hope i was helpful

regards

prasanth

Former Member
0 Kudos

Hi,

Use the the following FM in PAI module ok_code = 'SAVE'.

CALL FUNCTION 'J_3G_POPUP_CONTINUE_YES_NO'

EXPORTING

textline1 = fp_text

titel = 'Save'

IMPORTING

answer = fp_var_create.

In fp_text, just populate the which radio button you selected.

Based on your requirement you allow to save the document.

Hope this will help you.

Regards,

Raju.

Former Member
0 Kudos

Hi,

Please follow the steps below.

In the PAI of the screen1.

module mo_user_command_screen1.

clear w_okcode.

w_okcode = sy-ucomm.

clear sy-ucomm.

case w_okcode.

when input.

if radiobutton1 = 'X'.

call screen screen2.

elseif radiobutton = 'X'.

call screen screen2..

endif.

endcase.

After calling the second screen2.

Implement the logic of calling the function module

Former Member
0 Kudos

Hi,

Since the Radiobuttons are declared globally you can use the same techincal names and check which on of them were selected. Using the IF statement you can call the Fm accordingly.

Regards,

Pramod

Former Member
0 Kudos

Hi all,,

Thanks for the immediate reply.

My problem is still not yet solved.. If i write code like this ..i.e what u people told

its not going inside the select query.

its comming out of the screen itself.

plz try to answer once again...