‎2007 May 21 3:17 PM
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
‎2007 May 22 7:46 AM
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
‎2007 May 21 3:22 PM
I think its not possible.
Include programs are used for modularization(dividing the program into diff parts.)
‎2007 May 21 3:25 PM
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
‎2007 May 21 3:28 PM
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
‎2007 May 21 3:31 PM
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.....
‎2007 May 22 7:46 AM
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