‎2016 Jul 19 11:17 AM
Hi Experts,
Is there any Function module or BAPI for creating inbound delivery by passing parameters Shipping point(vstel), Order(vbeln) and Delivery Type(lfart).
I tried to use FM 'BBP_INB_DELIVERY_CREATE' but it does not have a field lfart(Delivery type) to pass.
Please help me with your solution ASAP.
Regards
Ramesh
‎2016 Jul 19 3:48 PM
Hi Ramesh,
The FM 'BBP_INB_DELIVERY_CREATE' which you are using is calling core
FM "GN_DELIVERY_CREATE" to create Inbound Delivery which have LFART(Delivery type)
Either you can use the FM "GN_DELIVERY_CREATE" directly by using the logic as written in FORM INB_DELIVERY_CREATE of FM 'BBP_INB_DELIVERY_CREATE' and pass Delivery Type in LT_KOMDLGN ( KOMDLGN-LFART )
Or you can create a Wrapper FM for Standard FM 'BBP_INB_DELIVERY_CREATE' and create new structure for BBP_INBD_L with have Delivery Type added and use that later in the FORM INB_DELIVERY_CREATE .
‎2016 Jul 19 11:39 AM
Hi Ramesh,
Order-> vbeln? It's a return delivery?
If you got order you can use BAPI_DELIVERYPROCESSING_EXEC and the delivery type is choosen according the document flow in customizing from order data.
‎2016 Jul 19 3:48 PM
Hi Ramesh,
The FM 'BBP_INB_DELIVERY_CREATE' which you are using is calling core
FM "GN_DELIVERY_CREATE" to create Inbound Delivery which have LFART(Delivery type)
Either you can use the FM "GN_DELIVERY_CREATE" directly by using the logic as written in FORM INB_DELIVERY_CREATE of FM 'BBP_INB_DELIVERY_CREATE' and pass Delivery Type in LT_KOMDLGN ( KOMDLGN-LFART )
Or you can create a Wrapper FM for Standard FM 'BBP_INB_DELIVERY_CREATE' and create new structure for BBP_INBD_L with have Delivery Type added and use that later in the FORM INB_DELIVERY_CREATE .