Application Development and Automation 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: 
Read only

Need BAPI or Function Module for Inbound Delivery

rameshkumarbalivada
Discoverer
0 Likes
2,052

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,344

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 .

2 REPLIES 2
Read only

SimoneMilesi
Active Contributor
0 Likes
1,344

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.

Read only

Former Member
0 Likes
1,345

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 .