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

Variant condtions via BAPI

Former Member
0 Likes
1,010

Hi,

has anyone experience with manual conditions in variant configuration via BAPI. Lets say with "BAPI_CUSTOMERQUOTATION_CHANGE" and its "condition_in" structure.

I've got no problem with changing this manual conditions via the BAPI mentioned, but when I want to reset the price for a characteristic from manual to automatic I found no way to do it. I can change the price to the default but the field KHERK is still 'C' (manual). The problem is that when the default condition is assigned a new value via pricing maintenance the variant will not be recalculated because system thinks its manual.

I'm looking for possibilty to delete the manual variant condition so that the price is recalculated considering only the configurations default prices for this characteristic.

Hope someone can help,

Hans

5 REPLIES 5
Read only

Former Member
0 Likes
914

Hi Hans,

We have the same price issues in our variant config. if any charcterstics deleted or changed.

I have created a Custome program for calculating the price if any charctersitcs changed in a variant config.

At this moment I am away from my system and I will send you the details tomorrow.

Lanka

Read only

0 Likes
914

Hi Lanka,

I'm tensley waiting for your solution. My major problem is that I didn't get back the automatic flag KHERK = 'A' via BAPI when the variant condition is reset to default value.

Hope you can help me

Hans

Read only

0 Likes
914

Hi Hans,

Earlier We had same issue in using BAPI. I think we have used a function module(using in SAP Standard PO/Requistion creation) + BDC (I think I have to check my code) . Today we have power outage and I am not able to check my code.

I will send you the code as soon as I am able to log in to my system.

Lanka

Read only

0 Likes
914

Hi Hans,

We have adopted the following statergy in our VC for price varuation.

a) We have maintained a Ztable(X) which will holds all the charctestics combination values for a machine/Equipment.

Example : IF Chancterstic is VOLTAGE

110V $10

220V $20

440V $40

At the time of Order Or Requition cration our program looks in to this price and accumulate al of the prices and populates against pricing condition(Variance price).

b) There is Z program to update/change the prices in Ztable(X).

c) If any of the Charcterstics changed in Order/Quotation.

We have another Zprogram which checks the "price change date" in order/Quotation w.r.t to the price in Ztable against the charcterstic price and adjust the varuance price via BDC.

We have tried BAPI but we found lot of issues and then we hve adopted the above statergy.

Hope this may help you.

Lanka

Read only

0 Likes
914

Hi Lanka,

this seems to me something like the last resort and not like a sophisticated approach to solve the real problem. I want to do the change online and not scheduling a job for that. I want to take the BAPIs because of the confguration and price changes are both made in an external configurator which has an XML-Interface to the R/3 system.

Thank you for your contribution to my problem but it´s not the solution I will favour.

Hans