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
How to check to see a segment is blank
System
Originally posted by Doug Lundin
I want to check repeating segments (AL1, DG1, IN1) to see if they exist. Can I do this within the translator or do I need a pre proc?
Find more posts tagged with
Clovertech
Comments
Max Drown
You can do it in either place.
System
Originally posted by Doug Lundin
How can I do it within a translation? Can't get it to work
Max Drown
Try testing a required field in the segment. For example maybe 'IF DG1.03 eq
@null
then ...'
I could be wrong on that working, I haven't tried it myself recently. Personally, I would normally use a tcl proc for that.
jcobane1
I think it's somewhat dependent on what you want to do based upon the existence/non-existence of the segments. If you want to KILL (or ERROR) the message if the segment doesn't exist, then you would want to do it in a tps proc. If you simply want to null out something or conditionally COPY/value something on the outbound message, then do it within the Xlate.
Jim Cobane
Henry Ford Health