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 to create outbound delivery

Former Member
0 Kudos

Hi Everyone,

Does anybody know of any BAPI to create an outbound delivery?

I have a java application that will pass in the sales order number to SAP, and SAP must perform an outbound delivery for this sales order automatically.

If there is no BAPI, what is the best alternative method?

Best Regards,

Junwen

1 ACCEPTED SOLUTION

jack_graus2
Active Contributor

BAPI_DELIVERYPROCESSING_EXEC

Can be used to deliver preceding documents like a sales order.

Best regards Jack Graus

18 REPLIES 18

Former Member
0 Kudos

Hi Junwen,

Try if this BAPI works

"BAPI_OUTB_DELIVERY_SAVEREPLICA"

Regards,

Srini

0 Kudos

Hi,

BAPI_OUTB_DELIVERY_SAVEREPLICA requires delivery number as input. However, at the point when I pass in the information from the Java system, I will only have the sales order data. Thus, I can't use this BAPI?

Best Regards,

Junwen

Former Member
0 Kudos

M not sure. But there is one BAPI_SALESORDER_CREATEFROMDAT2.

0 Kudos

Hi Everyone,

Will the use of IDOC help anyway in this solution? Suppose I design a form in my Java system, have user enter the required information and throw it out to SAP as an IDOC document?

However, how then do I link this document to the sales order previously created in SAP?

Best Regards,

Junwen

jack_graus2
Active Contributor

BAPI_DELIVERYPROCESSING_EXEC

Can be used to deliver preceding documents like a sales order.

Best regards Jack Graus

0 Kudos

Hi Jack,

This BAPI works! It does allows me to create a DO for the sales order. Thank you!

I was trying to create the DO via BDC. This BAPI reduces a lot of work. However, the BAPI does not post a goods issue automatically, unlike when using BDC.

I tried using BAPI_GOODSMVT_CREATE but it seems that this BAPI does not support Goods Issue for DO as I got the error message 'Goods Movement not possible with mvmt type 601'.

Best Regards.

Junwen

0 Kudos

We do the posting in two steps, create the delivery with the BAPI, then use a BDC on VL02 (very small) to do the PGI.

I am currently having a problem with the BAPI. I have a valid table of requests, but i get no delivery items, and nothing returned in the return table. so, i have no way of knowing what about the delivery the system did not like. any ideas?

0 Kudos

Hi David,

Does calling BAPI_TRANSACTION_COMMIT help?

I also solved the outbound delivery problem via two steps, first is via BAPI_DELIVERYPROCESSING_EXEC, then via BDC to cater to the batch split.

Best Regards,

Junwen

0 Kudos

Hey Junwen, i am trying to do exactly what you described in step one minus the goods issue. Did you have any trouble with this BAPI as it says in the function help that this is for internal use only. I am concerned that this bapi might cause problems if SAP were to change it without notification.

As well, if not too much trouble can you send me a list of parms you used to populate this bapi (test mode). I am having trouble gettting my sales order to deliver.

Thanks again. I hope this is not too much of a request.

Just really stuck.....

0 Kudos

Hello,

i have the same problem,

can you send me an example of use of BAPI_TRANSACTION_COMMIT?

0 Kudos

Hello,

i have the same problem,

can you send me an example of use of BAPI_DELIVERYPROCESSING_EXEC?

0 Kudos

Hello,

i have the same problem,

can you send me an example of use of BAPI_DELIVERYPROCESSING_EXEC?

0 Kudos

fyi all - there is actually an unreleased IDoc - DELIVERYPROCESSING_EXECUTE01 and corresponding inbound function module IDOC_INPUT_DELIVERYPROCESSING_ that then call the BAPI listed previously BAPI_DELIVERYPROCESSING_EXEC... unfortunately these are all still in the status unreleased!

0 Kudos

Though it's not a BAPI formatted Function Module, we are using RV_DELIVERY_CREATE to create an outbound delivery.

For updating pick qty and do PGI, we are using SD_DELIVERY_UPDATE_PICKING_1.

Hope that can help you.

0 Kudos

Hello Junwen...

i have the same problem,

can you send me an example of use of BAPI_DELIVERYPROCESSING_EXEC?

0 Kudos

Hi Jonathan,

Would you be able send sample test data for SD_DELIVERY_UPDATE_PICKING_1 FM? Is it necessary to have a Warehouse Transfor Order in order to do the picking using this FM?

Thanks a lot.

Former Member
0 Kudos

I have a java application that will pass in the sales order number to SAP.but i can't use any bapi create an outbound delivery.

can you give me a create outbound delivery java source code.i see you have resolve this pro.

thank very much

Rauno
Participant
0 Kudos

Hello

you can create the picking confirmation and the goods issue posting by using the IDOC interface based on IDOC-Type DELVRY03, Message type WHSCON

See docu in http://help.sap.com/saphelp_46c/helpdata/en/34/60aed5ae724effe10000009b38f91f/frameset.htm

Best regards

Rauno