cancel
Showing results for 
Search instead for 
Did you mean: 

When Creating Credit memo pricing formula gets triggered even if pri typ D

Former Member
0 Kudos

Hi gurus,

We have a copy control set up from billing doc to credit memo doc with all the item catergories pricing type as D (Copy pricing elements unchanged ). We have a discount condition in pricing procedure which is set to statistical based on a condition base formula.

When I create a credit memo all condition are copied from billing document but the discount condition is set to statistical, which in term throws off the further calculations.

I found out that this is happening because the condition base formula is getting executed during copy and discount condition get statistical.My understanding was that ,making the pricing type D should not even touch the formula,it should copy conditions as it is.

Have anybody seen this issue before , is there a way to control it ? Or this is a SAP bug ?

Please respond,below is the excerpt of our pricing procedure in billing and credit memo

Billing doc pricing :

ZVEN Vendor List Price 135,00

ZVDC Vendor Discount 50,000- -


> not statistical

Customer Discounted 67,50

Credit memo pricing :

ZVEN Vendor List Price 135,00

ZVDC Vendor Discount 50,000- -


> statistical

Customer Discounted 135,00

Thanks in advance for your help...

Swapnil

Edited by: Swapnil Santosh on Oct 6, 2008 4:09 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Swapnil,

I dont thik its an SAP bug. In order to answer your query, we need to understand further more on the issue,

1) IS ZVDC defualted to statistical in the pricing procedure ? or are you explicitly putting to statistical based onthe condition base formula ?

2 ) if you are putting as statistical explicitly then we need to check the logic in the base formula. Probably you are filtering the document type or category in the logic?

Can you send me the logic, in the base routine, ?

sit with an abaper and try to debug the routine.

the routines should definetly be called even if you are copying.

the indicator D just copies the unit price thats it, the condition value is calculated from the routines only,

i feel there is some thing in your routine which needs to be corrected.

Former Member
0 Kudos

Hi Srini,

Thanks for your reply, here are the answers to your questions:

1) IS ZVDC defualted to statistical in the pricing procedure ? or are you explicitly putting to statistical based onthe condition base formula ?

--->we are putting it to statistical based on the formula which checks item category.see code below

2 ) if you are putting as statistical explicitly then we need to check the logic in the base formula. Probably you are filtering the document type or category in the logic?

---> the logic in formula is :

check: komp-pstyv ne 'ZWAR'.

xkomv-kstat = 'X'.

xkwert = 0.

endif.

Let me know if you need any more info..

Swapnil

Former Member
0 Kudos

In this Case, what is the Item category in the Billing Document and in the credit memo.

Former Member
0 Kudos

Its ZWAR in billing and ZL2S in credit memo.

Question is not that item cat ZL2S makes the ZVDC statistic ,question is why it gets statistic even when the copy control says copy conditions.

Former Member
0 Kudos

closing this thread