06-12-2007 1:43 PM
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
06-12-2007 1:45 PM
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
06-12-2007 1:45 PM
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
06-12-2007 1:52 PM
Hi Anji,
but this is what i want. Nevigate direct in an sub level.
Regards, Dieter
06-12-2007 1:54 PM
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
06-12-2007 1:55 PM
Hi,
For that U have to do the BDC recording in SHDB for your trnsaction code and pass it to Your code.
regards,
sudha
06-12-2007 1:59 PM
Hi sudha,
thanks for your answer, but ME23N is an enjoy-transaction, and therfore
BDC is not possible.
Regards, Dieter