Skip to Content
avatar image
Former Member

Get pricing condition value using Routine if none of the access has condition records maintained.

I am working on a condition type ZXXX which is a manual condition and has access sequence assigned.
I tried to add condition records for one of the access and system is fetching them into order correctly.
My requirement is to code a routine if there is no condition records exists get a value from one of the other condition ZYYY which is already populated in the Order before my condition.

Basically i am expecting a condition type to work either with access sequence or the routine if the prior one is not returning any value.

Thanks for reading the post.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 02, 2018 at 10:19 AM


    Assign a Subto KOMP-KZWI* (whatever you haven't used yet in your PP) against ZYYY condition type. Now the value would have got stored in that Subto internally during pricing. You have to create a routine "Alternate calculation type" and has to be assigned to ZXXX where it has to have a logic to check for XKOMV-KBETR = 0 (which will hold value if your ZXXX has determined the condition record), if zero (blank), then update XKOMV-KBETR with the value that is available against the Subto you have assigned in the first step.

    Hope one of these condition types are statistical else both would add to the net value.



    Add comment
    10|10000 characters needed characters exceeded