on 09-22-2007 9:43 AM
Hi,
I am doing File to IDOC scenario.
Where I need to map file name, file size and XI message ID to IDOC. Here I need your help to retrieve file size and XI message ID at message mapping level.
Is there any global variable which are storing these details, so I can use them in message mapping?
Thanks,
Sunil Bhavsar.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
MessageID:
U have to write a simle java code for this and access the attribute
java.util.Map map;
String messageId;
map = container.getTransformationParameters();
messageId = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
return messageId;
http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
Also see this
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
Size:
I couldnt find a direct way to achieve this in mapping. Better u create a field in file specifying the size.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sunil,
File size can be captured using Adapter Specific Message Attribute. In yous sender file CC, check the option Use Adapter Spec Message Attribute and check source file size in that.
In your mapping, Declare global variables messageID and fileSize under the global variable button.
Now in your mapping include this code..
messageID = (String) container.getTransformationParameters().get(StreamTransformationConstants.MESSAGE_ID);
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","SourceFileSize");
fileSize = conf.get(key);
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.