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
Replace ~ with a word in the NTE segment
Theresa Schenck
Is it possible to replace the special character (~) with a word in the NTE segment using a tcl proc? Users are using the ~ instead of typing out the word approximately. To make matters worse they may also use the & sign for the word and. I am not sure if this is possible using a tcl pre proc script? Has anyone done this before?
Thanks for any advice.
Theresa
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
This can be done in a pre-proc. For the subcomponent separator it can also be done in an xltp proc.
The challenge is you will need to know every field where this can happen and apply your logic at each field (whether pre or inside the Xlate).
This is because the characters are valid separators erroneously placed. So if you were to do a 'globa'l' replacement pre you would change valid separators as well.
The tilde replacement can be done in an Xlate with no Tcl I would think by using the ITERATE and CONCAT Actions (this assumes thee field in question is not repeating by definition).
If the offending field is a repeating field then the issue gets even tougher (which tilde should really be replaced?). The NTE-3 where I suspect your current issue exists is a repeating field by definition - although perhaps not by local usage.
The real solution lies with the source system. HL/7 has provision for escaping separators imbedded in text. The source system should:
- Use the escape mechanism of the standard
- Stop the user from entering separaators at data entry.
- Provide replacement (and for & approx. for ~) at data entry.
The above can have issues as well if there are potential field length constraints.