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 in bapi BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
2,239

Hi,

I am using BAPI BAPI_SALESORDER_CREATEFROMDAT2 for sales order upload.

Now the problem is that i am entering value in condition type PR00 in condition table for BAPI.

After data gets uploaded and saled order is created; In VA02 when i check for the conditions it shows me 2 values for PR00 . One which i entered in BAPI and other which is coming from system.

I have made the settings , So while calculating final value its taking manual enter value only but it

still displays the system generated value and thats what i dont want.

Can there be a way with which i can overwrite(using BAPI) the system generated value for condition type 'PR00'.

regards

vivek

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,464

Vivek-

You need to set the BAPI data to overwrite the pricing conditions that automatically generate.

When you set up the pricing condition table to be passed to the BAPI, you need to set the "Step Number" - COND_ST_NO and "Condition Counter" - COND_COUNT so it overwrites the standard pricing that wants to automatically determine. You can get the step number from your pricing procedure. For the counter, just check the counter number of a sales order that was created manually and match it. In my case, it was '01', which I believe is typical.

Hope this helps,

Mark

6 REPLIES 6
Read only

Former Member
0 Likes
1,465

Vivek-

You need to set the BAPI data to overwrite the pricing conditions that automatically generate.

When you set up the pricing condition table to be passed to the BAPI, you need to set the "Step Number" - COND_ST_NO and "Condition Counter" - COND_COUNT so it overwrites the standard pricing that wants to automatically determine. You can get the step number from your pricing procedure. For the counter, just check the counter number of a sales order that was created manually and match it. In my case, it was '01', which I believe is typical.

Hope this helps,

Mark

Read only

0 Likes
1,464

Hi Mark,

It doesnt work!!!

regards

vivek

Read only

Former Member
Read only

0 Likes
1,464

hi krupa,

It doest help!!!!

regards

vivek

Edited by: vivek jain on May 25, 2009 11:12 AM

Edited by: vivek jain on May 25, 2009 11:13 AM

Read only

0 Likes
1,464

hi,

try to use LOGIC_SWITCH-COND_HANDL = 'X'....

regards,darek

Read only

Former Member
0 Likes
1,464

Hi Vivek,

Did you get the anwser for your question. I am also facing the same issue.

I appreciate if you share any pointers on this.

Thanks and Regards,

Gopi