09-04-2008 7:49 AM
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
09-04-2008 8:26 AM
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
09-04-2008 8:26 AM
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
09-04-2008 8:46 AM
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.
09-04-2008 9:10 AM
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
09-04-2008 9:18 AM
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
09-05-2008 8:48 AM
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...