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

what is the syntax to call the tcode with input variable

Former Member
0 Likes
1,830

Hi friends,

I have a se38 program .In this program i am calling a Z TRANSACTION CODE LIKE 'ZMAT' LIKE BELOW.

ZREPORT1.

DATA: VA_MATNR LIKE MARA-MATNR DEFAULT VALUE 'MAT123'.

CALL TRANSACTION 'ZMAT'.

Now i want to pass this variable VA_MATNR with this tcode .

So what is the syntax to call the tcosde zmat with input variable.

moosa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,342

Hi,


      SET PARAMETER ID 'ABC' FIELD VA_MATNR .
      CALL TRANSACTION 'ZMAT' AND SKIP FIRST SCREEN.

8 REPLIES 8
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,342

call transaction 'XYZ' USING bdc_tab [bdc_options] .

Fill the bdc_tab table and use it.

Read only

0 Likes
1,342

Hi this is not bdc program.

Read only

0 Likes
1,342

then you can use

SET PARAMETER ID 'XYZ ' FIELD VA_MATNR .

CALL TRANSACTION "ZMAT' AND SKIP FIRST SCREEN.

thanks

Read only

Former Member
0 Likes
1,342

hi,

press f1 on CALL TRANSACTION

CALL TRANSACTION 'tcode' USING bdc_tab [bdc_options]

thanks

Edited by: Rimpa Abhishek on Apr 15, 2009 8:33 AM

Read only

Former Member
0 Likes
1,343

Hi,


      SET PARAMETER ID 'ABC' FIELD VA_MATNR .
      CALL TRANSACTION 'ZMAT' AND SKIP FIRST SCREEN.

Read only

Former Member
0 Likes
1,342

hi

opt-mantr = 'E'.

opt-defsize = 'X'.

CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.

~linganna

Read only

Former Member
0 Likes
1,342

Hi,

U can use like this

&----


*& Form user_commands

&----


  • text

----


  • -->SYST_UCOMM text

  • -->SELFIELD text

----


FORM user_commands USING syst_ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

CASE:syst_ucomm.

WHEN '&IC1'.

IF selfield-fieldname = 'MATNR'.

READ TABLE itt INTO wa INDEX selfield-tabindex.

IF sy-subrc EQ 0.

SET PARAMETER ID 'MAT' FIELD wa-MATNR.

CALL TRANSACTION 'ZMAT' AND SKIP FIRST SCREEN.

ENDIF.

ENFORM.

Regards,

Anagha

Read only

Former Member
0 Likes
1,342

Hi

if it is a executable program you can also use

submit 'PROGRAM'

with 'P_MATNR' EQ 'MAT123'.

depending on your requirement.