on 11-14-2007 6:19 PM
We donot have message mapping in our Scenario ( Ftp file 2 Ftp file scenario ) where we like to change filename, directory before writing file on the target ftp server. Basically Dynamic configuration has to be manipulated based on file name pattern. How can we change Dynamic configuration variables without message mapping step.
Thanks
not possible without message mapping,
it can be possible via adapter modules,but thats much more work than mapping
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1.Adapter Module
2,. Variable Substitution if feasible
3 Or a Java Mapping that reads the input and pushes the output as such and just sets the filename is also an option.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> 1.Adapter Module
> 2,. Variable Substitution if feasible
> 3 Or a Java Mapping that reads the input and pushes
> the output as such and just sets the filename is also
> an option.
Hi Bavesh,
1. Adapter Module takes time and in short period of time we shouldn't be able to do
2.Variable substitution needs Mapping
3.This approach also will be used Mapping Runtime right?..
Just by using configuration, Receiver det, Interface det we can route based on Filename .
I was actually trying to find out a simpler way to change dynamic configuration.
Thank you all for your replies and appreciated.
>>2.Variable substitution needs Mapping
not really,variable substitution is based upon payload of message not on message mapping.
the closest i can get to your requirement without message mapping is that you can combine variable substitution and dynamic configurations and can dynamically name the receiver file.but you can't manupilate this name,the name will be transferred as it is
Thanx
Aamir
All the solutions here are basically of no use as they are not applicable in the reciever adaptor..............you can change sender...details with these..
For changing the value of the reciever destination....only possible right way is to write an extension the the adaptor module and then pass in the parameters to it...............where you can specify a value..as a name value pair and trust me it is really easy....
Regards
Ravi Raman
>>>>>All the solutions here are basically of no use as they are not applicable in the reciever adaptor..............you can change sender...details with these..
Ravi, thanks for the information and thoughts on these solution. I never knew that we can't use Dynamic configuration or Variable Substitution in Receiver adapter.:-)
Aamir/Bhavesh do you guys knew that it's not possible in receiver adapter...
raj.
Message was edited by:
Raj
> >>2.Variable substitution needs Mapping
> not really,variable substitution is based upon
> payload of message not on message mapping.
> the closest i can get to your requirement without
> message mapping is that you can combine variable
> substitution and dynamic configurations and can
> dynamically name the receiver file.but you can't
> manupilate this name,the name will be transferred as
> it is
Hi,
We donot want to get into Mapping at all. InFile in CSV format and Out file is same csv format.. No content conversion. So No Mapping. As Bhavesh suggested it can be done with java mapping with no parsing of source.
For such a simple task, you have to do more work.. SAP shoudl really come up with some rules based Scenario. We can add timestamp to file in the adapter but if client just want date then we need to do more as a developer. These adapters should have more options and more user friedly to customize with less time. You are talking about a packaged product and you shouldn't do too much customizing which is defficult to maintain.
Bhavesh, Aamir,
I am not as learned as you all are...However i have one doubt...
Can you tell me how..you would use variable substitution or any of the other features besides the dynamic Config bean...to make a decision..with this logic.
If(filename.equals(a)){
String dir = /usr/sap;
}
else if(filename.equals(b)){
String dir = /usr/pas;
}
Can someone please enlighten me as this is a problem i have had before and had to do a workaround on...
Regards
Ravi Raman
Raj,
You can use all of them in the reciever adaptor....However not in the scenario where you have to decide the destination directory based on a filename...
If you disagree...Could you give me a solution and i shall gladly agree and would love to implement your solution..
Also please dont read things literally...i said these solutions are no use here.......that doesent mean they are not possible....Hope you catch my drift.
Regards
Ravi Raman
>>However not in the scenario where you have to decide the destination directory based on a filename...
ofcourse you can define directory dynamically based upon filename,herez how to do
get the filename using dynamic configurations,use conf.get(key1).
after that have a if-else loop where in you create the directory based upon the filename and then put it in directory(dynamic configuration) using conf.put(key2,<dirValue>).then map it to the root node of the receiver field,enable file ASMA on sender side and directory ASMA on receiver side and give any dummy name for directory
you will basically use two instances of dynamic conf. one for getting the filename(key1) and the second one putting the directory name(key2)
Thanx
Aamir
Raj,
I am sorry too, i know since i had this problem recently and what i did was create a couple of scenario`s and in each one exclude one file...as more than one file being excluded i am sure you know as well..doesnt work quite exactly.
Without mapping that is the only available solution, i would love to have a better way of doing it..though...
Regards
Ravi Raman
thats what we all have been telling Mr.S.T. that its not possible to do this without mapping(until and unless he develops adapter modules),its possible to name the receiver file dynamically same as the sender file without any mapping,but if he needs to do some manipulations then mapping is the easiest option
Thanx
Aamir
Hi,
Why would some one implement XI for a file 2 file scenario? It is costlier in terms of development and maintenance. Instead, writing a separate program in any language like Java or C++ would be the perfect solution, where you have contro over manipulating the FTP file names and directories at runtime.
VJ.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.