cancel
Showing results for 
Search instead for 
Did you mean: 

XI Mapping: createif issue

Former Member
0 Kudos

Hi,

There is a node called "item" in my source message which is existing twice or more times.

I need this node to create an new IDoc segment for each existing item.

In that case: 2 new segments have to created !

This is solved with the function createif and it´s working fine.

- - -[target]

I have to change this with respect to a second node called "head" in the same source message

is filled then - (for each existing )

else

- - -[target] (for each existing item)

exampel:

If the is existing more than 1.

Any ideas ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

i have solved this with my own defined UDF.

thx,

Gordon

Former Member
0 Kudos

Hi,

You can write UDF for the same...

you can also do this by graphical mapping but it will create long structure so to avoid that and for better performance go for UDF,

Regards,

Anu

Former Member
0 Kudos

do you have an udf example for that ?

Former Member
0 Kudos

Hi,

if(a!="")

result.addValue("");

else

{ if(b!="")

result.addValue("");

}

where a and b are yr input parameter (head and item resp)

hope it helps u

<b>

Rewards point if helpful</b>

Regards,

Anu

Former Member
0 Kudos

Hi Gordon

<b>CreateIF</b>

<b>check this for details on how to use</b>

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

http://help.sap.com/saphelp_nw04/helpdata/en/d9/cea942ad920c31e10000000a1550b0/frameset.htm

<b>check here how to use createIF function...</b>

/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool

<b>Read this</b> http://help.sap.com/saphelp_nw04/helpdata/en/d9/3033f96c79674f90e3ab8d101a595b/content.htm

<b>And check these threads</b>

Thanks!