cancel
Showing results for 
Search instead for 
Did you mean: 

CALLING TRANSACTION FROM INTERACTIVE REPORT USEING SET PARAMETER ID

Former Member
0 Kudos

  HI!!!!

      I m trying to call a transaction ME33K and want to set a parameter id VRT for aggrement NO. from an interactive report by using SET PARAMETER ID. But unable to put the agreement no in Agreement no field. of ME33K

code i tried is .

if sy-lsind = 1.

        SET PARAMETER ID 'VRT' FIELD DETAIL_DATA_WA-EBELN.

        CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.

  endif.

i have hide the DETAIL_DATA_WA-EBELN from the interactive report.

     its caling the ME33K but unable to set agreement NO. and skip the first screen

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member188685
Active Contributor
0 Kudos

Try in the same way.

IF SELFIELD-SEL_TAB_FIELD = 'IT_FINAL-VBELN'.

READ TABLE IT_FINAL INDEX SELFIELD-TABINDEX

TRANSPORTING VBELN.

IF SY-SUBRC = 0.

SET PARAMETER ID 'VL' FIELD IT_FINAL-VBELN.

ENDIF.

CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.

ENDIF.

regards

vijay

Former Member
0 Kudos

USE CRT for me33k and SCH for ME33L

Mano sri

Former Member
0 Kudos

Hi Vikas,

the problem is, that the dynpro field RM06E-EVRTN doesn't import the parameter id VRT.

Try the following coding instead:

<i> perform show_contract using detail_data_wa-ebeln.

...

form show_contract using iv_ebeln type ebeln.

data: lt_bdcdata type table of bdcdata,

ls_bdcdata like line of lt_bdcdata.

clear ls_bdcdata.

ls_bdcdata-program = 'SAPMM06E'.

ls_bdcdata-dynpro = '0205'.

ls_bdcdata-dynbegin = 'X'.

append ls_bdcdata to lt_bdcdata.

clear ls_bdcdata.

ls_bdcdata-fnam = 'RM06E-EVRTN'.

ls_bdcdata-fval = iv_ebeln.

append ls_bdcdata to lt_bdcdata.

clear ls_bdcdata.

ls_bdcdata-fnam = 'BDC_OKCODE'.

ls_bdcdata-fval = '='.

append ls_bdcdata to lt_bdcdata.

call transaction 'ME33K' using lt_bdcdata mode 'E'.

endform.</i>

Regards,

Oliver Woldsen