Skip to Content
0

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

May 01 at 05:57 PM

34

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Arputharaj Thomas May 02 at 10:19 AM
0

Hi,

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.

Regards

Raj

Share
10 |10000 characters needed characters left characters exceeded