07-04-2015 10:58 AM
Hi All,
We have a requirement where a price condition should be picked based on the partner value for partner function FI(Financier) entered in sales order.
Since partner is not in the pricing field catalog and not in the structures KOMG, I created new field in the structure KOMPAZ and added to the Pricing field catalog. Also I have made the partner value flow from sales order to the value of field created by writing code in the userexitUserExit_Pricing_Prepare_TKOMP of programs MV45AFZZ and RV60AFZZ.
I have done all the configurations related to condition technique,maintained the condition record too.
Now after adding partner for partner function FI in sales order, it is not picking the condition value in item pricing, in Pricing analysis,it shows Access not made(Initialized field) against the field Partner.
Also in Billing document, the Partner field is populated but it shows the message 'condition record exists but has not been set' in Item level Pricing Condition Analysis.
Please suggest on how to solve this.
I checked the SAP Note 26115 and searched many forums regarding the issue.
It is mentioned in the note to write logic to force change of Pricing type in the userexits
1.USEREXIT_NEW_PRICING_VBKD and
2.USEREXIT_NEW_PRICING_VBAP of include MV45AFZB.
But the new field which I have used is not in structure VBKD and VBAP as it is a DBM order and VBKD and VBAP are standard tables.
These changes related to Pricing are done for a DBM Vehicle order.
Please suggest if there are any other userexits where I can make similar settings for Pricing of a DBM Sales Order.
Regards,
Manasa
10-04-2015 8:15 AM
HI Manasa,
I am also facing the same problem. Did you got any solution for this???
10-04-2015 8:15 AM
HI Manasa,
I am also facing the same problem. Did you got any solution for this???
10-07-2015 6:13 PM
Hi Ankit,
Yes solution is to implement the enhancement /DBM/PRICING_COM and populate the newly added field in methods CHANGE_KOMK or CHANGE_KOMP
method /dbm/cl_order=>INSTANCE_GET_BY_VBELN can be used to get DBM
Order instance. Then data can be used from instance.
Regards,
Manasa
10-05-2015 5:13 PM
Hi
You can use the Business Add-In BadI: Enhancement for Pricing to change fields in the communication structures for pricing.
Also check SAP NOTE - 1017729
10-06-2015 6:30 AM
Hi ,
As Vishal said, you have to implement enhancement /DBM/PRICING_COM and populate the newly added field in methods CHANGE_KOMK or CHANGE_KOMP depending on header or item field respectively.
Also check structure KOMFKGN is appended with the field you added.
Regards
Ganesh