Folgende Benutzer bedankten sich beim Autor black_adept für den Beitrag:
Sebastian82
Code: Alles auswählen.
FUNCTION WFMC_MESSAGE_SINGLE.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(PI_NAST) TYPE NAST
*" EXPORTING
*" VALUE(PE_RCODE) LIKE SY-SUBRC
*"----------------------------------------------------------------------
Move PI_NAST to NAST.
PERFORM EINZELNACHRICHT(RSNAST00) USING PE_RCODE.
ENDFUNCTION.
Folgende Benutzer bedankten sich beim Autor Tron für den Beitrag:
Sebastian82
Code: Alles auswählen.
REPORT Z_NAST.
data: i_vbeln type vbeln value '2235'.
data: opt TYPE ctu_params.
DATA: it_batchdata TYPE STANDARD TABLE OF bdcdata.
DATA: it_msg TYPE STANDARD TABLE OF bdcmsgcoll.
it_batchdata = VALUE #( ( program = 'SAPMV45A' dynpro = '0102' dynbegin = 'X' fnam = '' fval = '' )
( program = '' dynpro = '' dynbegin = '' fnam = 'VBAK-VBELN' fval = i_vbeln )
( program = '' dynpro = '' dynbegin = '' fnam = 'BDC_OKCODE' fval = '=ENT2' )
( program = 'SAPMV45A' dynpro = '4001' dynbegin = 'X' fnam = '' fval = '' )
( program = '' dynpro = '' dynbegin = '' fnam = 'BDC_OKCODE' fval = '=KDOK' )
( program = 'SAPDV70A' dynpro = '0100' dynbegin = 'X' fnam = '' fval = '' )
( program = '' dynpro = '' dynbegin = '' fnam = 'BDC_OKCODE' fval = '=V70S' )
).
*BREAK-POINT.
*
opt-dismode = 'N'.
opt-updmode = 'S'.
CALL TRANSACTION 'VA02' USING it_batchdata "OPTIONS FROM opt
MESSAGES INTO it_msg
UPDATE opt-updmode
MODE opt-dismode.