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

Issue while creating Outbound Delivery using Standard BAPI

Former Member
0 Likes
12,569

Hi all,

I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.

After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?

Regards,

Vimala P

8 REPLIES 8
Read only

Former Member
0 Likes
6,548

Hi,

This error normally occurs, if there is some problems with the input parameters which you are passing into the BAPI.

Please check the link http://www.se80.co.uk/sapfms/b/bapi/bapi_outb_delivery_create_sls.htm for reference. Also check the documentation of this BAPI in se37 transaction.

Regards,

Harish

Read only

0 Likes
6,548

Hi,

I am inputting the necessary value to sales_order_items parameter which is the only mandatory field for creation of outbound delivery. Iam passing the Sales order No, Sales document no., Quantity and Sales Unit. But still am getting the same error.

Regards,

Vimala P

Read only

0 Likes
6,548

Hi Vimala,

Have you tried debugging and find the reason for this message on what conditions this is issued, also when you say you are getting an error do you mean a message is issued or you get this in the RETURN parameter, please provide the MSGID, MSGNR etc.

Regards,

Chen

Read only

0 Likes
6,548

Hi,

Yes I debugged the code. This error is captured when there is no delivery items created. This error is captured in Return parameter. The MSGID-BAPI, MSGNO-001

Regards,

Vimala P

Read only

0 Likes
6,548

Is that the only message in the RETURN parameter?

Regards,

Chen

Read only

0 Likes
6,548

Hi,

Yes. Only this error message am getting in Return param. If not this BAPI, could anyone suggest me some other Standard BAPI through which I can create outbound delivery with reference to Sales order.

Regards,

Vimala P

Read only

Former Member
0 Likes
6,548

My problem was resolved. Iam able to create outbound delivery using FM-RV_DELIVERY_CREATE. The issue was due to usage of custom delivery type. I tried using the BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS,BAPI_DELIVERYPROCESSING_EXEC. But within this, the FM-RV_DELIVERY_CREATE is called without passing the delivery type as import parameter. Hence it has read it from config. Now i succeeded by directly calling this FM and passing the delivery type which i want to pass.

Thanks,

Vimala P

Read only

0 Likes
6,548

Hi Vimala,

I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.

1) Delivery Type

2) Delivery selection date

Needs to be passed in import parameters.

Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?

Thanks in Advance..

Regards,

Rajasekar .M