cancel
Showing results for 
Search instead for 
Did you mean: 

VA02: Carry out new pricing by changing item category

Former Member
0 Kudos

Hi,

i want to carry out a new pricing if the item category change in VA01 or VA02. I create a new pricing procedure and new item category. But if the user change the item category in VA01/VA02 manuelly the system will not carry out a new pricing. I need the new price on the basis of the current item category in the VA01/VA02.

I search in the OSS and in this forum but I find no details of this problem.

Thanks and Regards

Alfred

Accepted Solutions (1)

Accepted Solutions (1)

andrea_olivieri
Contributor
0 Kudos

Hi Alfred,

in order to fire a new pricing determination you have to implement the userexit USEREXIT_NEW_PRICING_VBAP in SAPMV45A (Include MV45AFZB).


form userexit_new_pricing_vbap changing new_pricing.
if vbap-pstyv ne *vbap-pstyv.
   new_pricing = 'B'.
endif.
endform.                    "USEREXIT_NEW_PRICING_VBAP

Kind Regards.

Andrea

Edited by: Andrea Olivieri on Jul 10, 2009 5:38 PM

Former Member
0 Kudos

Hi Andrea,

thanks for the tip. It solves my request exactly.

Kind regards

Alfred

Former Member
0 Kudos

Hi Andrea,

I have a similar requirement.

Pricing should be determined automatically when any change at partner function are made.

But instead After clicking on MANUAL button,price are getting determined.

Kindly go through this link and let me know if you have any idea?

http://scn.sap.com/thread/3433843?start=0&tstart=0

Cheers,

Ritika

Answers (3)

Answers (3)

Lakshmipathi
Active Contributor
0 Kudos
i want to carry out a new pricing if the item 
    category change in VA01 or VA02

Can you please let me know how your pricing condition is maintained in VK11; is it on the combination of Material / Item Category basis ??

If not, even if you apply user exit, on what logic you write the coding.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi,

i create a new condition type ZLT0 and ZLT1. I use VK11 and the Tables are A005 and A004. Both tables and the access will work correct, if there is no change in the item category.

In the control data of the pricing procedure i define a new requirement (RV61A912) which include the following coding:

IF KOMP-PSTYV = 'Z0' AND LS_KOMT1-KSCHL = 'ZLT0'.

SY-SUBRC = 0.

ENDIF.

IF KOMP-PSTYV = 'Z1' AND LS_KOMT1-KSCHL = 'ZLT1'.

SY-SUBRC = 0.

ENDIF.

Thank you for kindly help.

Alfred

Former Member
0 Kudos

I added a field to the field catalog in order to include in the pricing table. The field is ZZPSTYV.

In user exit MV45AFZZ, add the following code:

FORM USEREXIT_PRICING_PREPARE_TKOMP.

  • Move the Item category to Sales Item Category for use in price

  • conditions

MOVE VBAP-PSTYV TO TKOMP-ZZPSTYV.

ENDFORM.

Former Member
0 Kudos

Hi Anabela,

I have got a question: To move the item category into the append structure of tkomp is no problem, but i think i have to do more. Now the access is on basic of table A004 und A005 without pstyv in the access sequences. To solve my problem with your solution, i need a new access sequence with the pstyv in the key (e.x. a customer a501). I´m right in the assumption that i can´t use A004 und A005 in your scenario?

Thanks for help

Alfred

Former Member
0 Kudos

Yes, that is correct. A new table will be needed and added to the access sequence so it will be able to redetermine the pricing.

Please refer to this link for additional information.

http://www.sap-basis-abap.com/sd/how-to-add-new-fields-to-field-catalog.htm

Former Member
0 Kudos

Hi,

Same Scenario we faced in previous project ,

Sorry to say there is no any solution in the standard SAP ,

What we did is made a Document Pricing Procedure for each Item Category,

& it's assignment to for Pricing Determination in OVKK,

& our ABAPER wrote User-Exit for determination of Pricing,

on base of Document Pricing Procedure,

Logic is when Item Category Change make a code for calling a Document Pricing Procedure & followed by Pricing,

This the only Solution for your Problem,

Regards,

Sai

Former Member
0 Kudos

Hi there,

Pricing Procedure Determination: Sales Area / document pricing procedure / customer pricing procedure.

Here if you find, there is nothing which is based on item catg.

Even though you change the item catg, your doc pricing proc will be same (since its still the same order type) & customer pricing proc will be same (since no change in cutomer). Your sales area will abvoiusly not change.

So in effect, even if item catg is changed, no change in pricing procedure coz system willnot trigger pricing when you change item catg. So no point in carryig out new pricing.

1 doubt, In pricing procedure in V/08, is any of your condition type based on item catg? I dont think so. Even if it is the case, when you change the item catg, condition type will automatically be copied when you save.

Regards,

Sivanand