on 02-24-2009 2:57 AM
Hello,
I am doing Proxy sender to File receiver scenario.
Filename is generated in SAP R/3 program and I want to create the file with this same name
on target location.
please suggest me how to use this file name in Receiver file adapter?.
Thanks & Regards
Jagesh
Hi Jagesh,
Filename is generated in SAP R/3 program and I want to create the file with this same name
on target location.
--> since you have generated the file name through proxy code and send it across to XI using a field in structure. You need to capture the value for this particular field by configuring receiver adapter in a right way .
Michal's blog will help in that :
/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/content.htm
Hope it helps.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
First of all I have Asynchronous scenario from Proxy sender to File receiver. and i am using PI 7.1 system
Yes it is true I have alreay filename available in R/3 coding. and proxy sender is also sending this filename in one of the field of Request message.
In XI, I just want to use this Filename of request message in creating the file on Target location.
so can you suggest me what is exactly required for this case?
Thanks for your help till now.
Regards
Jagesh
Only some extra features have been added to PI 7.1 environment but the functionality remains as in PI7.0
so after receiving data in to XI use UDF in messagemapping and pass the name of the source element from where this information is coming and return some dummy value
create interface mapping and configure everything in ID(dont remember name in 7.1)
enable filename option in file cc adapter
thats it
Rajesh
Hi,
This was asked earlier i suppose. You would get info on the same if you can do SDN search.
Use dynamic configuration in your MM.
Filename->UDF->Targetfield.
UDF:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey keyHeader1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "HeaderFieldOne");
conf.put(keyHeader1, a);
return "";
Also, do check the adapter specific attributes in the advanced tab of receiver communication channel.
Regards,
Swetha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
Refer this blog:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Also you need to use this udf
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Also refer this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards,
Nithiyanandam
Use namespace http://sap.com/xi/XI/File and parameter as FileName in UDF for accessing file name through Adapter Specific message attributes
Rajesh
Hi,
You must be getting file name in mapping.
You can check this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
Regards
Arpil
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.