Hi,
I have a segment named 'RFF' segment in my input file which can have occurances of (1:3).This RFF segment has an element named 'Qual'. Now I want to implement a business logic that at least one occurence of this segment should be equal to "CR". In other words at least one Qaul:RFF ="CR".
I have written a rule in the type tree of this segment. The rule is as follwing:
WHEN( PRESENT($),
IF(Qual:RFF:$[1]="CR" |
Qual:RFF:$[2]="CR" |
Qual:RFF:$[3]="CR" ,TRUE,FALSE))
This rule is not working and even if the none of the required value is CR, it is processed successfuly and no invalid inputs are given.
Please help in resolving the issue. This is very critical issue and I want some urgent suggestions.
Thanks
I have a segment named 'RFF' segment in my input file which can have occurances of (1:3).This RFF segment has an element named 'Qual'. Now I want to implement a business logic that at least one occurence of this segment should be equal to "CR". In other words at least one Qaul:RFF ="CR".
I have written a rule in the type tree of this segment. The rule is as follwing:
WHEN( PRESENT($),
IF(Qual:RFF:$[1]="CR" |
Qual:RFF:$[2]="CR" |
Qual:RFF:$[3]="CR" ,TRUE,FALSE))
This rule is not working and even if the none of the required value is CR, it is processed successfuly and no invalid inputs are given.
Please help in resolving the issue. This is very critical issue and I want some urgent suggestions.
Thanks