on 12-10-2010 4:41 PM
I am trying a idoc to file scenario and would like to have the file name come out of SAP but not have the file name in the end document. Is this possible?
I have this record set
<RecordSet>
<Filename>nameForFile</Filename>
- <Recordnode>
<Line>LineData1</Line>
</Recordnode>
- <Recordnode>
<Line>LineData2</Line>
</Recordnode>
- <Recordnode>
<Line>LineData3</Line>
</Recordnode>
What do I need to put as the Content Conversion Parameters?
hi Ron,
If i understood correctly, you want "nameForFile" as file name. You can use Variable substitution. But for that, this value should be in your target map.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use Dyanamic Configuration in your mapping then you don't have to include the filename in any target structure.
Create UDF with dynamic configuration and map the file name from source to UDF and output of this udf should be mapped to any parent node of target structure.
Below is the UDF code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key, var1); //Here "var1" is the input parameter
return "";
You need to enable the Adapter Specific Message Attributes (ASMA) settings ONLY in your receiver CC, under file name parameter you can give %myfilename% (you can give any name here)
Try this and hope this will solve your problem..
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.