Skip to Content
0
Jun 04, 2007 at 07:48 AM

relation between RV_DELIVERY_CREATE and WS_DELIVERY_UPDATE

195 Views

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