Skip to Content
0
Former Member
Jan 17, 2006 at 07:11 PM

Error in updating pricing using BAPI_QUOTATION_CREATEFROMDATA2

189 Views

Hi,

I am using the BAPI function module BAPI_QUOTATION_CREATEFROMDATA2. I am calling BAPI_TRANSACTION_COMMIT subsequently

I need to change an existing pricing condition ZMLT which is

automatically determined by the config while creating a sales quotation

Also I need to add ZFR1 and ZFR2 which are 2 freight condition types

(Condition Class = 'F')

Case 1

-


If I set the LOGIC-SWITCH-COND_HANDL = 'X', then I can correctly update

ZMLT using CONDITIONS_IN parameter, but I can't update ZFR1 and ZFR2

since they are freight condition types (as per Note 593246)

Case 2

-


If I set LOGIC-SWITCH-COND_HANDL = ' ', then I can correctly update

ZFR1 and ZFR2 freight condition types using the parameters

CONDITIONS_IN and CONDITIONS_INX. But when I try to update ZMLT, it

deactivates the existing line in the pricing and adds a new line with

same condition type ZMLT. Why does it do this...?

Here are the parameters that I am using as per Note 593246, Point 4

CONDITIONS_IN-ITM_NUMBER = '000010'

CONDITIONS_IN-COND_COUNT = '01'

CONDITIONS_IN-COND_TYPE = 'ZMLT'

CONDITIONS_IN-COND_VALUE = 12.00

CONDITIONS_IN-CURRENCY = ' ' (This is a percentage)

CONDITIONS_INX-ITM_NUMBER = '000010'

CONDITIONS_INX-COND_COUNT = '01'

CONDITIONS_INX-COND_TYPE = 'ZMLT'

CONDITIONS_INX-UPDATEFLAG = 'U'

CONDITIONS_INX-COND_VALUE = 'X'

CONDITIONS_INX-CURRENCY = 'X'

Please advise on this. Although the Total Value in the pricing is

correctly updated, why does it deactivate one line and insert a new one

for the same condition type.

Please note that my requirement is to add condition types ZFR1, ZFR2

and update ZMLT

Thanks and Regards,

Aditya Palekar