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

can we input a transaction code with an input value from the program

Former Member
0 Likes
914

Hi

How can we input a transaction code with an input value from the program

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

What exactly you need?

If you want the default values in the selection screen when you execute the T-code you would have to do any think special for it. It should do.

Please write what exactly is ur need.

Shreekant

7 REPLIES 7
Read only

Former Member
0 Likes
853

Hi,

Yes..You can use variables also...

data: v_tcode(30) value 'VA01'.

call transaction v_tcode.

Is this what you want??

Thanks,

Naren

Read only

Former Member
0 Likes
854

What exactly you need?

If you want the default values in the selection screen when you execute the T-code you would have to do any think special for it. It should do.

Please write what exactly is ur need.

Shreekant

Read only

Former Member
0 Likes
853

my input value is a value...

i need to input a that value in the TC WE05

how do i do it from my current program

thank you

Read only

0 Likes
853

I am understanding that you have a report and you need to call the T code WE05 and run it with a value from the report.

Eg. Lets say you have A IDOC number and you want to call we05 and execute for that IDOC number.

In you report when you click the idoc number it would take the number and call We05 and will execute We05.

AT LINE-SELECTION.

CASE SY-UCOMM.

WHEN 'PICK'.

SET PARAMETER ID 'DCN' FIELD IT_EDIDC-DOCNUM

CALL TRANSACTION 'WE05 AND SKIP FIRST SCREEN.

ENDCASE.

I hope this is what you want.

Shreekant

Read only

Former Member
0 Likes
853

Hi,

You can use BDC

OR

You can use SUBMIT statement..

Thanks,

Naren

Read only

Former Member
0 Likes
853

Hi,

Check this sample code


RANGES: r_date FOR sy-datum.
RANGES: r_idoc FOR edidc-docnum.

r_idoc-sign = 'I'.
r_idoc-option = 'EQ'.
r_idoc-low = '0000000000520144'.
APPEND r_idoc.


SUBMIT rse_idoc_listen WITH so_credt IN r_date
                       WITH so_docnu IN r_idoc
       AND RETURN.

Thanks,

Naren

Read only

Former Member
0 Likes
853

Hi,

Please make sure to reward points for helpful answers..

Thanks,

Naren