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

BAPI_SALESORDER_CREATEFROMDAT2 with ref. SO

Former Member
0 Likes
626

Hi experts,

I'm facing a issue while using BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order with reference to another sale order.The sale order is created whereas the document flow is not being mainteined...

I think im not clear about supplying the valuers for the following parameters.

l_order_header_in-REFOBJTYPE = ?????

l_order_header_in-REFOBJKEY = vbak-vbeln

l_order_header_in-REFDOCTYPE = vbak-auart

Kindly let me know what should be value for l_order_header_in-REFOBJTYPE incase of a Sale Order(ref obj). Incase of any more parameters tobe maintained for achieving the same kindly provide the details.

Regds

Priya

2 REPLIES 2
Read only

Former Member
0 Likes
523

Hi Priya

OOPS Sorry with my earlier reply.

Please check this:

For creating with reference to another document, we have to pass the following parameters apart from the other mandatory parameters:

REF_DOC

REFDOC_CAT

Hope this helps.

Kind Regards

Eswar

Message was edited by:

Eswar Rao Boddeti

Read only

Former Member
0 Likes
523

Thx Eswar