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

issue with VOFM

Former Member
0 Likes
540

Hi Friends,

I have a problem while creating/ using a new custom routine via transaction - VOFM.

Have created a custom routine(number - 999 ) under FORMULAS -> CONDITION VALUES. Have activated this routine and also configured the relevant pricing procedure in transaction - V/08, to call this routine. The call of this routine happens fine(in my case it is while creating/changing quotation).....

But the problem is, Inside my custom routine(999) I alter the value of XKOMV-KBETR and XKOMV-KWERT for a specific condition type(XKOMV-KSCHL) and at the end of the routine i modify the internal table XKOMV accordingly. But once the control comes out of the routine(back to the standard calling program) the values in internal table XKOMV that was modified in the routine is refreshed back to the previous values....... Now is there any configuration/settings that has to be maintained to over come this issue......????

Please put in your suggestions in this regards.

Thanks in Advance,

Ranadheer

Hi Friends,

I have a problem while creating/ using a new custom routine via transaction - VOFM.

Have created a custom routine(number - 999 ) under FORMULAS -> CONDITION VALUES. Have activated this routine and also configured the relevant pricing procedure in transaction - V/08, to call this routine. The call of this routine happens fine(in my case it is while creating/changing quotation).....

But the problem is, Inside my custom routine(999) I alter the value of XKOMV-KBETR and XKOMV-KWERT for a specific condition type(XKOMV-KSCHL) and at the end of the routine i modify the internal table XKOMV accordingly. But once the control comes out of the routine(back to the standard calling program) the values in internal table XKOMV that was modified in the routine is refreshed back to the previous values....... Now is there any configuration/settings that has to be maintained to over come this issue......????

Please put in your suggestions in this regards.

Thanks in Advance,

Ranadheer

1 REPLY 1
Read only

Former Member
0 Likes
463

Hi Bandi ,

No need to modify XKOMV internal tables at all ,

see the sample code over here

FORM FRM_KONDI_WERT_992.

CHECK KOMP-KPOSN NE '000000'.

    • Here please use a free KOMP field. KOMP-KZWI is only an example*

KOMP-KZWI5 = ZWAVWR.

ENDFORM.

regards

Prabhu