‎2006 Feb 09 4:23 PM
Hi,everyone.
Now i want to use JCo and BAPI to execute a function(create sales order with reference Quo ps:transaction code is VA01).
Which BAPI can do that?
Or anyone can suggest me other suitable BAPI to create a sales order?
Thx~~ by Louis
‎2006 Feb 09 4:24 PM
‎2006 Feb 09 4:24 PM
‎2006 Feb 09 4:26 PM
Hi Louis,
Uese function module :
BAPI_SALESORDER_CREATEFROMDAT2
Lanka
‎2006 Feb 09 4:26 PM
Hi,
the below bapis may suits ur req.
BAPI_SALESORDER_CREATEFROMDAT1 : Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 : Sales order: Create Sales Order
<b>BAPI_SALESORDER_CREATEFROMDATA</b> : Create Sales Order, No More Maintenance
Pls. reward if it suits.
Thanks
Eswar
‎2006 Feb 10 4:07 AM
HI, Eswar.
I had already found these three BAPIs in BAPI Browser.
But i still have several problem.
1. What`s difference among these BAPIs?
2. If i use BAPI_SALESORDER_CREATEFROMDAT2 , do i need to create order with filling all import parameters?
3. There are some import parameters that i can`t understand ,is there any document about it?
THx for ur help ,i am really strange to SD >.<
by Louis
‎2006 Feb 10 1:45 PM
The documentation is very good for the BAPI, so please go to SE37, enter the BAPI name and read the documentation. Almost all the parameters are documented well.
The difference between the various BAPIs is not much except that they are dependent on the versions from which they became available. CREATEFROMDAT2 is the latest one and if you have that in your version, use that.
Srinivas
‎2006 Feb 10 5:00 PM
Hi,Srinivas.
I know this way to get the BAPI document.
But i can`t understand all import parameters.(how they map with transaction VA01).
How do i know which import parameter is necessary to create an order?
I want to create a order with a quotation,which import parameters i need?
Thx for your help.^^
by Louis
‎2006 Feb 10 5:16 PM
It depends on your configuration as to what is required or what is not. But at the minimum you need ORDER_HEADER_IN, ORDER_ITEMS_IN, ORDER_SCHEDULES_IN and ORDER_PARTNERS. Of course, you will use the X structures associated with them as well.
Check this forum with the BAPI name, you will find some examples as well.