09-22-2008 4:03 PM
Hi
I have built a user exit for VA21 and VA22 in RV61AFZB as an include
I need to modify the way conditions tab is displayed...
Its a very simple requirement where I need to sumup the records of XKOMV which have the same KSCHL (say VA000) into one record...
KSCHL KWERT KMPRS
VA00 5
VA00 10
Now I need to show it as
KSCHL KWERT KMPRS
VA00 5
VA00 10
VA00 15 X
I have done the above successfully for the table XKOMV but the problem is the above summation runs in a kind of loop and the summation gets appended everytime because of some other standard SAP code
Has anyone faced the problem above... I have tried appending the values only for the last loop but it has other complications
09-22-2008 4:07 PM
you can do that in MV45AFZZ under save_document_prepare, so there you can do all the calculations at one loop.
you can try that. Is there any specific requirement that you need to do this step in include RV61AFZB
09-22-2008 5:32 PM
Well the conditions tab for Header data needs to display XKOMV values in the way I have mentioned in my first post...
Your reasoning may be fine when it comes to saving the document...
but when it comes to displaying the values as I want them to it in Conditions tab even before I save it may not work due to this multiple loops...
Anyways will update this thread after trying out what you have mentioned above
09-22-2008 5:48 PM
Hi,
Here is my suggestion..
In the pricing procedure add a line after the condition type VA00...
Then assign a new formula for that line...
In the new condition value formula (VOFM)...sum up the value based on the entries in XKOMV and assign the value XKWERT...
It will display the value as per your requirement...
Hope this what you are looking for...
Thanks,
Naren