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: 

BAPI for Inbound delivery creation with custom fields

karthikeyan_p3
Contributor
0 Kudos
1,614

Hi all,

I am looking for a BAPI which has extensionin interface parameter to create Inbound delivery. I have searched the forums and got BBP_INB_DELIVERY_CREATE which works perfectly, but I don't have any option to transfer my custom fields value in this Function module.

Please share your thoughts if you have come across this scenario. We are into EHP7.

Thanks,

Karthikeyan


1 ACCEPTED SOLUTION

Former Member
0 Kudos
367

Check the function group V50I, there you will find:

BAPI_IBDLV_CREATE_FROM_OBDLV that creates an inbound delivery from an outbound delivery,

check also BAPI_INB_DELIVERY_SAVEREPLICA.

Regards,

Felipe

5 REPLIES 5

Former Member
0 Kudos
367

I doubt if function module BBP_INB_DELIVERY_CREATE is released for customer use.

Former Member
0 Kudos
368

Check the function group V50I, there you will find:

BAPI_IBDLV_CREATE_FROM_OBDLV that creates an inbound delivery from an outbound delivery,

check also BAPI_INB_DELIVERY_SAVEREPLICA.

Regards,

Felipe

0 Kudos
367

Hi Felipe,

Yeah, I have checked that. I need to create an inbound delivery based on Purchase Order data. BAPI_IBDLV_CREATE_FROM_OBDLV - expects an outbound delivery, which I don't have at this point of time.

BAPI_INB_DELIVERY_SAVEREPLICA - HEADER_DATA expects the inbound delivery number. This FM is used to transfer the Inbound delivery to the the Warehouse system.

I have also checked GN_DELIVERY_CREATE. But I don't find any provision to send our custom fields using this FM.

Do you find any way to send the zfield data to GN_DELIVERY_CREATE.

Thanks,

Karthikeyan

0 Kudos
367

I don't know if this is the most elegant way but you can create the inbound delivery with the function that you already know and then use BAPI_INB_DELIVERY_CHANGE to add your custom fields.

Regards,

Felipe

karthikeyan_p3
Contributor
0 Kudos
367

Our next process will be triggerred once the Inbound delivery is created, which depends on the value of the Zfield value. Also we don't want to have it as a 2 step process, first by creating & then by changing it. So we have decided to go with the below approach.

  1. Store the zfield value in a shared memory before calling the FM
  2. Implement the BADI LE_SHP_DELIVERY_PROC- method SAVE_DOCUMENT_PREPARE
  3. Import the zfield value from shared memory
  4. Pass it to CT_XLIKP-zfield.

if anyone finds the more suitable approach, please update this thread.

Thanks,

Karthikeyan