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: 

Problem in user - Exit for VF01?

Former Member
0 Kudos

Hi all,

I have a requirement where i need to calucate the condition value for my billing document and pass the same value to Net value of the billing header also. Here there is no sales order in the flow.

I am using the exit USEREXIT_PRICING_PREPARE_TKOMK in the program RV60AFZZ . The calculation is working fine and the net value of the billing header is changing. But if click on any button on screen or saving the billing document the value is not saving and set back to 0?

Please help me to resolve the problem?

Thanks,

Aravind.

3 REPLIES 3

Former Member
0 Kudos

This may be because there are more than one entry points in exit USEREXIT_PRICING_PREPARE_TKOMK i.e the code written in this will be executed varoius time . SO, you need to code in such a way that desired code get executed only for your senario.

As per my understanding , when you click your button user exit USEREXIT_PRICING_PREPARE_TKOMK get executed and may be by initial quantity of some field and hence net quantity becomes zero.

Check this by puutting a breakpoint in USEREXIT_PRICING_PREPARE_TKOMK and check when all it get executed and then ristrict its execution as per your need.

Hope you get it.

0 Kudos

Hi harsh,

Thanks for your reply. The value of the netprice in VBRK structutre is there after the exit call . But standard program is resetting it to 0, if any other function is choosen after the exit. The net condition value is still ther. But the net value of the billing header is missing.

Please help me?

Thanks,

Aravind.

Former Member
0 Kudos

Hi Aravind,

Try this enhancement SDVFX008, in this user exit you can retrive netvalue from cvbrk structure. You can write

code as your requirement, i hope it will solve your issue.

Thanks and regards

G.Vendhan