07-03-2007 12:53 PM
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
07-03-2007 4:15 PM
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.
07-03-2007 4:15 PM
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.
07-04-2007 10:19 AM
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