Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    how to recognize an empty segment and not output data
Go
New
Search
Notify
Tools
Reply
  
how to recognize an empty segment and not output data
 Login/Join
 
Member
posted
First of all, I am new to iway and the transform mapping process.

my question is about how to recognize an input data segment and or fields as being empty (thinking about the 'null' and then not output any data.

in other words, if an sap idoc segment had data present then output that data else if the sap idoc segment does not have any data then output nothing.

when the segments are empty my transform is still outputting empty data that just takes up room and makes the entire process inefficient when you are looking at processing thousands of segments


iWay 5.5 smsp1

windows 2003
 
Posts: 6 | Registered: October 19, 2007Reply With QuoteReport This Post
<Pete Webster>
posted
You can do this globally for the entire output document or locally by element or parent.

Global: Output items properties > Data tab > Optimisation. You can set to remove empty tags, this will reduce the size of your output document

Local: Right click on the element or parent > properties > Filter tab. You can set some conditional logic here so if it returns true you define the action as ‘show’ or ‘hide’.
 
Reply With QuoteReport This Post
Member
posted Hide Post
We've handled the problem in the actual process and not in a transform. If you prepars all inputs to XML, as recommented, in you process then you can and a desition switch using XPATH that will route the input document to a set flow or to not continue processing the document if a speicifc filed is NULL.

If you are processing standard documents you can block them from the listener by adding Document rules under the document section. This is all in the Programmers manual.
 
Posts: 16 | Location: Cape Town, South Africa | Registered: July 03, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    how to recognize an empty segment and not output data

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.