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

Error while creating Sales Order

Former Member
0 Likes
866

Hi,

I am trying to create a sales order using Bapi BAPI_SALESORDER_CREATEFROMDAT1. I am getting the error:

Condition contract pricing is not activated.

Do we need to pass sonme data to the BAPI that is not being passed? If thats the case, what data we need to pass and in which structure and field of Bapi do we need to pass the data?

Else what steps do we need to take to rectify the above error.

Thanks.

Mick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
826

hi

try this BAPI_SALESORDER_SIMULATE .

you have to execute BAPI_TRANSACTION_COMMIT after using your BAPI .

hope this helps

regards

Aakash Banga

6 REPLIES 6
Read only

Former Member
0 Likes
827

hi

try this BAPI_SALESORDER_SIMULATE .

you have to execute BAPI_TRANSACTION_COMMIT after using your BAPI .

hope this helps

regards

Aakash Banga

Read only

0 Likes
826

Wouldnt you execute BAPI_TRANSACTION_COMMIT only if BAPI_SELESORDER_CREATEFROMDAT1 has been successful? The problem here is that BAPI_SELESORDER_CREATEFROMDAT1 is throwing an error and what do we need to do to rectify the error?

Mick

Read only

Former Member
0 Likes
826

check whether u have given all these parameters

1. Mandatory entries:

ORDER_HEADER_IN : DOC_TYPE Sales document type

SALES_ORG Sales organization

DISTR_CHAN Distribution channel

DIVISION Division

ORDER_PARTNERS..: PARTN_ROLE Partner functions, SP sold-to party

PARTN_NUMB Customer number

ORDER_ITEMS_IN..: MATERIAL Material number

REQ_QTY Order quantity in sales unit

IF else,i think some configuration is missing

Read only

0 Likes
826

Thanks TT. I am passing all the parameters mentioned by you to the bapi BAPI_SALESORDER_CREATEFROMDAT1.

However when I create a sales order using the same parameters using TCode VA01, I am able to create the sales order, however some of the values are filled by deafult by the system.

Please help.

Mick

Read only

0 Likes
826

Hi,

In which TCode and table can I check and activate Condition contract pricing?

Mick

Read only

Former Member
0 Likes
826

clsoing this as there is no further progress