on 07-21-2009 10:40 AM
Hi experts,
My scenerio is proxy to file. Now my requirement is each time when a proxy is executed 2 or 3 file names are generated and that should be pased to target system. files names are diffrent each time.
how we can do that?
thanks in advance,
Regards,
Mohan
Hi MOhan,
So, the file name will be present in one of the elements of the xml that is passed from SAP r/3 right?
Then you can use a concept called Variable substitution.
http://help.sap.com/saphelp_nw04/Helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/content.htm
alternatively, you can try dynamic configuration also:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Pls mark the Question as ANSWERED
Regards,
B.Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, the files names generated from sender system and coming in payload.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by 2 or 3 files ,Are the file names getting passed in the payload.
Are do you need to generate the filenames based on someparamter of payload then as said above use dynamic configuration for the same
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http:" + "/" + "/" + "sap.com/xi/XI/System/File", "FileName");
String RecieverFilename = YourFilename;;
conf.put(key, RecieverFilename);
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Check in forum you will get the code exactly for the Dynamic configuration
jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the File Name checkbox under ASMA properties of your Receiver File CC.....
Design a UDF in the mapping program to configure the dynamic FileName.....
Check the blog by Michal on this
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 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.