on 07-09-2015 1:09 PM
HI All,
Scenario : Flat file to Proxy without mapping in PO
PO 7.4 Single stack
Requirement: Source file name has to be added as one of the target field value in proxy message:
I am just converting flat file as an XML using FCC and passing the xml as proxy message in to ECC without performing Mapping. Business want us to add one more field in target proxy structure and pass source file name in that.
Is there any other way than UDF to achive the requirement?
Regards,
Mani
Hi Manikandan,
For this you have to use message mapping as you want to put the name of file in a field.
This is the easiest way to achieve this.
Regards,
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Manikandan,
Simple solution is to have message mapping (with UDF DynamicConfiguration). You have to convince yourself that, mapping is required .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manikandan,
I think there is no standar module to do this and Mark wanted to say that you should write a module to do that.
I think you can create OS batch file to get file name and to to including it in the file and in this way to follow Mark 1 suggestion and your partner won't need to change anything.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Enable the "Filename" properties in adapter specific messages attribute in sender file adapter.
Use the below code in UDF and pass the "MyFileName" value in target field.
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String MyFileName = dynamicconfiguration.get(key);
Regards,
Manigandan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manikandan,
Well, for one you could (in increasing complexity):
1. include the filename inside the flatfile.
2. If this is not feasible, message mapping would be an option. But if you really do not want mapping, 3. you need to use an adapter module.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.