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

A Problem about BAPI

Former Member
0 Likes
648

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
627

BAPI_SALESORDER_CREATEFROMDAT2

7 REPLIES 7
Read only

Former Member
0 Likes
628

BAPI_SALESORDER_CREATEFROMDAT2

Read only

Former Member
0 Likes
627

Hi Louis,

Uese function module :

BAPI_SALESORDER_CREATEFROMDAT2

Lanka

Read only

Former Member
0 Likes
627

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

Read only

0 Likes
627

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

Read only

0 Likes
627

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

Read only

0 Likes
627

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

Read only

0 Likes
627

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.