on 12-13-2004 4:45 AM
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)
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.