Application Development and Automation 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: 
Read only

VOFM Routine, Sales Order Problem

Adi_Bathineni
Participant
0 Likes
1,041

Hi Guru's,

We have developed VOFM routine to Calculate the Gross Margin of the Sales Order.

In the sales order, there are 2 fields, one is Amount Field (KBETR) and another one is condition Value (KWERT).

We need to update both the fields, but if you try to update the both fields we are not getting proper values.

Now business decided to get rid of the KBETR Field value, i want to display the value as 0.00.

Can you guys please guide me how can i change the value after executing the VOFM Routine???

It is calling the Standard Program (SAPLV61A) in the include LV61AA55 it is modifying the values.

How can i do it??? is there any user exit or anything which can change the value in the sales order after the execution of VOFM routine??

Thanks,

Adi.

Hi Guru's,

We have developed VOFM routine to Calculate the Gross Margin of the Sales Order.

In the sales order, there are 2 fields, one is Amount Field (KBETR) and another one is condition Value (KWERT).

We need to update both the fields, but if you try to update the both fields we are not getting proper values.

Now business decided to get rid of the KBETR Field value, i want to display the value as 0.00.

Can you guys please guide me how can i change the value after executing the VOFM Routine???

It is calling the Standard Program (SAPLV61A) in the include LV61AA55 it is modifying the values.

How can i do it??? is there any user exit or anything which can change the value in the sales order after the execution of VOFM routine??

Thanks,

Adi.

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
816

You may try to use the User Exit USEREXIT_XKOMV_BEWERTEN_END in program RV61AFZB. Here you have an access of entire XKOMV internal table.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
816

Hi try this,

loop at xkomv.

clear: xkomv-kbetr. "making the kbetr value as 0.00

modify xkomv.

endloop.

This you need to write in the routine which u've created in VOFM.......i guess u need to create a new routine number say 920 and then assing this in RV61AXXX include as RV61A920.

here in this form routine write the above code.

Get back if you still have problems

Read only

former_member156446
Active Contributor
0 Likes
816

if you are looking to change the values for particular condition type then a routine need to be created and just clear the value where you don't need.

XKOMV-KBETR = space.