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: 

BAPI FUNCTION TO CREATE A SALES ORDER

Former Member
0 Kudos

I AM USING BAPI_SALES_CREATEFROMDAT1 AND BAPI_SALES_CREATEFROMDAT2 HERE IN FIRST FN IAM GETTING THE SALES ORDER NO BUT NOT IN 2ND FN.EVEN THOUGH ITS EXECUTING PROPERLY ITS GIVING

*Please enter sold-to party or ship-to party

*Sales document was not changed

but here both the internal tables of bapi are same as its mentioned in the function module documentation,

can I get the soln

4 REPLIES 4

Lakshmant1
Active Contributor
0 Kudos

Hi Nandan,

Check OSSNOTE 611553.

Thanks

Lakshman

0 Kudos

I am trying to create Sales Order , but although the

order gets created, it does not GIVE ME THE SALES DOCUMENT NO .

The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.

Would someone know which parameters I have to papulate,or have any other suggestion

how to accomplish my task?

0 Kudos

Hi Nandan,

The note 611553 contains SAP correction to a standard program for displaying the Log.

Thanks

Lakshman

Former Member
0 Kudos

There are some other structures and tables that need to be supplied to BAPI_SALESORDER_CREATEFROMDAT2 that BAPI_SALESORDER_CREATEFROMDAT1 doesn't require. For example BAPI_SALESORDER_CREATEFROMDAT2 has import structure BAPISDHD1. That structure has a corresponding structure BAPISDHD1X. For every field you supply data for in BAPISDHD1, you need to put an 'X' in the same field in BAPISDHD1X. Look at transaction BAPI for the documentation.

Brian