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

is there any possibility to insert 2 programs in a single T-code

Former Member
0 Likes
1,677

hi i have created 2 smart forms for payment advice. one program is for down payment and other is for full payment with clearence i have to include both in a single tcode

for ex. in the first screen i have to get check box like to execute any one program, this should be done in single tcode

kindly give me solution.

hi i have created 2 smart forms for payment advice. one program is for down payment and other is for full payment with clearence i have to include both in a single tcode

for ex. in the first screen i have to get check box like to execute any one program, this should be done in single tcode

kindly give me solution.

6 REPLIES 6
Read only

faisalatsap
Active Contributor
0 Likes
1,266

Hi,

You can do this using Radio button when click one Radio button call one Smart form and when select

2nd than call 2nd Smart form.

Please Reply if any other Issue.

Kind Regards,

Faisal

Read only

0 Likes
1,266

hi can u kindly give me any example code that satisifies my requirment

Read only

naveen_inuganti2
Active Contributor
0 Likes
1,266

HI,

Create one more program, Submitt your two programs and also create one T'Code for your new program.

- Naveen Inuganti

Read only

Former Member
0 Likes
1,266

Hi.

just make ur selection screen as it

selection-screen begin of block a with frame title text-001.
select-options: mydate for sy-datum no-extension obligatory.
parameters: istscreen radiobutton group  a,
            2ndscreen radiobutton group a.
selection-screen end of block a.


"and in ur program check 
if istscreen ='X'.
execute code to show ist smartform.
else.
execute code for 2nd smartform
endif.

Read only

Former Member
0 Likes
1,266

Hi Nagarajan,

Refer to the following link:

Hope this will help you...

Read only

Former Member
0 Likes
1,266

selection-screen begin of block B1.

parameter : r_down radiobutton group grp1 default 'X',

r_claer radiobutton group grp1.

selection-screen end of block B1.

START-OF-SELECTION.

If r_down = 'X'.

SUBMIT ZSMART_1 WITH SELECTION-TABLE it_selcr AND RETURN.ELSE. "first smartform program

ELSE.

SUBMIT ZSMART_2 WITH SELECTION-TABLE it_selcr AND RETURN.ELSE. "second smartform program

ENDIF.

assign tcode for this...