Application Development 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: 

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

Former Member
0 Kudos

Hi,

i'm using this in an report.

*

SET PARAMETER ID 'BES' FIELD WA_ITAB-EBELN.

SET PARAMETER ID 'BSP' FIELD WA_ITAB-EBELP.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

*

It works OK.

*

Is there any parameter ID to go in a sprecial part of an PO, for example

direct to materialdata or konditions?.

*

thanks.

Regards, Dieter

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

I don't think you will navigate further to that sub levels of a transaction

we generally goes to the second screen and navidate from there.

Reward points for useful Answers

Regards

Anji

5 REPLIES 5

Former Member
0 Kudos

Hi

I don't think you will navigate further to that sub levels of a transaction

we generally goes to the second screen and navidate from there.

Reward points for useful Answers

Regards

Anji

0 Kudos

Hi Anji,

but this is what i want. Nevigate direct in an sub level.

Regards, Dieter

S0025444845
Active Participant
0 Kudos

Hi,

I think u can do that by using BDC as used in this code please refer to this code.

FORM get_user_command USING cr_ucomm LIKE sy-ucomm "#EC *

cr_selfield TYPE slis_selfield.

CLEAR wa_final.

DATA BEGIN OF bdcdata OCCURS 10.

INCLUDE STRUCTURE bdcdata.

DATA END OF bdcdata.

CASE cr_ucomm.

WHEN '&IC1'.

READ TABLE it_final INTO wa_final

INDEX cr_selfield-tabindex.

IF cr_selfield-fieldname = 'MATNR'.

IF sy-subrc IS INITIAL.

SET PARAMETER ID 'MXX' FIELD 'E'.

SET PARAMETER ID 'MAT' FIELD wa_final-matnr.

SET PARAMETER ID 'WRK' FIELD wa_final-werks.

CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDIF.

ELSEIF cr_selfield-fieldname = 'LIFNR'.

IF sy-subrc IS INITIAL.

CLEAR bdcdata.

bdcdata-program = 'SAPMF02K'.

bdcdata-dynpro = '0101'.

bdcdata-dynbegin = 'X'.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-fnam = 'RF02K-LIFNR'.

bdcdata-fval = wa_final-lifnr.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-fnam = 'RF02K-EKORG '.

bdcdata-fval = wa_final-ekorg.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-fnam = 'RF02K-D0310'.

bdcdata-fval = 'X'.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-fnam = 'WRF02K-D0320'.

bdcdata-fval = 'X'.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = '/00'.

APPEND bdcdata.

CLEAR bdcdata.

bdcdata-program = 'SAPMF02K'.

bdcdata-dynpro = '0110'.

bdcdata-dynbegin = 'X'.

APPEND bdcdata.

CALL TRANSACTION 'XK03' USING bdcdata MODE 'E'.

ENDIF.

ENDIF.

ENDCASE.

ENDFORM. " get_user_command

regards,

sudha

S0025444845
Active Participant
0 Kudos

Hi,

For that U have to do the BDC recording in SHDB for your trnsaction code and pass it to Your code.

regards,

sudha

0 Kudos

Hi sudha,

thanks for your answer, but ME23N is an enjoy-transaction, and therfore

BDC is not possible.

Regards, Dieter