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: 

relation between RV_DELIVERY_CREATE and WS_DELIVERY_UPDATE

former_member699400
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

by the way, did you mean WADAT instead of WADAT_IST?

Because I can not find WADAT_IST in LIKP, just WADAT...

BR, M.

0 Kudos

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.

0 Kudos

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.

0 Kudos

hi,I think you should get the delivery number in the export parameter under structure

ET_SPLITPROT-VBELN

Hope this helps.

Krishna