2012 Jun 15 8:20 AM
Hi,
my requirement is if i select one radio button needs to be display one code output, like this i have 3 radio button , for this 3 radio buttons i have written
three program codes, in this one of the program is oops concept added so due to modules it not activated can any one help me?
thanks in advance......
2012 Jun 15 8:35 AM
Hi,
Please be clear with your question, One thing is we do not know where exactly you are facing problem. Here is my guess that you are trying to define or implement classes where they are not supposed to be.
My suggestion, declare the class definition and implementation in the beginning of the program and use them only when the appropriate radio button is selected.
Hope it helps. Thank you.
Regards,
kartik
2012 Jun 15 9:40 AM
Hi,
In oops we have methods right, i want to add this program in to some other executable program when we select one of the radio button in three radio buttons, when we active one radio button oops program needs to execute , i wrote this in one of the subroutine so when i check this, it gets FORM must ended before start of the MODULE.
2012 Jun 15 12:10 PM
Hi,
Check the following code , is this you want...?
SELECTION-SCREEN: BEGIN OF SCREEN 1100.
PARAMETERS: u1 RADIOBUTTON GROUP a USER-COMMAND sel DEFAULT 'X',
u2 RADIOBUTTON GROUP a,
u3 RADIOBUTTON GROUP a.
SELECTION-SCREEN: END OF SCREEN 1100.
CALL SCREEN 1100.
AT SELECTION-SCREEN OUTPUT.
IF u1 = 'X'.
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.
ELSEIF u2 = 'X'.
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.
ELSEIF u3 = 'X'.
LOOP AT SCREEN.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
START-OF-SELECTION.
IF U1 EQ 'X'.
PERFORM user_email_list.
ELSEIF U2 EQ 'X'.
PERFORM user_editable_alv.
ELSEIF U3 EQ 'X'.
PERFORM user_without_email_list.
ENDIF.
FORM user_email_list .
SUBMIT zven_dd_text .
*CALL TRANSACTION 'SE11'.
ENDFORM. " USER_EMAIL_LIST
FORM user_editable_alv .
WRITE 'bye'.
ENDFORM. " USER_EDITABLE_ALV
FORM user_without_email_list .
SUBMIT zven_oops_interface .
ENDFORM. " USER_WITHOUT_EMAIL_LIST
2012 Jun 15 12:27 PM
HI,
This radio button code is written by me only. this code is working perfectly when i use normal alv's , now i am using the oops alv for one radio button, so it get don't use methods in FORM - ENDFORM ,
but we must use the methods am i right? is any way to cal methods for grid container in oops for my requirement?
2012 Jun 15 12:58 PM
2012 Jun 15 1:28 PM
Hi,
please check the above code its working .i have used the submit statement for my program.
form button_3.
submit zsubmit_o_461.
endform.
for the above mentioned change in the thandlam venkateswarulu . i got the output.