on 08-06-2008 10:48 AM
Hi All,
I have this scenario: IDoc --> XI --> File (FTP)
I need to create a file with a variable name: AAAA_nnnn.xml ; where AAAA_ is the constant part,
while nnnn is the variable part(it is a counter). The counter value could be included in the IDoc.
I cannot use the variable substitution because I cannot modify the XML of the target message.
Is there a method to pass the full filename to the file Adapter?
Thanks in advance
REgards
Emiliano
Hi Emiliano,
If you want to pass the entire filename dynamically from messagemapping - you might choose to pass the value in adapter specific message attributes in the XI message header and in the file channel set the indicator Use Adapter Specific Message Attributes and then FileName.
In the message mapping you need to write a UDF to write the value in the FileName adapter specific message attribute of the XI message header.
Thanks,
Suddha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
check this links
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Regards
srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a UDF in mapping taking counter from IDoc as input parameter
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String totalFilename = "AAAA_" + counter;
conf.put(key,totalFilename);
return totalFilename;
Map output of this UDF to Top node at target.
you will not be able to see the result in test tab of mapping but it works end to end
Select Adapter Specific Message Attributes in receiver file adapter..here select filename checkbox
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
DYNAMIC FILE NAME
http://help.sap.com/saphelp_nw70/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
Regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.