Document date for time zone of user

We have modeled the date of documents 0CREATEDON (document header and item details) to time dimensions of InfoCubes. The 0CREATEDON date reflects the system date i.e. CST. The report user wants sales document based reporting to reflect his/her time zone date.
We have added an additional field to the sales document header extractor that records time zone date of where document was created. This does not exist for document details extractor.
Has anyone come up against this problem? How have you modeled the data to provide such a reporting capability? Is there date conversion routines for reporting that would convert time zone dates?

With ABAP you can use the function "CONVERT TIME ZONE". If you type this in a test-program with se38 and then press F1 while the cursos is on the wordt CONVERT you will get all necessary explanation.
Note: I think that the timezone of the user is available in one of the sy-fields. The daylight savings indicator is available as a sy-field for sure.

Similar Messages

  • Problem in converting the String to Date with time zone GMT

    Hi,
    When I tried to convert the string 12/05/2009 to Date, the time zone is set to BST.On the other hand, for the date 12/12/2009, the time zone is set to GMT. What should I do to get the time zone as GMT all the time.?
    SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
    String dateString = "12/05/2009";
    System.out.println(myDate.toString());

    I think you are all missing the point. java.util.Date objects always alway always store the date as the number of milliseconds since 1/1/1970 UTC so the only TimeZone they have its the implicit UTC. When you use the Date.toString() method the toString() method gets the default time zone from your environment and formats the data accordingly. This means that the same Date object will, by default, produce a different result for France and Australia and the US.
    So, if you have the date "12/5/2009" as a String then to convert it to a java.util.Date you must specify what TimeZone is implied. If it is your system time zone then you can just create a SimpleDateFormat object with the correct format and then use the parse() method to create the java.util.Date object and this will automatically be converted to UTC. If the date String represents some other time zone then you must explicitly set the time zone of the SimpleDateFormat object before parsing the string.
    The same approach applies when converting a java.util.Date object to a String. If you want anything other than your system time zone then you must explicitly tell the SimpleDateFormat what time zone you want the result formatted for.

  • GetSelectedFields()  for time stamp and user stamp using java api

    using Java API's
    getSelectedFields() returns NULL  value if values presented also, for Time stamp and User stamp
    properties in Flat tables , is there any other alternative way to get the SelectedFields values ?
    Edited by: Vijaya Sekhar Reddy Alla on Mar 19, 2008 3:16 PM

    Well, I can't say I solved the problem, because I got another one afterwards.
    As usually I created a GetFieldListCommand, set its needed attributes and executed it. Then I read all the field properties out:
    FieldProperties[] fieldProp = getFieldListCommand.getFields();
    Afterwards it is possible to do what you want. Using a for-loop.
    for (FieldProperties fp : fieldProperties) {
        UserStampFieldProperties usfp = (UserStampFieldProperties) fp; // <= Cast error
        FieldId[] fieldIDs = usfp.getSelectedFields();
    And this is what I get now:
    Exception in thread "main" java.lang.ClassCastException: com.sap.mdm.schema.fields.FixedWidthTextFieldProperties cannot be cast to com.sap.mdm.schema.fields.UserStampFieldProperties
    Why this happens, I don't know. But it should somehow be solveable.

  • DOCUMENT DATE FOR BACK DATA TO BE UPLOADED

    hello experts,
    I have a purchase cube with TD from last year.
    I have PO NUMBER as a characteristic AND 2LIS_02_SCL as datasource for Purchase.
    now i want the date on which PO is created and there is a DOCUMENT DATE available in the datasource.
    now i have added 0Doc_date as a characterstic to the cube but the date is coming in the report instead # is appearing in Doc date column.
    when i am checking the data in PSA the document date value is available correctly .
    Now please help to load the document data for the back data.
    how to do this so that the Transaction data should not get affected and i get the Document date for the previous PO numbers also.
    plz explain in details.
    will be very thankful

    Hi,
    Delete one Request of that data source from Cube
    and then Reconstruct it.
    check whether the data for document date is coming or not
    if it is coming then delete all the request and reconstruct.
    it will reflect after that.
    Edited by: obaid shaikh on Mar 17, 2011 1:47 PM

  • Format Date for time.

    i have a doubt as to how to store the date along with time from my front-end Forms Developer Suite 9i application.
    I am trying to give this kind of statement from SQL-plus:-
    update login_master set last_accessed=to_Char(sysdate,'dd-mon-yy HH:mi:ss')
         where login_ID = :GLOBAL.LOGIN_ID
    but, there is a message which comes like this:-
    ORA-01830 date format picture ends before converting string.
    Also, i want to compare this time stored against time a little later, say after 1 or 2 hrs to get number of minutes.
    How can i do this? I hope, my question is clear. Please help in solving the doubt.
    regards.

    This topic is a duplicate of this one:
    <p>Format Date for time
    <p>Please reply on the other thread.

  • System time zone and User time zone is differenct.

    Hello friends.
    We use SRM 5.5 with classic scenario. (SP07)
    Our system time zone is CET.
    Now if we have a user different with a different time zone in the user master, for example, a UTC+9.
    We can end with up with a received date in service BBPBWSP_SIMPLE that is before the created on date in the shopping cart.
    A shopping cart is created at 2006.05.10 but the received date in Approval says 2006.05.09.
    So approver can be confused the requested date.
    Is this standard bugs or standard design?
    How can we change the received date with user Time Zone?
    Thank you,
    Best Regards,
    SH.

    Hello,
    As far as I know, if you do not populate the field "of the user" in SU01, system takes the pattern timezone, which is UTC, to display to the end user in web gui.
    I did the following test:
    - I created a RFX with a user who's timezone (in tx SU01) is set as:         
    Sys. Time Zone     CET                                                       
    of the User        INDIA                                                                               
    - CET time  was 20:01:55                                                    
    - GMT time was 18:01:55                                                    
    - India time was 23:31:55                                                                               
    Looking at this RFX in BBP_PD I see the following:                           
    Same user (India timezone and CET as "Sys. Time Zone"):                                                                               
    Created_At: 20:01:55                                                         
    Changed_at: 20:01:55                                                                               
    DETAILS ->                                                                   
    Created at: 18:01:55                                                         
    Changed at: 18:01:55                                                                               
    RFX header (description): 23:31:55                                                                               
    So, if you want to populate the header document in WEB GUI with another time zone than UTC, you have to use the field "of the user", under Personal Time Zone. However, if you want to display the UTC time zone in header documents in web gui, you can leave this field empty.
    Kind regards
    Ricardo

  • Set expiration dates for Secure Zone Memberships

    We run an online exercise company offering memberships with access to exercise videos so users can exercise online - we sell memberships by the week, month, or month to month memberships. We also sell a beginner courses. The site has been built in Adobe Muse, integrated with Business Catalyst.
    For the time-based memberships we have inserted a snippet of code in Business Catalyst that limits the amount of time members have access to the secure zone where we keep the videos - this is tied to the form members fill out when they purchase. The issue is that when the entire Muse site is republished or just the page with the form - the code disappears. So we have to go into each form and reinsert the code. This has been going on for quite some time. Below is most of the code we've been using - which we found in Business Catalyst Forum Section a couple years ago:
    function setExpiryDate( )
    var dat=new Date();
    dat.setDate(dat.getDate() + 8);
    var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
    var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();
    document.getElementById("ExpiryDate").value = pretty;
    };setExpiryDate( );
    We are looking to 'permanently' anchor the code in the form.

    Hi
    If you are using BC secure zones then you can setup the expiry date from BC end only, regarding the code that you are using , I believe you are trying to use specific form for secure zone sign up and limiting the expiry date.
    Regarding form code being stripped off, are you submitting the form once from site front end and then also code is stripped off ?
    Please include site url in your response.
    Thanks,
    Sanjit

  • Time zone Inbox (user vs. server)

    We created the users and defined your specific time zone (su01), when the user login to the portal and created documents the time displayed its correct (zone depending), nevertheless when the same user access to the portal inbox, the filter is by server time zone, how can i define the inbox filter by time zone of the login user???

    Hi Egor,
    > I know, http-browser transmits time zone information
    > in http-request
    IE? If I call www.google.com, I cannot see the TZ anywhere, checked by HTTPWatch. There is also no corresponding setting within IE. You could only map prefered languages to locales, but that doesn't work really proper, for they work over different time zones.
    Also see http://www.timeanddate.com/worldclock - no automatic detection.
    Also see http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=Enterprisejava&Number=12640&page=1&view=collapsed&sb=9&o=&fpart=1
    So I would suggest to use the user's time zone, and if not set, to use the server's time. It's the fault of the user admins if the time zone is not set!
    > Both functions don't return time zone information
    Right. And as said, mapping the locale to a time zone is a (bad) workaround, nothing I would advise.
    Hope it helps
    Detlev

  • Date and time stamp of user status does not appear

    Hi, gurus.
    For a specific transaction type, the date and time stamps for certain user statuses do not appear within the transaction although these missing date/time stamps are captured in the database upon checking by our ABAP.  It seems that this problem started when I added several statuses and rearranged their status numbers in the status profile last year.
    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions. 
    E.g.
    Status Profile                                                                               
    Status No.     ---       Status Code      ---            Short Text                                       
    10            ---                    IP1L                   ---       In Process 1st Level                        
    20            ---                    IP2L                   ---       In Process 2nd Level                          
    Date Profile
    Display Position   ---       Date Type
    1                          ---       In Process 1st Level       
    2                          ---       In Process 2nd Level
    We're going to create and assign a new status profile for the concerned transaction type.  We'll make sure that this status profile is sychronized with the date profile.  Hopefully, the date/time stamps will all be displayed in prospective transactions but the problem on the missing date/time stamps in historical transactions will still remain.
    Pls. help us.
    Thanks in advance,
    Theresa

    I'd also like to ask if it's really necessary that the statuses within the status profile and date profile should maintained in the same positions.
    No

  • Document date for PO..?

    Hi all
    I was using IDES, here i have done configuration .
    while creating the PO , the document date in PO is showing 1 year before ,,i.e for example today if i create a po document in po is 1.10.2007..
    Please guide me were to do the setting for document date in PO
    Or any calender and time setting i have do for my comapny code ..?
    At the same time only i m getting error "enter rate of EUR/INR of 1.10.2007 in ur system setting ..
    pls guide me
    Thanks
    sap-mm

    This is due to system time Settings. Your system Time Might have set to One Year Back ie 2007 During IDES installation.
    Due to This only system is Behaving like this.
    Go to Any SAP Screen and Go to Menu System then click on Status and Check the Expiry Date of your SAP System and Possible Change the System Date.
    Go to OB08 and Select Echange Rate Type M and Save.
    You Can Use Copy Function Just Copy any old with Exhcange rate type M and Change the Currencies and Save.
    Could you Please Listen properly what Others are Suggesting before Closing the Issue
    Edited by: Kàlyànji Anàndji on Oct 1, 2008 10:27 AM

  • Updating Document Date for an AR Reserve Invoice

    A user wants to create an AR Reserve Invoice then at a later date change the Document Date (OINV.TaxDate).
    Even with Open documents, sometimes the Document Date field is greyed out and sometimes it is not, so the user cannot always change it.
    What causes the Due Date and Document Date fields to become inactive for an open AR Reserve Invoice?
    I think allocating a payment does it, but the user sometimes cannot update AR Reserve Invoices where there are no payments, i.e. the Applied Amount is blank.
    Regards,
    Douglas

    Douglas,
    What is the background that you need to change those dates?  You know, the date is sensitive to financial report.  It is better to limit this kind of activities.
    Thanks,
    Gordon

  • How to display system time zone if user time zone is not set?

    Hi,
    My application implicitely chooses ALA as time zone if the user time zone is not set.
    How do I check this?

    Hi,
    Try using these FM's
    TZON_GET_USER_TIMEZONE
    GET_SYSTEM_TIMEZONE
    Z_LOCATION_TIMEZONE
    You can set the timezone in sy-zonlo by using the 1st FM and setting sy-zonlo in your application.
    I think system takes ALA default because its the 1st timezone in the table.(check FM BWDT_LIST_TIMEZONES)
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 25, 2009 3:38 PM

  • Need to get data for month entered in  user prompt to prior 12months.

    Hi,
    I have a report where i need to display total amount for current month  to prior  12 months data...first column will be current month, second column is (current month-1),3rd col: (current month-2)....( current month-12).
    Is there any way I could use current date to get previous 12 months in  variables?
    For example: if  current date is 02/15/2010, I need get  data for 01/2010, 12/2009, 11/2009,....01/2009.
    For example: if I entered Month: 03  and year:2010 in prompt , then I need to get data for prior 12 months to that in the prompt for month:03?.

    The only way to do this is using restrictions on Universe... here you can have the restrictions for every month or a range using the user prompt and the system date.
    Regards

  • Can EBS show the last date and time of a user login

    We have a requirement to display users their Last sucessfull login date and time. We would like to display after user have entered username/pwd i.e. Could someone guide how can we schive this ?
    Thanks in Advance
    Dinesh

    Hi,
    This is available through "Signon Audit Unsuccessful Logins" concurrent program.
    How do you audit an Oracle Applications' user? [ID 395849.1]
    Need A Way To Notify Users About Previous Failed Login Attempts [ID 357009.1]
    Thanks,
    Hussein

  • Function module for Time zone conversion.

    Hi SDN,
    Can any one tell is there any FM for conversion of time from GMT to CET or any other time zone
    Regards,
    Rahul

    Try these function modules
    STU3_ALERTS_CONV_LOCAL_2_UTC   Converts local time to a given timezone
    STU3_ALERTS_CONV_UTC_2_LOCAL   Converts local time to a given timezone
    TZ_LOCATION_TIMEZONE                     Time zones: Determine time zone for a location                                                                          (land, region)

Maybe you are looking for