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: 

module pool program...

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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..

5 REPLIES 5

former_member667836
Active Participant
0 Kudos

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

0 Kudos

Hi shibu,

I have already defined the radio button in groups and entered the field code........Still the o/p is not executed.......

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Srinivasan,

Just check if you have defined OK_CODE in your element list of screen 100.

Regards,

Mohaiyuddin

Former Member
0 Kudos

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..