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
Blank line to output
Mike Campbell
Cloverleaf 5.7, Patch 2 on AIX.
We are receiving inbound Result messages from a LAB. They have 'blank' lines included in the NTE for formatting into our receiving system.
We are using a bulkcopy on the xlate with a couple of field updates.
The sending system is giving us NTE|1||
NTE|2||
NTE|3||Order: BCCRT
NTE|4||
NTE|5||
After Cloverleaf, the message has:
NTE|1
NTE|2
NTE|3||Order: BCRRT
NTE|4
NTE|5
What's the best way to get the extra || at the end of the blank NTE?
Thanks
Mike Campbell.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by David Harrison
After the bulk copy you could iterate through the repeating NTE segment and, if NTE 3 is blank, copy %s1|| to 1(0).0(0).0(0).NTE(%s1).#1(0).
Does that make sense?
Jim Kosloskey
Mike,
Are you sure the receiving system needs to have the field separator for the non-populated field at the tail end of a segment (HL/7 does not require that)?
If they really don't care then you don't have to do anything (what is being produced is correct according to HL/7).
The only issue with what David proposed is if the sending system ever changes the value in MSH-1 that fix will be broken.
Another way that would adjust to the MSH-1 value is to change the outbound variant to make NTE-3 a required field. When doing field-by-field copies un-populated fields get their separators properly placed.
However, since we rarely use BULKCOPY here you will have to test to make sure BULKCOPY does not override the default action of the Xlate when field-by-field COPY is deployed.
Mike Campbell
Now that the issue is resolved, I need to get a added to the end of the segment. Can I just use in the xlate? Or do I need to use nr or something like that?
Thanks.
Mike C.