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 For CREATE SALES ORDER WITH REFERENCE TO ORDER

Former Member
0 Likes
1,312

Hi ,

I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -

Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change

but couldn't find for create with reference to Order ...

Thanks in advance ...

Regards

Rajesh.

Hi ,

I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -

Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change

but couldn't find for create with reference to Order ...

Thanks in advance ...

Regards

Rajesh.

3 REPLIES 3
Read only

Former Member
0 Likes
591

Hi,

You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.

Reward if it's useful.

Thanks,

Anil

Read only

Former Member
0 Likes
591

Use "BAPI_SALESDOCUMENT_COPY" .

This should help creating sales doc with reference .

regards

sampada

Read only

ajay_mukundan2
Participant
0 Likes
591

Hi Rajesh,

Is your question answered? Else try using BAPI_SALESDOCUMENT_COPY and BAPI_TRANSACTION_COMMIT.

pass your reference document in BAPI_SALESDOCUMENT_COPY and the Document type to be created. Use the BAPI_TRANSACTION_COMMIT to save the sales order.