06-04-2007 8:48 AM
Hi!
RV_DELIVERY_CREATE creates a delivery... how to pos goods issue (PGI)
I know that I need to pass Delivery nr to WS_DELIVERY_UPDATE, but how to retrieve this nr? Is it a result of RV_DELIVERY_CREATE?
CALL FUNCTION 'RV_DELIVERY_CREATE'
EXPORTING
SELEKTIONSDATUM = SY-DATUM
VBSK_I = WA_VBSK
IF_SYNCHRON = 'X'
IF_NO_COMMIT = ''
IMPORTING
VBSK_E = WA_VBSKE
TABLES
LVBAK = t_vbak
LVBAP = t_vbap
LVBEP = t_vbep
LVBFA = t_vbfa
LVBFS = t_vbfs
LVBKD = t_vbkd
LVBLS = t_vbls
LVBPA = t_vbpa
LVBUK = t_vbuk
LVBUP = t_vbup.
IF SY-SUBRC <> 0.
ROLLBACK WORK.
ELSE.
COMMIT WORK.
ENDIF.
and
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
VBKOK_WA = I_VBKOK
SYNCHRON = 'X'
NO_MESSAGES_UPDATE = ' '
UPDATE_PICKING = 'X'
COMMIT = ' '
DELIVERY =
NICHT_SPERREN = 'X'
IF_ERROR_MESSAGES_SEND_0 = 'X'
TABLES
PROT = I_PROTT
EXCEPTIONS
ERROR_MESSAGE = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ROLLBACK WORK.
ELSE.
COMMIT WORK.
ENDIF.
by the way, what table to check if WS_DELIVERY_UPDATE processed succesfully?
Will reward,
Mindaugas
06-04-2007 9:20 AM
First thing : these function modules are not yet released by SAP. You can check the release status in their attributes screen. Which means, SAP may modify these function modules in future releases completly. so - take a note on that.
next, to check if the delivery is PGI'd or not, you can look into table LIKP and field WADAT_IST which stores the actual PGI date (this field gets updated during the PGI process).
Award if it helps
Krishna
06-04-2007 9:20 AM
First thing : these function modules are not yet released by SAP. You can check the release status in their attributes screen. Which means, SAP may modify these function modules in future releases completly. so - take a note on that.
next, to check if the delivery is PGI'd or not, you can look into table LIKP and field WADAT_IST which stores the actual PGI date (this field gets updated during the PGI process).
Award if it helps
Krishna
06-04-2007 9:34 AM
thanks for your input.
still not clear... what parameter I should pass to WS_DELIVERY_UPDATE?
I think it must be Delivery nr, but how I have it? Probably RV_DELIVERY_CREATE has to generate it, right?
BR, M.
06-04-2007 9:41 AM
by the way, did you mean WADAT instead of WADAT_IST?
Because I can not find WADAT_IST in LIKP, just WADAT...
BR, M.
06-04-2007 10:23 AM
You need to pass your delivery number for the field "DELIVERY" in the FM ws_delivery_update.
And for actual PGI date field it is WADAT_IST. Its available in LIKP.
06-04-2007 11:39 AM
yes, but how to get Delivery nr before passing it to WS_DELIVERY_UPDATE?
I guess it has to be provided by RV_DELIVERY_CREATE, isn't it? If yes, what is the parameter of RV_DELIVERY_CREATE containing this nr?
BR, M.
06-04-2007 1:01 PM
hi,I think you should get the delivery number in the export parameter under structure
ET_SPLITPROT-VBELN
Hope this helps.
Krishna