cancel
Showing results for 
Search instead for 
Did you mean: 

get File name of the inbound file during mapping

Former Member
0 Kudos

Scenario: to read the file name of the inbound file (which has date required for the mapping) during runtime.

The requirement is to read the date of the inbound file (passed to the XI pipline by the file adapter) and populate the same in the outbound mapping structure.

Any idea about how to do this?

(I went through few options of using java.util.map. not successful yet)

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anand,

I posted the same question a time ago, without any help....

Can I find out the full filename of input file in message mapping?

Posted: Nov 23, 2004 1:00 PM

I have in XI 2.0 the following scenario :

In the inbound fileadapter I read my input file. The filename of the input file is part fixed, part variable (Like INDATA01.txt, INDATA03.txt, etc).

So in my Adapterconfiguration, I specify the filename with a wildcard (INDATA*.txt).

What I now want to do, is in my Message Mapping use the full filename , so I can do something different for every filenumber. Is there a way where I can get the full filename available in my message mapping (I did not find the filename in the XML in the message trace).

Former Member
0 Kudos

In XI 2.0 I wrote a dispatcher for this (among other things), to get the file name you use the following line in your service method [public void service(TransformRequest request, TransformResponse response)]:

this.transformConfig.getParameters("FileName");

for XI 3.0 you have to convert the dispatcher into a module ...I haven't done this yet but I think it is documented in the nw'04 documentation on help.sap.com

regards,

Achmed