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: 

FM/BAPI to change item delivery date in a inbound delivery

sreekanth_n2
Active Participant
0 Kudos

Hi Experts,

I need FM/BAPI to change item delivery date in a inbound delivery

Regards,

Sree

11 REPLIES 11

NooruBohra
Participant

Hi,

Check the BAPI_INB_DELIVERY_CHANGE and WS_DELIVERY_UPDATE.

https://answers.sap.com/questions/5429100/how-to-change-delivery-date-lfdat-in-a-inbound-del.html

It can be found on community easily. Please search before posting.

0 Kudos

Before you reply read my query clearly.

It is about changing item date not header date.

raymond_giuseppi
Active Contributor

Did you read the whole provided links, and then did you try to pass item fields not in ITEM* parameters to EXTENSION2 of BAPI_INB_DELIVERY_CHANGE AND handle this data in BAdI SMOD_V50B0001 method EXIT_SAPLV50I_009 which allows some change of items ?

0 Kudos

Thanks Raymond.

I have checked all methods but we dont have field delivery date at item level.

0 Kudos

Were you able to change date with VL32n ?

0 Kudos

yes in VL32N.

but not able to find that item delivery date field in any changing/exporting parameters of any FM/BAPI.

0 Kudos

To prevent misunderstandings, in VL32N, press F1 on the date field, which one is it (table name-field name)

0 Kudos

this item delivery date is not part of LIPS. Hence the issue.

Item delivery date field name is LFDAT_LA.

Isn't RV50A-LFDAT_LA equal to LIKP-LFDAT so an header field, so what is your exact requirement (split an already processed inbound delivery ?)

sreekanth_n2
Active Participant
0 Kudos

Thanks Raymond for your follow up on this thread and your valuable suggestions.

Delivery date do exist both header level and also at item level.

We cannot maintain different delivery dates to different items in inbound delivery. This is SAP Standard Behaviour.

Informed same to business , they agreed and changed the business requirement.

0 Kudos

EX.

For inbound delivery, this code is working to change LIKP-LFDAT.

DATA : ls_vbkok TYPE vbkok,
lv_vbeln TYPE likp-vbeln.

ls_vbkok-vbeln_vl = lv_vbeln.

ls_vbkok-kzlfd = 'X'.

ls_vbkok-lfdat = '20200101'. "new date

ls_vbkok-lfuhr = '110000'.

CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = ls_vbkok
delivery = lv_vbeln
commit = 'X'.