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

Function module to create order

Former Member
0 Likes
1,641

Hi

I have a program in which the input to selection screen

1. REFERENCE ORDER

2. MATERIAL

Need s FM /BAPI which will create a sales order with refernce and also for that particular material in which all the pricing is copied correctly .

Please suggest it will be very helpfull.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,028

Hi

To create the sales order using the referance sales order.

First get the referace sale order data using BAPI_SALESORDER_GETDETAILBOS.

using the BAPI_SALESORDER_CREATEFROMDAT2 create the new sales order by passing the getdetails bapi str.

Regards,

Raghu.

3 REPLIES 3
Read only

NAeda
Contributor
0 Likes
1,028

hi,

use

BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order

BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order

BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance

Read only

Former Member
0 Likes
1,029

Hi

To create the sales order using the referance sales order.

First get the referace sale order data using BAPI_SALESORDER_GETDETAILBOS.

using the BAPI_SALESORDER_CREATEFROMDAT2 create the new sales order by passing the getdetails bapi str.

Regards,

Raghu.

Read only

Former Member
0 Likes
1,028

Hi,

You can try this FM "BAPI_SALESDOCUMENT_COPY".

Regards,

Aditya