Skip to Content
avatar image
Former Member

VOFM populate value from condition type header to item level

Hello SCN community,

I have one issue about creating logic routine in VOFM and hope you can help me out. Any help would be appreciated.

- Business Requirement: Set up an freight condition type ( marked header level ), this freight value will be calculated with customize logic base on total weight.

- Issue : Condition base value for that condition type was populated at header sale order ( amount field not be populated ) but at sale item the condition type not be divided for each one.

If i manually input value for that condition type, then value can populate to header and item in sale order.

- What i have done : Created an condition type ZABC( marked header and group condition type).

in VOFM, formula create 1 routine at condition base position and input the draf code like below for testing.

IF total weight > 0 .

XKWERT = 500.

ENDIF.

There are some link said that change value in table XKOMV, i tried but not work

- My questions:

1) is the routine work for header condition type.

2) are there any user exit, customer can work for this case.

3) at header condition, condition base value is populated but the amount field not have value. Is that the reason?

Thanks in advance.

Jonh

Add comment
10|10000 characters needed characters exceeded

  • It will be easier for forum members to try helping you if you include a screenshot of your condition type setup from V/06, a screenshot of your pricing procedure from V/08, example of document pricing where one can see the issue that you describe, a code sample of the complete code in the routine and what is the expected result of the calculation.

  • Former Member

    Sorry, i could not upload screenshot in the comment, please refer as answer below.

    Thanks,

    John

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 22, 2017 at 02:55 AM

    Hello Veselina,

    Thanks for your comment. below are some screenshot, I think the configuration is fine because if manually input everything is fine.

    highlight is freight condition type

    highlight is freight condition type

    xkwert is assigned will be affected on condition base. I expected the field amount also effect but not like that.

    highlight is freight condition type, only condition base is assigned value at header condition, item condition no assign for both field ( i not screenshot here ) .

    Thank in advance,

    John

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2017 at 06:35 AM

    Hello,

    anyone here used to have request like that ?

    Your comments and suggestions are welcome.

    Thanks,

    John

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Phanikumar Valiveti

      Hi Valiveti,

      Thanks for your comment. The issue is solve now, the functional guy did the mistake ( i did not know exactly the config )

      now the value is populated to the item level.

      The main requirement here just recalculate logic for field condition base value.

      I use field XKWERT becuase this field using to update data to the condition base value.

      Thanks,

      John