Application Development 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: 

VA21 and VA22 User Exits

Former Member
0 Kudos

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

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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