cancel
Showing results for 
Search instead for 
Did you mean: 

Target file generation

Former Member
0 Kudos

Hi all,

I have a requirement to generate the target fields only based on the value manipulation in source.

i.e for example I have a field1 at source with value as "0", then no file has to generated at target, else the file has to be generated.

If I need to use an UDF, please provide me the details.

Regards,

Nithiyanandam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Nithiyanandham

Good to see to

You can go for COnditional Routing ie check in the Receiver Detemination and specify the condition using Xpat expression.The BS involving the receiver file will get the required info only when the incoming value for the particular field satisfies the condition.

Thanks/Priyanka

Former Member
0 Kudos

Hi priyanka,

Thanks, nice to see u too..

give ur mail Id or send test mail to Nithiyanandamau@gmail.com

Former Member
0 Kudos

Hi,

Take field value compare it with 0 using the equals function and pass that output to if without else and map the output of if without else to Root node.

If its not equal to 0 then output will be true and root node will be generated and viceversa.

UDF:

take the input as a

if(a.equals("0"))

{

result.addValue("false");

}

else

{

result.addValue("true");

}

thnx

chirag

Jitendra_Jeswan
Contributor
0 Kudos

I would like to reframe your requirement as No receievr should be determined when the value of perticular field is "0".

So if Receiver wont be determined no file would be generated, hence the reuirement would be achieved.

You can do it in Receiver Determination in ID in the Condition editor.

(However this depends on the way you look at the Reuirement)

Former Member
0 Kudos

Hi,

Please check the UDFs.

http://flickr.com/photos/8764045@N06/

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e...

Example 1

http://www.flickr.com/photo_zoom.gne?id=544183191&size=o

http://www.flickr.com/photo_zoom.gne?id=544183195&size=o

http://www.flickr.com/photo_zoom.gne?id=544183225&size=o

http://www.flickr.com/photo_zoom.gne?id=544183233&size=o

Example 2

http://www.flickr.com/photo_zoom.gne?id=545133789&size=o

http://www.flickr.com/photo_zoom.gne?id=545133791&size=o

http://www.flickr.com/photo_zoom.gne?id=545133801&size=o

http://www.flickr.com/photo_zoom.gne?id=545133807&size=o

http://www.flickr.com/photo_zoom.gne?id=545133811&size=o

http://www.flickr.com/photo_zoom.gne?id=545138911&size=o

http://www.flickr.com/photo_zoom.gne?id=545138913&size=o

http://www.flickr.com/photo_zoom.gne?id=545138915&size=o

http://www.flickr.com/photo_zoom.gne?id=545138917&size=o

http://www.flickr.com/photo_zoom.gne?id=545138947&size=o

http://www.flickr.com/photo_zoom.gne?id=545138951&size=o

http://www.flickr.com/photo_zoom.gne?id=545005958&size=o

Example 3

http://www.flickr.com/photo_zoom.gne?id=549186611&size=o

http://www.flickr.com/photo_zoom.gne?id=549186651&size=o

http://java.sun.com/j2se/1.5.0/docs/api/

/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi

/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d046c490-0201-0010-84b6-9df523cb...

Regards,

Phani

Reward points if Helpful

Former Member
0 Kudos

Hi,

U need not require UDF for this.

What u do is check the field information and compare it with the value for which u dont want to generate the file.

Map it with the target rot node:

Compare it with equals function now output of this will be given to If without else function so if the value is not zero then ur target root node will be generated if it is false then it will not be generated.

U can do it with UDf also.

Thnx

Chirag

Former Member
0 Kudos

Hi Chirag,

Can you please send me the UDF Also.

And the same time can you please explain with out using the UDF also.

Please Look into this Mapping which we have done.

http://rapidshare.com/files/88031549/Mapping.JPG.html

Regards

Nithiyanandam