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

how to add a oops program in another executable program?

Former Member
0 Likes
1,279

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

6 REPLIES 6
Read only

Kartik2
Contributor
0 Likes
1,252

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

Read only

Former Member
0 Likes
1,252

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.

Read only

Former Member
0 Likes
1,252

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

Read only

0 Likes
1,252

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?

Read only

0 Likes
1,252

Hi ,

check your previous posted issues....!

Regards,

venkat.

Read only

Former Member
0 Likes
1,252

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.