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

Radio Button

Former Member
0 Likes
665

Hi ABAP Guns,

In my program there are 10 radio buttons, i have coded 10 different include programs.

Now i want to add these 10 includes in the main program.

If i click 1 radio button it should call the appropriate include only.

Could one help me out in this matter.

Regards,

Sudhir

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
642

Hi,

Include your includes in the main program and based on the radiobutton checked call trhe corresponding Include.

if RB1 = 'X'

include 1.

else..

endif.

reward points if it is helpful.

Regards,

Sangeetha.A

5 REPLIES 5
Read only

Former Member
0 Likes
642

I think its not possible.

Include programs are used for modularization(dividing the program into diff parts.)

Read only

0 Likes
642

hi,

u can check for the readio button value and then proceed....

**make sure that all common things to be loaded before******8

if r1 eq 'X'.

include1.

elseif r2 eq 'x'.

include 2.

.........

.....

With Regards,

S.Barani

Read only

Former Member
0 Likes
642

Hi try this

IF P_RADIO1 is ON.

include inc1.

ESLEIF P_RADIO2 is ON.

include inc1.

ESLEIF P_RADIO3 is ON.

include inc1.

ESLEIF P_RADIO4 is ON.

include inc1.

ESLEIF P_RADIO5 is ON.

include inc1.

ENDIF.

Mark if helpful..

Regards

Tushar

Read only

Former Member
0 Likes
642

what do u mean by calling include. ?

the statement - include <include name> is not calling anything from that include. that will just make the routines in that include available to ur program .

what are you trying to acheive ?

if you need any particular activity to happen, then you should call a sub routine (which could be in any of those include... and for that, u dont need 10 includes, can manage with just 1).

if r1 eq 'X'.

perform call_subroutine1..

elseif r2 eq 'x'.

perform subroutine3...

so on.....

Read only

Former Member
0 Likes
643

Hi,

Include your includes in the main program and based on the radiobutton checked call trhe corresponding Include.

if RB1 = 'X'

include 1.

else..

endif.

reward points if it is helpful.

Regards,

Sangeetha.A