SAP XI : Date and Time Service

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

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>

Similar Messages

  • SAP BI Date and Time Difference calculations in DSO Transformation

    Hello Guys,
    Could you please tell me how to calculate the date and Time difference between 2 fields.
    I have 2 date fields :
    Arrival Date : 6/16/2007
    Departure date : 6/19/2007
    Also i have 2 time fields for the above
    Arrival Time : 13:00:00
    Departure Time : 11:50:00
    I want to display all the four fields and 2 fields for the difference in Date and Time.
    Is it better to calcuate the differences in DSO Transformation or can you do it in the report itself.Could you please let me know the solution.
    Thanks,
    BI Consultant

    Hello Consulant BI,
    Computing the difference of two dates is easy (assuming you really just want the number of days). You can simply subtract the two dates using ABAP:
    data: w_arrival_date type sy-datum,
            w_dep_date type sy-datum,
            w_diff type i.
    w_arrival_date = <your arrival date field here>.
    w_arrival_date = <your departure field here>.
    w_diff  = w_arrival_date - w_dep_date.
    Getting the time difference isn't really much logical. I think what you want instead is to compute the totals days (and extra hours) right? If this is the case, then you can convert the date+time for both the arrival and departure  into a timestamp variable first and then t the get difference.
    Hope this helps.

  • ESS services date and time format?

    Hi,
    How can we change the date and time format displayed on some of the ESS services like addresses, LR screen?  Currently I see US format date MM/DD/YYYY and time is in european format 12,50 instead of dot(.).
    I tried changing the browser setting to UK but it didn't work.  Any other suggestion please?
    Thanks
    Praveen

    I tried to create a simple WD application with just date control UI element, I can see the date format is displayed based on my browser setting.  If I change it to US in my browser locale, it date format changes to US date format, if I change it to UK locale the date format is UK based. 
    Only my ESS/MSS applications are always displayed as US format.  I checked at the iView level and I can only see ForcedRequestLanguage but I cannot see ForcedRequestCountry property so I'm unable to set any country specific details here.  When I look at the JCo connection language tab, I see the
    Current locale: en
    Default VM locale:  en_US
    I think this is where change is required.  However I changed following JCo languages from en to en_UK but still no luck
    SAP_R3_HumanResources
    SAP_R3_HumanResources_MetaData
    Backend is checked as posted above.
    I checked below which is the second precendence in determining locale
    Portal mandatory locale -- open file prtDefault.properties on server under
    /usr/sap/<SID>/JC#/j2ee/cluster/server#/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/system/properties/
    I cannot find below mandatory parameters in the prtDefault.properties file
    request.mandatorylanguage
    request.mandatorycountry
    However, I found this
    request.defaultlanguage=en
    request.defaultcountry=us
    Is this something I can change?  Or should I replace or should I add mandatoryLanguage/country?
    Can this file be edited through NWA or should this file be edited manually at the file system level?
    Please advice.
    Thanks
    Praveen
    Edited by: Praveen11 on Aug 20, 2009 8:38 AM
    Edited by: Praveen11 on Aug 20, 2009 8:41 AM

  • How to view current  date and time on SAP screen

    Hi Everybody,
    How to view current  date and time on SAP screen .I have set time zone in T-code STZAC.now iam getting correct date n time in my tranctions but i want to check without any tractions
    Plz repay,Regards,
    Sadik.

    Hi,
    You can check the time by running a report .
    It will show the database and central instance time : Report name :rsdbtime
    Thanks and Regards
    Vijay kumar G
    Edited by: vijay kumar gopal on Mar 4, 2008 1:09 PM

  • How Production Order finish date and time is being comptued by SAP?

    Hello Expert,
    How Production Order finish date and time is being comptued by SAP? for example, we create a Production Order via CO01, the basic start date is 29.09.2008 and time is 04:00 it gives us basic finish date is 29.09.2008 and time is 13:28.
    how does SAP compute the time 13:28 as it finished time
    Please explain me briefly.
    Thanks
    Ryan

    Hello Guys,
    When we create Production Order in R/3 the time is calculated by routing but it is extended at SetUp machine time. It is not correct?. SetUp imachines time used only for first Production Order for the same product and it is plan manually, for others Production Order we need calculate time for production without SetUp machine time being pick up to compute finish time. how could we achieve this? only those Machine time will be check.
    thanks

  • Date and Time calculation in the Service Module

    Dear all,
    I have quite of a challenge here and i need serious guidance from your side.
    My client is in services industry and requires to calculate the date and time when the service call as to be closed. Not only it depends on the contract type the service is linked to but as well on the priority.
    The priority in Business One is unique, therefore we created a UDT (User Defined Table) to store the different 'response time' per contract/per priority. Example: a Platinum contract is always 24/7. But a gold contract priority 1 has to be closed in 240 minutes (4 workable hours) while a gold contract priority 2 has to be closed in 480 minutes (8 workable hours).
    I created 7 user defined fields on the Service Contract header that calculates the workable minutes per day. So if my coverage for Monday is from 8 AM to 4 PM, my UDF called DiffMon will show 480. For Tuesday, they start a bit later, and the coverage is 8:30 untill 16:00, therefore my UDF called DiffTue = 450.If the check box before the day in the Service Contract window is not ticked, then the UDF shows zero.
    I succeeded to calculate the expected closing time by using CASE WHEN statements as following, (all calculated in minutes):
         First, I need to check which day the Service call is created: A Monday or Thursday or... since my time coverage can change every day! I use SET DATEFIRST = 1 and compare today's date accordingly with my UDF DiffMon, DiffTue, etc.
         Then, When end of coverage time today Monday (4PM) minus the create time on the Service Call (1PM) is less then the time stored in my user defined table for that contract and that priority (i.e.480), then just add that to the create time and the create date (DateAdd(mi,...,...) ).
        When end of coverage time Monday (4PM) - Create time (1PM) + DiffTue(450) is bigger than 480, then I know I have enough time to solve my service call tomorrow Tuesday and I take the start time of Tuesday (8:30) + remaining time from yesterday (480-180 -> 180 = 3hours from 1PM to 4PM) and add that to the Create date + 1 so the end result will show Tuesday date and a time of 13:30
       Etc. untill I cover all possibilities based on which day is the service call created.
    NOW, I need to include the holiday table !!!!!!!!!!  And I can't foresee how the hell I am going to do that.
    The maximum coverage can go up to 60 hours, that means more than a working week! What happens if I have more than one bank holiday in that week period? What happens when my holiday table tells me that  date is a bank holiday but it is actually a Sunday and my contract is only running from Monday to Friday?
    Am I going straight to a big mess up?
    I will highly appreciate your comments,
    Regards,
    Frederic

    Hi,
    it is possible in query designer,
    u do the two things for getting the days between to dates
    1) in CMOD write the code for sy-datum create a customer exit variable in query as on caldate like eg zcedate
    when 'zcedate'.
    clear l_s_range.
    l_s_range-sign = 'i'.
    l_s_range-opt = 'eq'.
    l_s_range-low = sy-datum.
    append l_s_range to e_t_range.
    u write this code exit_saplrrso_001.
    it givs the sydatum
    2) then u create one more variable on zdate limit with replacement path
    then u go forto create the formula variable then it display ascreen there u select both customer exit variable and replacement path variable
    zcedate-replacementpathvariable
    it gives days i worked on this and succedded.
    like the same way fortime also u can do but here at the time of creating the customer exit varible u go for option as range here
    l_s_range-low = '20012009'
    l_s_range-high = '29012009'
    l_s_range-sign ='i'.
    l_s_range-opt = 'bt'.
    please try with the above one.
    Thanks & rEgards,
    k.sathish

  • Automatic changing of activity start date and time of planned orders in SAP

    Hello experts,
    I have a requirement that in the transaction /SAPAPO/SEQ1 for the list of planned orders what ever we get in the sap we have to swap the activity start date and time for two planned orders which we select automatically. For this I have found the BADI "/SAPAPO/SEQ_VISUAL01".
    Now i am able to identify the two selected planned orders inside the BADI method SEQGRID_TOOLBAR_OKCODE_HANDLE.
    Now my requirement is i have to swap the start date and time for these two planned orders automatically i.e. through BAPI or any FM.
    Any idea of any BAPI or FM to change the details of the planned order.
    Thanks,
    Sanath.

    Hi Sanath,
    Please check this BAPI BAPI_MOSRVAPS_SAVEMULTI3.  This Bapi has the provision of chaning Planned Order & Production Order Data. Also, you can explore more info on available bapis in the T-code 'BAPI'.
    Thank you,
    Santosh KB.

  • Changing Date and Time of the Service Tickets.

    Dear All,
                      I am implementing a program where i need to change the date and time of incoming service tickets which comes after 6 PM to next day 9 AM. Also if the next day is holiday then it should preset to day after tomorrow's 9 AM.
                      Is there any std. FM to present for this? How should i take care of the Holidays coming. Kindly give a brief idea about the scenario and how the above mentioned functionality can be implemented.
                      Rewards Points for all helpful answers.
    Regards,
    Vinayak

    Hey Vinayak,
    I had similar requirement... i had almost fulfilled the requirement but till then the project got scrapped...
    I will give you the brief idea on how to go about the whole thing....
    You can use this FM to satisfy your requirement.....
    CALL FUNCTION 'HOLIDAY_GET'
            EXPORTING
              holiday_calendar           = 'XH'
              factory_calendar           = 'XF'
              date_from                  = lw_frm_date
              date_to                    = sy-datum
            TABLES
              holidays                   = lit_holidays
            EXCEPTIONS
              factory_calendar_not_found = 1
              holiday_calendar_not_found = 2
              date_has_invalid_format    = 3
              date_inconsistency         = 4
              OTHERS                     = 5.
    For this you need to create factory calendar and holiday calendar.....This can be done in SPRO path.. Just search for the keywords in SPRO IMG....
    You need to do some coding for this and use FM CRM_ORDER_MAINTAIN followed by CRM_ORDER_SAVE to get this thing done which will eventually change the end date of the ticket....
    I think you are well briefed on how to go about it from now.....
    Inspire ppl by rewarding...
    Regards,
    Anand..

  • Fetching SAP Date and Time format

    I am using  "RFC_READ_TABLE"  function module  to fetch SAP table contents using JCO APIs. I need to know the date and time format to parse the values of date and time fields into respective java data types. (I am receiving these values in the form of string using above RFC)
    How can I get date and time format information from SAP server?
    Regards
    Amol

    Hi,
    Through T-Code SU01 in general setting tab   u can do the general setting for  date time, number format
    Type tcode SPRO and Got to general settings -> Define Countries then  restart the system.

  • Service order is on product deliver status ,then i want to display product delivery status date and time on result list ?

    Hi Team,
    service order is on product deliver status ,then i want to display product delivery status date and time on result list ?My requirement is i want to display product delivery status date and time based on delivery status we need to display the date and time .how to do it.? basically i have created the productu delivery status field in search and result through AET.
    Now the fields will be available in BTADMINH.
    how to set based on status delivery to get the date and time .
    Thanks
    Kalpana

    HI Ajay,
    I have added code in BT116h_srvo,attributes - LCSTATUS,method -  SET_LCSTATUS.but after change status f8 ..but the value is not filled in result list..so i need to write the logic in EH_ONSAVE or some other..could you please help here..what change i need to do..
    IF
    <nval> = 'E0004'.
    DATA : lv_date TYPE dats.
    DATA : lv_time TYPE tims.
    lv_date = sy-datum.
    lv_time = sy-uzeit.
    DATA : lr_parent TYPE REF TO cl_crm_bol_entity,
    lr_adminh TYPE REF TO cl_crm_bol_entity,
    lr_root TYPE REF TO cl_crm_bol_entity,
    lv_process_type TYPE crmt_process_type,
    lv_parent_name TYPE crmt_ext_obj_name,
    lr_current TYPE REF TO cl_crm_bol_entity.
    lr_current ?= current.
    lr_parent ?= lr_current->get_parent( ).
    CHECK lr_parent IS BOUND.
    CALL METHOD lr_parent->get_parent
    RECEIVING
    rv_result = lr_adminh.
    CHECK lr_adminh IS BOUND.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0010'
    iv_value = lv_date. "value.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0011'
    iv_value = lv_time.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    ENDIF.
    Thanks
    kalpana

  • My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    Howdy eewebe13,
    So you have no cellular service but are on Wi-Fi yet iMessage and Facetime are waiting for activation.
    Please step through this article for that scenario.
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Thank you for visiting Apple Support Communities.
    Nubz

  • How to know date and time information from Trace File defaultTrace.X.trc?

    Hi, all.
      i'm using EP 6.0 SP9 patch 1.
      As you know, default trace is written in the <SID>\JC00\j2ee\cluster\server0\log\defaultTrace.X.trc.
      By using the default trace formatter, it shows like the following sample messages.
    #1.5#0011110E7B2000590000000100000A100003EC71562E6EBC#1104396451585#com.sap.jms.server.ServerClientAdapter##com.sap.jms.server.ServerClientAdapter#Guest#18####716257115a3f11d9b73b0011110e7b20#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/Applications/JMS#Plain###JMS internal error at ServerClientAdapter! JMS Service is not started!#
      My questions are
      1. how do we retrieve the date and time information from the above message? It seems that this message has date and time info because LogViewer shows the date and time based on the above message.
      2. how do we change the above date format to easier one
    like "YYYY:MM:DD:hh:mm:ss"? i know that it can be configured from the Visual Admin --> Services --> Log Configurator but i don't know the exact place for the trace file.
      Thanks.

    Hi Sejoon,
    I use the standalone Logviewer to read the log files. Works great.
    "If you have an SAP Web Application Server Java 6.20 or below you may also get a standalone_logviewer.zip file at the SAP Service Marketplace at service.sap.com/download &#8594; SAP NetWeaver &#8594; Release ‘04. In this case JDK version 1.3 or higher must be installed on the system. The java version must be same on the server and the client.
    In the SAP Web AS Java 6.30 installation a folder named logviewer_standalone can be found under: <path Of J2EE installation>/<SysID>/JC<nr>/j2ee/admin/logviewer_standalone. Verify that the batch file logviewer.bat is installed in the directory logviewer-standalone.
    (source -> http://help.sap.com/saphelp_nw04/helpdata/en/e4/540c404a435509e10000000a1550b0/frameset.htm)
    Best wishes,
    Noel

  • Function Modules for Data and Time

    Hi all,
              I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
    Thanks in advance

    Hi Ranjith,
    i think this will b usefull for you..
    SAP Bar Chart Function Modules and what they are used for
    Function module
    Used for
    BARC_GRAPHIC_PBO
    Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
    BARC_GRAPHIC_PAI
    Analyzing data returned by the graphic
    BARC_SET_TIME_AXIS
    Setting start and end of time axis
    BARC_SET_OPTIONS
    Setting options
    BARC_ADD_CHART
    Creating a chart
    BARC_SET_CHART_ATTRIB
    Setting chart attributes
    BARC_ADD_SECTION
    Creating a section on the time axis
    BARC_SET_SECTION_ATTRIB
    Setting section attributes
    BARC_ADD_RIBBON
    Adding a ribbon to the time axis
    BARC_SET_RIBBON_ATTRIB
    Setting attributes for ribbons in the chart
    BARC_ADD_GRID
    Adding a time grid
    BARC_SET_GRID_ATTRIB
    Setting grid attributes
    BARC_ADD_LAYER
    Adding a layer (graphic elements)
    BARC_SET_LAYER_ATTRIB
    Setting layer attributes
    BARC_ADD_LINE
    Adding a line
    BARC_ADD_CALENDAR
    Creating a calendar
    BARC_SET_CALENDAR_ATTRIB
    Setting attributes for a calendar
    BARC_ADD_TIME_PROFILE
    Creating time profiles
    BARC_SET_TIME_PROFILE_ATTRIB
    Setting attributes for time profile
    BARC_ADD_INTERVAL
    Adding a time interval
    BARC_SET_INTERVAL_ATTRIB
    Setting time interval attributes
    BARC_ADD_TIME_OBJECT
    Creating a time object
    BARC_CONVERT_DATE
    Creating a date string in bar chart format
    BARC_REVERT_DATE
    Converting a date string in bar chart format to date and time
    BARC_ADD_DATELINE
    Creating a date line
    BARC_SET_DATELINE_ATTRIB
    Setting dateline attributes
    BARC_GET_PROFILE_CONTENTS
    Obtaining profile contents for customizing a chart
    BARC_GET_COLUMN_WIDTH
    Selecting new column width
    BARC_SET_COLUMN_WIDTH
    Setting the column width
    BARC_GET_TEXTINDEX
    Obtaining the text index of a field
    BARC_SET_LABELS
    Positioning the chart display
    BARC_SET_COLUMN_ATTRIB
    Setting column attributes
    BARC_SET_ROW_ATTRIB
    Setting row attributes
    BARC_SET_ROW_HEIGHT
    Setting the line height
    BARC_SET_MAXCHARTS
    Setting the maximum number of charts sent
    <b>If its usefull reward points
    </b>

  • Work Status Report Date and Time Setting

    Hi all
    We are running BPC10 on servers configured with Central European Time which is currently 2 hours ahead of GMT allowing for Daylight Savings Time.
    From what i can see in BPC10 date and times are now stored in GMT (Zulu time) in the Audit activity tables so when a user updates the work status at say 11:00AM local CET time then a value of 09:00AM GMT is stored in the Audit Activity Header table.
    We have a report in excel that uses the EVLCK formula and will return the correct value of 11:00 am however if we run the Work Status Audit report on the Planning and Consolidation home page with user preferences set to Central European Time +1 then the time is displayed as 10:00am suggesting that daylight savings time is not accounted for. We need to set the time to Eastern European time +2 hours to display the correct figure.
    Can anyone explain why this happens? Has DST been overlooked?
    Rgds
    Alan

    Hi Alan,
    probably it's a bug, I think it's better you open an OSS message to SAP.
    Regards
         Roberto

  • Can't remotely connect to my server if I automatically set date and time

    Hello.
    I have configured my OS X 10.6.2 server and am able to remotely manage it.
    The only ports I have opened on my router is for Mail and VPN services.
    Things work perfectly because I can connect using VPN to iChat, iCal, Address Book, Server Admin, Workgroup Manager, AFP, FTP and such.
    The problem is that on my laptop from home, or wherever, if its time is set to update automatically from an NTP server (I have tried with Apple's as well as my server for the NTP Servers) then I cannot connect to my server at all...
    The moment I turn off the auto date and time and reconnect to the office's VPN, I am able to use Server Admin, AFP, FTP, Workgroup Manager, Screen Sharing, etc, etc, etc.
    It's utterly frustrating because I have to open system preferences, disable the automatic date and time update, connect to the VPN and do stuff on the server. Then I have to disconnect from VPN and re enable the auto date and time.
    Could someone explain why this is happening and any possible solutions I might be able to try?
    Thanks in advance,
    Felipe.

    OK, after some testing things seem to be working now.
    I opened the NTP port for my server (So I don't have to be on VPN to update the time)....But regardless of that, Server admin and my corporate site work fine.
    Here is my problem, I don't understand why it's working now when 30 minutes ago I was having trouble connecting to my server regardless of what NTP Server I used.
    The only service I can't access is Workgroup Manager, but I don't know if that is supposed to be accessible only locally (though it doesn't matter since I can screen share but I would still like to know).
    Thanks in advance,
    Felipe.

Maybe you are looking for

  • Connection speed of optical drive connection in late 2009 imac 21.5"

    Howdy, I have the 21.5" late 2009 imac. I am wondering what the speed of the I/O of the hard drive if I replaced the optical drive? Is it sata 3?  I thought I read the early 2009 changed the optical connection to sata.  I just swapped out the 500 gb

  • Does AVL table supports popin in WebDynpro ABAP

    Hi, Just a short question, does AVL table supports popin in WebDynpro ABAP? I know that popin in supported in normal table in WD ABAP. Is this feature also available for ALV table? Thanks Yingzhi

  • I need to re-install Adobe suite

    My computer needed re-booting so it had to be completely wiped therefore I need to re-install my adobe suite.  How do I do this?..

  • Deletion of Service PR

    Dear All, Below is my issue, we have created Maintenance Order- for External service, PR is Triggered, .for the same PR i want to delete it, but it is not higlighted the delete button. Pls clear me how to delete the PR even the Maintenance order is i

  • Embed VC in iFrame

    Hi, experts We have a requirement to embed VC views in iFrame, in order to integrate VC report in Weblogic portal. iFrame src url=<VC iView preview url> But got "access denied of line 136" error. we check the source file. Line136 has the code below.