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

Create Sales order using Reference doc no (BAPI)

Former Member
0 Likes
534

Hi,

We have to create sales order with reference to another sales order. we are using BAPI_SALESORDER_CREATEFROMDAT2.

Currently we are passing Header data & partner data. But not item.

We are passing reference sales order no to HEADER-REF_DOC. and HEADER-REF_DOC_CAT = 'C'.

The return value of the BAPI is 'SALES_HEADER_IN has been processed successfully'.

When we open the new sales order, only header data exist. Item data is not copied from the reference sales order.

Should we assign ITEM data with Reference doc to BAPI?

Please suggest.

Regards,

Ramesh

Thank you.

2 REPLIES 2
Read only

Former Member
0 Likes
426

try with this.....

BAPI_SALESDOCUMENT_COPY

Read only

Former Member
0 Likes
426

try with this.....

BAPI_SALESDOCUMENT_COPY