on 03-24-2009 10:36 AM
Hello,
The Scenario is Idoc-file, we are generating XML file at target.
The requirement is to have IDOC number in file name eg. "File_IDOCNUMBER_datetimestamp.xml".
but in target file structure we have no separate field to map the IDOC number.
Kinldy help me, or give some possible solution
Regards,
Anu Singhal
Simple. Use dynamic configuration along with adapter specific attributes.
Have these as reference;
/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/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks fro your quick reply,
But my scenario is from IDoc to file, I have tried with the same but it gives the error in Communication channel monitoring as there is no parameter like * u201Chttp://sap.com/xi/XI/System/Fileu201D,
u201CFileNameu201D* when sender is IDOC.
Could you please suggets some alternative solution.
Hi Anu,
Think your question is how to use payload date to generate part of the outpu file name ?
If so I would suggest to use the Variable Substitution in the CC.....
For usage see :
http://help.sap.com/saphelp_nw70/helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
Hope this helps !
Regards, Jelmer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mapping worked successfully but it is giving error now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that the file name will be populated during runtime only.
Hope you are not testing the mapping independently.
What is the error you get now? Can you describe more?
Also ref: /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
>
> The requirement is to have IDOC number in file name eg. "File_IDOCNUMBER_datetimestamp.xml".
create a simple UDF. Suppose to the UDF you are passing two input values
a - IDOCNUMBER from the IDoc
b - datetimestamp
in your case your code will be something like;
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
u201Chttp://sap.com/xi/XI/System/Fileu201D,
u201CFileNameu201D);
String MyFileName = "File_" + a + "_" + b + ".xml";
conf.put(key, MyFileName);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.