Skip to Content
0
Mar 14, 2018 at 11:52 AM

Error on return SAp IS rule definition

76 Views

Hi Guys,

I'm trying to return the $MTVFP_ATP_Group not equal to Z4 where $WERKS_Plant equals 3601 and $LABST_Use_Stock > ('0') but it is generating more results, $WERKS_Plant IN ('3601') is not working. Can somebody help me on this?

BEGIN RETURN ( $WERKS_Plant IN ('3601') AND

NOT match_pattern($MTVFP_ATP_Group, 'ZE')

AND NOT match_pattern($MTVFP_ATP_Group, 'Z4')

AND $LABST_Use_Stock > ('0')

AND $DISPO_MRP_Controller IN ('OP1')

AND $MSTAV_chain_material_status IN ('91', '')

OR match_pattern($WERKS_Plant, '3601') AND NOT match_pattern($MTVFP_ATP_Group, 'ZE') AND $MTVFP_ATP_Group IN ('Z4') AND $LABST_Use_Stock > ('0') AND match_pattern($DISPO_MRP_Controller, 'OP1') AND $MSTAV_chain_material_status IN ('91', '')); END

Thank you

Mihai