Application Development 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: 

Creating SO

Former Member
0 Kudos

Hi,

I got a requirement that is

Whenever the user is creating a PO (Some type) it should create SO for another plant which is existing in same client system .

It should not be a BDC . It should be authomatic Creation not Scheduled also.

Please,Suggest me the Ways.

Thanks & Regards,

Nandha

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

There are several ways -

1) Use CALL TRANSACTION - this is very similar to BDC as you fill the screens and fields in the same way.

Disadvantage - performance especially if the orders have many items on them.

2) Use BAPI BAPI_SALESORDER_CREATEFROMDAT2 - this will be faster.

Disadvantage - it can be difficult to work out what fields should be filled. I recommend you try a prototype in LSMW using some test data.

2 REPLIES 2

Former Member
0 Kudos

Hi,

There are several ways -

1) Use CALL TRANSACTION - this is very similar to BDC as you fill the screens and fields in the same way.

Disadvantage - performance especially if the orders have many items on them.

2) Use BAPI BAPI_SALESORDER_CREATEFROMDAT2 - this will be faster.

Disadvantage - it can be difficult to work out what fields should be filled. I recommend you try a prototype in LSMW using some test data.

Former Member
0 Kudos

Hi,

As my understanding it is better to use the bapi funciton module BAPI_SALESORDER_CREATEFROMDAT2.But here you have to create the SO from the PO.So here you cannot get the some of the mandatory fields for the BAPI.So you have to create the program and before call the funciton module you have to write the logic to retrieve the mandatory fields and then populate to BAPI.

This is best way.

Thanksand regards,

shyla