infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
IF values for suppression
System
Originally posted by Sandi Meyers
If I want to suppress an OBX segment that has a certain variable on OBX3.1 how do I define that value
i.e eq
@MDIF
or eq "MDIF"
I don't know what characters to use to surround the value.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Robert Milfajt
No quotes, no fancy characters, just put in =MDIF as one of the arguments in the IF statement.
Hope this helps,
System
Originally posted by Sandi Meyers
That works thanks but now I think it ends up suppressing my whole message when I only want to suppress that OBX segment.
Tom Rioux
Sandy,
Instead of the SUPPRESS action, just put a PATHCOPY action after your statement that copies
@NULL
to the the OBX segment.
Also, a little tip on variables in your IF statement. If the value you are checking for has a space in it, (i.e. "MDIF VAL"), then it would be best to move it to a variable such as
@temp
or whatever you want to call it. Then use that varaible in the IF statement.
Hope this helps....
Tom Rioux
System
Originally posted by Sandi Meyers
Would that work? I want that OBX segment to not send at all because it is missing a required field.
Jim Kosloskey
Sandi,
Assuming no BULKCOPY is involved -
Have an IF Action checking for the condition that means you DO want to send (in other words the complement of the logic that means don't send).
Inside that IF do the PATHCOPy, or COPY, or whatever Actions you want to do to build the OBX. Then whnever the IF Action is true (that is the value is NOT equal to MDIF) you build an OBX segment, otherwise you do not.
Of course all of the above is inside all of the appropriate ITERATE Actions.
Now if the receiving system is sensitive to the Set-ID for the OBX being in seque4nce, you will need to keep your own Set-ID counter in a temp variable and use that for the OBX Set-ID. Becasue when you skip OBX segments there will be gaps in the Set-IDs.
System
Originally posted by Sandi Meyers
Thanks. The whole NOT logic can be confusing. I actually had another IF statement inside that iterate that was an IF NOT then Pathcopy. I just added this in with the && between. It seems to be working fine. This xlate is pretty involved due to the receiving system and the fact that I don't have any tcl experience yet. Hopefully will soon.
Thanks for all your help it put me on the right path.
Jim Kosloskey
Sandi,
Orders and Results integrations can be very complex (very few vendors use the ORx messages the same).
So it is not unusual to have complex Xlates.
However, you can easily do most of everything you need to do in the Xlate with little need forTcl.
The key is to organize your Xlates;be faimiliar with the power of the Xlate,; and comment - a lot.
Personally, I do most everything right in the Xlate and reserve Tcl for those things the Xlate does not yet support (some of which it should support IMO).