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: 

losing values in XKOMV structure

Former Member
0 Kudos

Hi all,

I have written a routine FORM FRM_KONDI_WERT_901 for pricing procedure for sales order but the calculation is not reflected.

It is over written by the structure rettkomv having old values in program LV61AA55 by the code below.

IF xkomv-kofrm NE 0 AND wertformel EQ space AND komp-kposn NE 0.

rettkomv = xkomv.

xkwert = xkomv-kwert.

frm_kondi_wert-nr = xkomv-kofrm.

PERFORM (frm_kondi_wert) IN PROGRAM saplv61a IF FOUND.

xkomv = rettkomv.

ENDIF.

How to overcome this problem.Though I have tried by modifying xkwert field as well as the table xkomv but no result.

Regards,

Vijendra

3 REPLIES 3

Former Member
0 Kudos

Hi,

for new pricing in sales order make use of include MV45AFZB form USEREXIT_NEW_PRICING_VBAP . here try to insert new logic according to ur requirement .

Reward points if usefull:)

0 Kudos

Vijendra :

Did you ever resolve this issue ?

I am facing the exact same scenario , still clueless as to why my values are getting wiped out !

Please let me know if you figured this out yet..

thanks

'Shay

madhu_vadlamani
Active Contributor
0 Kudos

Hi Saini,

Where you placed the routine in pricing.

Regards,

Madhu.