cancel
Showing results for 
Search instead for 
Did you mean: 

VOFM Condition base value not updating(Urgent)

Former Member
0 Kudos

Hi All,

I have created a Condition Base Value 901 for Sales Order in Transaction VOFM.

Following is the code when I enter the Sorce text.

FORM FRM_KOND_BASIS_901.

*{ INSERT DEVK901384 1

DATA: XXKOMV TYPE KOMV,

XAKOMV TYPE KOMV,

VKAWRT LIKE KOMV-KAWRT.

IF KOMP-VKAUS = 'YAB'.

XXKOMV = XKOMV.

CLEAR VKAWRT.

LOOP AT XKOMV INTO XAKOMV WHERE KSCHL = 'YIPR'.

IF XAKOMV-KAWRT > 0.

VKAWRT = XAKOMV-KWERT.

ENDIF.

ENDLOOP.

XKAWRT = VKAWRT.

CLEAR XKOMV.

XKOMV = XXKOMV.

ENDIF.

*} INSERT

ENDFORM.

But this code is not updating the Condition screen for items condition value.

Regards

Vijai

Accepted Solutions (1)

Accepted Solutions (1)

rmazzali
Active Contributor
0 Kudos

you have to update the xkwert field that contains the condition basis.

ROberto

Former Member
0 Kudos

Hi Robert,

Do I need to Remove any other Line from my Code.

Regrds

Vijai

rmazzali
Active Contributor
0 Kudos

no, the code contains the logic to determine the base value, then the value has to be passed to xkwert.

take some other base formula as template.

pls. rewad if helpful

Roberto

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you activated the routine after transport ?

Regards,

Amrish Purohit