on 07-17-2015 1:14 PM
Hi Experts,
I am configuring an EDI to IDOC scenario ,where the FileName is to be mapped to a field in the receiver IDOC structure. As we know for a B2B Add on we will be using two ICO(Integrated Configuration Objects) ,First for splitting the EDI file and the other for the actual mapping from EDI to IDOC. The requirement is to get the EDI filename in the receiver payload.
In the first ICO we are using a File sender adapter, and we have checked the ASMA property,:FileName . But at runtime we are unable to get the filename value due to the EDI separator adapter. Can anyone tell us what would be the possible solution to map the filename to IDOC receiver through EDI Separator adapter.
Regards,
Ragulan
Hi,
We have got the file name in the mapping. We are using B2B SP4.
The below UDF works fine.
String SourceFileName = new String("");
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
SourceFileName = conf.get(key);
conf.put(key,SourceFileName);
return SourceFileName;
Thanks Hareesh and Praveen for your guidance...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is your B2B add-on SP level?
As you find in below blog, dynamic header's will be passed to second ICo from SP04.
Routing of Dynamic headers
All the present dynamic headers (except set by SAP EDI and TPM modules) will be routed to next ICOs after message processing by EDI Seperator Receiver channel. Example: If you have filename as dynamic header set by AS2 or SFTP adapter in first ICO's XI message, these dynamic headers will be passed to next ICO (XI Message) along with splitted/routed messages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hareesh,
We are not able to get the filename in the Second ICO. We are using FTP channel and have checked the Filename attibute in the ASMA
Below is the UDF, which i have used
String SourceFileName = “”;
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File",
"FileName");
SourceFileName = conf.get(key);
conf.put(key,SourceFileName);
return SourceFileName;
Could you please help us here....
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.