on 10-14-2006 11:35 AM
Hi All,
Is there any runtime variable or service in SAP XI through which I can
map the current DATE and TIME of the system. Currently I am using XSLT mapping and
in that XSL I am calling java code for Date and Time.
So is there any other way through which I can Map the date in the output field
without calling Java code in XSLT.
Thanks
Farooq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
write a user defined function in java to get the current time and call that java function in XSLT.
Can you try this code for getting time
SimpleDateFormat formatter = new SimpleDateFormat("hh:mm:ss a z");
Date now = new Date();
String nowAsString = formatter.format(now);
If you execute this XI server you will get the server time.
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you can do it from java - if you use XSLT on java stack
you can do it from ABAP - if you use XSLT on ABAP stack
there are also java functions for date
in message mapping
so you can put two mappings (in your <b>interface mapping</b> object):
one XSLT
and one message mapping which will only fill the date
to see how many mappings work have a look at my weblog:
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards,
michal
-
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.