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

FM SD_SALESDOCUMENT_CREATE - pricing condition problem

Former Member
0 Likes
2,360

Hello,

I hope someone could help me on this one:

First of all, my SAP version is 4.6c.

I've been developing a program that will create a sales contract using FM SD_SALESDOCUMENT_CREATE. Overall, the sales contract is being created successfully.

However, in the item pricing, the pricing condition that I need to create is being duplicated. I understand that in the pricing procedure the particular condition is being inserted automatically. The problem is, instead of the FM updating the default inserted pricing condition, it's inserting the one being passed.

I've already done a little research through the forums. I've tried [this|; suggestion where I create first the document then update it using SD_SALESDOCUMENT_CHANGE. There is also [this suggestion|; that sets the field LOGIC_SWITCH-COND_HANDL, but my version does not have that field.

Finally, there's [this suggestion|http://www.sapfans.com/forums/viewtopic.php?f=13&t=218865&start=0&st=0&sk=t&sd=a] that sets the field LOGIC_SWITCH-PRICING to a particular value. I tried the initially suggested value of 'G' - Copy pricing elements unchanged and redetermine taxes. The duplicate condition no longer occurs, but other pricing conditions were removed. Using other values resulted in either the contract creation failing, or the condition value not updating.

So, please please can anyone help with my problem? Thank you in advance.

1 REPLY 1
Read only

Former Member
0 Likes
866

SALES_CONDITIONS_IN

ITM_NUMBER 000010

COND_ST_NO 020

COND_COUNT 01

COND_TYPE YB05

COND_VALUE 10.000000000

CURRENCY TWD

SALES_CONDITIONS_INX

ITM_NUMBER 000010

COND_ST_NO 020

COND_COUNT 01

COND_TYPE YB05

UPDATEFLAG U

COND_VALUE X

CURRENCY X

IF the condition is being inserted automatically,you must update it.

some import parameters are obligatory,including COND_ST_NO COND_COUNT.