cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

createif with false ?

Former Member
0 Likes
671

Hi,

is there a possibility to use createif with false condition ?

if (condition is false) then createif target node ?

View Entire Topic
Former Member
0 Likes

Hi Gordon,

Can you explain your requirement with an example?

Regards,

Jai Shankar

Former Member
0 Likes

requirements:

i want to create a segment (E1edka1) with createif ... if my UDF output is false or true.

I have a udf and if it´s value is true ... the segment shouldnt be created.

If the output of the UDF is false ... than the segment should be created.

undestand ?

Former Member
0 Likes

Gordon the only way around this if you are using a UDF to give you the values is to output the other way around... so for example your normal conditions for an output of true would now out put false and visa versa...

Former Member
0 Likes

Gordon,

do this way.

use UDF "output" + New UDF ( here we convert true to flase and false value to true)assign it to IF without else statment

Ex: UDF output =True

Ture+UDF =Flase -> pass the input to IF with out else statement which is flase so no segement will be created

similarly false+UDF=True -> pass the input to IF with out else statement which is true so segement will be created

Former Member
0 Likes

Hi Gordon,

>>I have a udf and if it´s value is true ... the segment shouldnt be created.

If the output of the UDF is false ... than the segment should be created

This can be handled in advanced UDF. There is a function called suppress. You can use this for your purpose.

resultList.suppress

will not create target node.

Go through the link to understand the usage

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

Regards,

Jai Shankar

Former Member
0 Likes

Jai ... i cant find anything at this link ?

Is it possible to create a node by udf ?

Former Member
0 Likes

Gordon,

You are mapping the UDF to a target node. Correct? If you use the function resultList.suppress the target node will not be created. If you do not use this function the target node will be created. Is this not your reqquirement?

From SAP Help

<i>

ResultList.SUPPRESS

Constant that causes a field and its subnode to be ignored during processing

</i>

Regards,

Jai Shankar

Former Member
0 Likes

Jai...

yes you´re right! I will use this function.

Thank You.

Former Member
0 Likes

Hi Gordon,

Welcome.:-)

Take care while using this function. Since this function will supress the creation of <b>subnodes</b> too.

Regards,

Jai Shankar

Former Member
0 Likes

This is what i wanted