Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disabling a node using Condition

Hi,

Is it possible to disable a specific node in the target using a condition and User defined function?

Sample scenario:

My target structure is this:

Header

Header fields

Line_items

Line_item fields

my source is a file with a structure of multiple lines.

My condition is... if the source file is empty... the header will be the only one that will print out not the line item. So i need to disable the LINE_ITEM node when the file is empty.

replied

Hi Vincent,

Just to add to Malini's Solution.

Instead of using if then you have to use IfWithoutElse (A standard function available in Boolean).

and set the Property(right click on IfWithouelse) Keeps = true.

It will pass the SUPPRESS node when the condition is false and the Target node will not be created.

srclineitem-->exists-|if WithoutElse(Keeps=true) | -


>tgt_lineitem

Thanks

Sunil Singh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question