cancel
Showing results for 
Search instead for 
Did you mean: 

Map source file name in target payload.

PratibhaK
Participant
0 Kudos

Dear All,

I have an interfacing scenario in which I want to populate a IDoc(target) field with the Source xml File Name.

How can I do this in graphical mapping?

If theres a UDF, plz guide me on the code.

Help!!

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Search in SDN for hte same this has been discussed so many times in this forum.

/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

Check the above blog...

HTH

Rajesh

PratibhaK
Participant
0 Kudos

Thanx Rajesh.

In the blog that has been provided, it says that we have to define a UDF.

While doing the same, what value have we to select in Cache: Value/Context/Queue?

former_member200962
Active Contributor
0 Kudos

use Value.

PratibhaK
Participant
0 Kudos

if I use Value then I have to give some input to the UDF.

Or should I delete the argument line while defining the UDF?

Thanks,

Pratibha.

former_member200962
Active Contributor
0 Kudos

The input value to the UDF has no importance....you can map as shown:

Root Source Node --> UDF --> Required Target Node.

the return statement just make sure that you pass the desired value.

Note: Input to a UDF has no importance in Dynamic Configuration when it is not to be used anywhere in the UDF

Regards,

Abhishek.

Edited by: abhishek salvi on Feb 24, 2010 1:27 PM

PratibhaK
Participant
0 Kudos

It worked.

Thanx all for the immediate responses.

Regards,

Pratibha.

Answers (1)

Answers (1)

Former Member
0 Kudos
If theres a UDF, plz guide me on the code.

DynamicConfiguration is teh concept that you need and Rajesh has already pointed you to teh blog.

This has been discussed and re-discussed almost every other week. Please run a simple search before raising a query.

Regards

Soumen...