2008 Jan 09 12:46 PM
I tried a module pool program......I didnt get the output.....can anyone resolve the problem in the program.
REPORT Z_SMS.
data: radio1(1) type c , radio2(1) type c , radio3(1) type c,
field1(20) type c , field2(30) type c , field3(30) type c.
data: ok_code type sy-ucomm,
save_ok type sy-ucomm.
call screen 100.
module USER_COMMAND_0100 input.
save_ok = ok_code.
clear ok_code.
case save_ok.
when 'RADIO'.
if radio1 = 'X'.
field1 = 'RAJESH'.
clear: field2 , field3.
elseif radio2 = 'X'.
field2 = 'SAP'.
clear: field1 , field3.
elseif radio3 = 'X'.
field3 = 'COVANSYS'.
clear: field1 , field2.
endif.
when 'CANCEL'.
leave program.
endcase.
endmodule.
module STATUS_0100 output.
radio1 = 'X'.
clear: radio2 , radio3.
endmodule.
2008 Jan 10 6:06 AM
Hi srinivasan,
Generally for the TEXT fields FUNCODE is important.For Radio buttons NAME filed id very important that can act as a FUNCCODE..And also check that u can metion ok_code in elemantary list or not.The code u develped is ok.Check these things then ur problem will be solved ok..
Award points if helpful.
Kiran Kumar.G.A
Have a Nice Day..
Hi Srinivasan,
There's no problem in the code ,Make sure that you did following steps before executing
1.Create screen 100.
2.Created 3 radio button & Field in the screen
3.Group the radio button by select the 3 radio button and right click and define gruop
4.give 'RADIO' as function code as you given in the program
Hope rest every thing is ok
Message Edited by
shibu
2008 Jan 09 1:29 PM
Hi Srinivasan,
There's no problem in the code ,Make sure that you did following steps before executing
1.Create screen 100.
2.Created 3 radio button & Field in the screen
3.Group the radio button by select the 3 radio button and right click and define gruop
4.give 'RADIO' as function code as you given in the program
Hope rest every thing is ok
Message Edited by
shibu
2008 Jan 10 4:54 AM
Hi shibu,
I have already defined the radio button in groups and entered the field code........Still the o/p is not executed.......
2008 Jan 10 5:04 AM
Hi
have you set the ok_code as ok_code in the element list?
other wise you have to explicitly pass the system variable to the ok_code.
Go to SE51 - Element list tab - scroll to the bottom and put ok_code as the name against the ok field.
or else
use the following code
ok_code = sy-ucomm.
Regards,
Abdullah
PS: Reward points if helpful
2008 Jan 10 5:07 AM
Hi Srinivasan,
Just check if you have defined OK_CODE in your element list of screen 100.
Regards,
Mohaiyuddin
2008 Jan 10 6:06 AM
Hi srinivasan,
Generally for the TEXT fields FUNCODE is important.For Radio buttons NAME filed id very important that can act as a FUNCCODE..And also check that u can metion ok_code in elemantary list or not.The code u develped is ok.Check these things then ur problem will be solved ok..
Award points if helpful.
Kiran Kumar.G.A
Have a Nice Day..
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |