BPM Java WebDynpro xsd:date decrease one day

Hi Experts.
I have a problem with the context between Java WebDynpro and BPM. I have an attribute of date type , when BPM call the Web Dynpro UI, this date it shows to user with one day minus, but in BPM Context and Web Dynpro context are with the correct date.
I checked the BPM context and the value of this attribute is: "2011-08-06Z".
I think that the problem is with the "Z" because it's like a time zone.
Any suggestions?
Thanks,
Julian.

Hello Julian,
We faced the same issue as you, and after doing all checks in configuration, nothing!, finally we found a SAP note that recommends to change the date type to string types, but, we have a lot of webservices calls and mappings that requieres a "date" type and this make more dificult the "solution".
Then we found a little tricky solution.
We change the webdynpro Date types to Strings, and make the transformation in bpm mapping to cast as xsd:date,  finally in webdynpro you must perform a string.format for the outgoing date as BPM is specting the date ( "YYYY-MM-DD")
With this solution you see a "date" type in BPM  context and String type in Webdynpro and the offtset disappears.
This solution maybe is similar to SAP Note, but you don't need to change all your consumed webservices types.
Regards!
Julio Cesar Leyva

Similar Messages

  • Converting date value one day less while transfering from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    // to get  current time in Germany
        Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Germany"));
        int hour12 = cal.get(Calendar.HOUR);
        int minutes = cal.get(Calendar.MINUTE);    
        int seconds = cal.get(Calendar.SECOND); 
        boolean am = cal.get(Calendar.AM_PM) == Calendar.AM;
        //I think all you need to do is to set the timezone to the current, so that when the
    //server at some other timezone gets this date it knows that this date belongs to
    //different timezone and gets converted automatically according to the server
    //timezone settings.
        // Set the current local timezone
        cal.setTimeZone(TimeZone.getDefault());
        int hour24 = cal.get(Calendar.HOUR);
      Hope this answers your question. Good luck.
    -Sreekanth varidhireddy

  • BBM on BB Classic eating up a lot of mobile data during one day and without reason

    Hello, on August 1, BBM (10.9.5.22) on my Classic (software release 10.3.1.1779) suddenly consumed about 125 megabytes of data via mobile network within one day, without having used BBM for anything but a few text messages and with only one chat having been active. Maybe there were about two photos, but only in the default low resolution which are never above a few hundred kilobytes. Is anyone able to explain this behaviour? I'm a little bit frustrated as 125 megabytes are a lot if the free "high speed" volume per month is only several 100 megabytes, and BBM consumes a lot of it right of the beginning of a month And otherwise, e.g. for video calling, it asks if you really want to do that on a mobile network...  Thanks for any idea and best regards, Hans-Juergen

    The frustration continues... now BBM consumes at least (!) 40 megabytes per day, by only using it for a fwe text messages. However, I found an interesting knowledge base article saying that "BBM" within the device monitor might be related to other tasks using an "EBMService". http://btsc.webapps.blackberry.com/btsc/KB36954 Here are the most recent mobile data usage graphs - totals first:  Then BBM details:  As a comparison, the previous month. On July 18th I started using BBM, and it seems it already started eating mobile data there right away:  Before I started using BBM, 500 megabytes per month were more than enough. Now it seems as if BBM alone will berak my current 1 GB limit far before the end of this month! By searching the forum, I found multiple similar issues, but none of them solved completely. Except for the parental control attempt, but as I want to use BBM, that is not appropriate for me. http://supportforums.blackberry.com/t5/BBM-for-BlackBerry/BBM-high-data-wi-fi-usage/m-p/3110624 http://supportforums.blackberry.com/t5/BBM-for-BlackBerry/Extreme-BBM-Data-usage-this-past-month/m-p/3104776 http://supportforums.blackberry.com/t5/BBM-for-BlackBerry/BBM-Data-usage-extremely-high/m-p/3098544 http://supportforums.blackberry.com/t5/BBM-for-BlackBerry/BBM-extreme-data-usage/m-p/3079395

  • Powershell Get-date minus one day...

    Here is the delima, I need to get yesterdays day in the format of yymmdd.  That's easy if you want todays date:
         get-date -uformat %y%m%d
    Great!  Now how do I get yesterdays date?
         (get-date).AddDays(-1)
    will get me
         Wednesday, June 22, 2011 8:47:51 AM
    But, I cant do
         (get-date).AddDays(-1) -uFormat %y%m%d
    Nor can I do
         (get-date -uFormat %y%m%d).AddDays(-1)
    Nor is there a .Net date/time format of yymmdd.  Any suggestions would be appreciated.  Thank you!

    So if i wanted to get the current date to a format of YYYY.MM.DD, I can get it by
    (get-date).ToString("YYYYMMDD") ?? Since i have file names that contain the below i need only to get those with a certain current date embedded.
    Update_YYYYMMDDHHMMSSMS.log or Update_2014021802113801.log

  • Dates one day behind after java upgrade to 1.6.0_27

    I have upgraded from Java 1.5.0_06 to 1.6.0_27
    After the upgrade ,I saw that dates are a day behind.All dates that lie between November 6th to March 10th are correct but dates
    lying between March 10th to November 5th for any year are wrong.(one day behind)
    Is it something to do with DayLight saying.
    I am using GMT-5 Eastern Time(US & Canada) and Server is set to automatically adjust time coressponding to day light saving.
    I checked,I get the date correct from database and in the factory class also it is correct,in the servlet it is correct but my Viewclass which calls this servlet shows date one day behind.
    I am doing no conversion ,the date fetched from database is stored like
    java.sql.Date beginDate= resultSet.getDAte("BeginDate")
    Schedule.setBegindate(beginDate)
    In the Schedule Object ,the beginDAte is of type Date.
    I am adding all dates to a treeset.I do a printout just after setting,it is correct
    But in my view class ,its one day behind,no manipulation is done.Dont know why is the day incorrect.
    IS it because of Java version.
    Please help

    As I mentioned That
    My view class TestView code is some what like this
    public class TestView extends JFrame
    public TestView(URL url, AppletContext appletContext)
    this.appletContext = appletContext;
    SwingUtilities.invokeLater(new Runnable() {
    public void run()
    testCommand test= new GetDatesCommand();//call factory class which fetches result from database
    Object returnValue = TestUtils.callServlet(test);//calls the servlet .
    if( returnValue instanceof TreeSet )
    TreeSet testSet= (TreeSet)returnValue;
    TestView.setDate(testSet));
    I am calling this constructor of viewtest class from my LoginTestApplet
    public class LoginTEstApplet extends JApplet
    public LoginApplet()
    TimeZone.setDefault(TimeZone.getTimeZone("EST"));
    LoginTestActionperformed()
    new testView(getDocumentBase(), this.getAppletContext());
    As I mentioned the values of dates as fetched from database ,factory class and getDatesCommand class prints fine.Its just inside this class after the call to servlet ,it displays wrong date.
    I have an applet ,LoginTestApplet which is the entry point for my application.Inside the default constructor ,I am doing
    TimeZone.setDefault(TimeZone.getTimeZone("EST"));
    I have mentioned in my second post what results it shows for getDefaults.
    I know its very strange ,the dates gets one day behind immedately only in the view class not in the servlet or the factory class.
    Please let me know if I need to post some more data .

  • PreparedStatement set date sometimes sets the date one day behind

    I have a PreparedStatement that sometimes sets the date a day behind. I am saving to a MSSQL DB with a field datetime. I have two identical PreparedStatments, one for insert and one for update. When either is executed, it will sometimes set the date back one day. It's not everytime. Every other or every third one, but it's not consistent. Any help would be appreciated.
    ps.setDate(1, Util.parseSqlDate(getParam("CHARGED")));
    public class Util {
         public static java.sql.Date parseSqlDate(String datestr) {
              DateFormat sdf = null;
              if (datestr == null)
                   return null;
              if (datestr.length() > 8) {
                   sdf = new SimpleDateFormat("MM/dd/yyyy");
              else {
                   sdf = new SimpleDateFormat("MM/dd/yy");
              java.util.Date d = null;
              try {
               d = sdf.parse(datestr);
              } catch (ParseException e) {
                   return null;
              if (d != null) {
                   Calendar cal = Calendar.getInstance();
                   cal.setTime(d);
                   return new java.sql.Date(cal.getTimeInMillis());
              return null;
            protected String getParam(String name) {
              return (getParamArray(name)== null) ? null : getParamArray(name)[0];
         protected String[] getParamArray(String name) {
              return (String[])params.get(name);
         }

    traigo wrote:
    The database is a datetime field. Then you should be using the appropriate java jdbc time/date methods to access it rather than strings.
    We are only storing the date portion. Saving with today's date should produce '2009-12-28 00:00:00.000'.
    I just want to set the date to an absolute date (no time value) provided without timezones.Impossible. Since the database datatype is datetime that means that a timezone is always involved.
    And java always uses timezones. Ignoring the problem doesn't make it go away.

  • Sales order availaibility date one day in past

    Hi Experts,
    I am facing an issue in SNP planning book / Product view wherein Sales order availability date is one day in past (say, date in ECC 01.04.2015 00:00 hrs --> date in APO 31.03.2015 23:00 hrs). This only happens for plants where DST is maintained. DST ends in March, and this issue is popping up for the sales orders in the subsequent month, i.e. April. The same error is also present in the next month of the DST starting month. The issue is not present in any other months.
    I guess this is due to some inconsistencies that has arisen in APO. I saw a previous thread, http://scn.sap.com/thread/1816822, but it has ended without any solution.
    Note, we are not using GATP.
    Thanks in Anticipation.
    Regards,
    Biplab

    Hi All,
    The issue is found to be because of application of note 198411 in ECC. Amongst others, variable DST has been introduced for time zone AUSWA (table TTZDV). But, Western Australia does not follow DST after 2008-09.
    Have any of you faced similar issue post the latest version of note 198411 (released on 9-Jul-2014)?
    Regards,
    Biplab

  • Palm desktop software moves data one day back

    Using Palm Desktop 4.6, the calendar data moved one back one day.  Thanksgiving is now on Wednesday along with all my calendar data.
    I downloaded and upgraded to Palm Desktop 6.2 and, of course, that did not correct the problem.
    I also HotSyncec with my Z22 and now the dates on it are also off by one day.  Can I fix this or do I have to do each day manually?  Thanks, Tom
    Post relates to: Palm Z22

    The same thing has happened to us. We don't sync with any device, but have changed computers, so are just transferring data from Palm Desktop on one computer to another (exported a file, put it on a flash drive, and then imported it). THe strange thing is that it doesn't move all the dates back one day, just some of them. There doesn't seem to be any pattern to which ones. And we noticed that it just dropped one all together.
    Looked at one of the dates that was moved. It is a repeat (a birthday). And when you look at the details of the repeat, the date is changed and where on the initial computer there was no end date, on the new computer it has put an end date.
    The desktop software is Pal Desktop by ACCESS, version 6.2.2
    Would love some help!!

  • IPod icalendar dates moved 1 day ahead

    I have all my correct dates on my iMac but when they sync to my iPod Touch they move the dates ahead one day. Any clue how to fix this? I don't understand how they are correct on iCalendar and not on my iPod. I have found other posts on this subject but most are all for much older OS issues from a few years ago.

    I have a similar problem with my iPod/Calendar. There is a manual work around that worked for me. Seems to be a problem with iSync. Here is more details http://discussions.apple.com/thread.jspa?messageID=1747727&#1747727

  • Stuff related to JAVA WebDynpro?

    Hi experts,
    Started learning / developing components using JAVA WebDynpro.
    Can any one please share the useful documents had with you and do let me know where to start to learn it..
    To share documents, drop a mail to [email protected]
    Points will be rewarded for useful answers.
    Thanks

    Hi Mohan
    These links are good way to start ur webdynpro JAVA development
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">webdynpro samples and tutorials</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/08f43cf1da7646a2b210a16321c669/frameset.htm">webdynpro portal eventing</a>
    Swathi
    Do offer pts nd ncourage:-)

  • Add one day to java.sql.date

    I ask user to enter a date: yyyy-mm-dd, then I want to add one day to that date, I don't know how to do it?
    java.sql.Date time2 = java.sql.Date.valueOf( args[0] );
    Many Thanks.

    since a date object is really nothing more than a long you can always add one day's worth of milliseconds to it....
    long milliInADay = 1000 * 60 * 60 * 24;
    Date d = ......
    d.setTime(d.getTime() + milliInADay);although there may be some issues with this i'm unaware of, but seems pretty straightforward to me.

  • Date converting to less one day while transferring from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    well, i have had nightmares with this problem. here are the reason and soln:
    reason:
    in ur DB, u r using a field "Date" which does not include time information. Hence, any date will be taken at 00:00:00. If such a date is opened in some other timezone, which is ahead of the server timezone, the date differs by one. This is becoz java always considers the millisecond info encapsulated in the date, calendar.
    soln:
    Step 1:
    u must be able to get the "timeZoneOffset" from a calendar object. This timeZoneOffset will give the number of minutes/seconds/hours... by which the system is offset from GMT.
    Thus if u create a calendar in India, the timeZoneOffset will be 330. If you create the calendar in UK, it will be 0.
    To achieve this, we have made an object-UTCDate. This class encapsulates a Calendar. It has a function called "getTimeZoneOffset".
    Step 2:
    Once u get the timeZoneOffset, here is what u need to do in ur code. (assume that the timeZoneOffset is in minutes. the variable names will be self-explanatory)
    at the client side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromServer * 60 * 1000 ) - (timeZoneOffsetOfClient * 60 * 60 )
    use timeInMillis to make a new Date Object and use this date object.
    at the server side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromClient * 60 * 1000 ) - (timeZoneOffsetOfServer * 60 * 60 )
    hope this helps.
    regards

  • Date field Length in Java Webdynpro

    Hi Experts,
    I have a strange case.
    I created a new filed in the infotype 0175: ZZDAT  like the standard field AUSGD  (type DATS length 8)
    I modified the ESS view and added the new fields.
    The view is working perfectly, the data is transfered between the databse and the webdynpro, the only problem is, that the user can't enter the date manually, because  last point after the day can't be entered: e.g.: 2010.01.01 instead of 2010.01.01.
    If the user uses the search help, and selects the date form the popup calendar, then the date format is correct: 2010.01.01.
    (there is a point after the DAY ) I tried to change the field length manually but still, the last point after the day can't be entered.
    Can you please help me to find out what is the problem?
    Thanks
    N.

    Unfortunatelly this doesn'T help at all.
    I reimported the data element, and restarted the server, but the result is the same. I can'T enter the date manually..
    To be honest, i'm fed up with this stupid java webdynpro.  I hope  there is a special place in hell, for the people who invented this....
    Anyway, I think the only solution here is to limit the field, capabilities. I'll try to set the Date picker as the only input way... I hope this is possible... it's easy in ABAP I just hope that java can do this the same "non-somplicated" way.
    If you have any idea how to do this I'll be very greatfull for any kind of help.
    Bye
    N.

  • BPM Integration with Java webdynpro

    Hi All,
       I am new in BPM forum . I want to integrate one JWD DC to anather JWD (Java webdynpro) so i need to pass one value to anather Dc using BPM .
    My Scenario is..
      I want to pass one unique value from one component (person who is created the  unique value l) to anther component (to fetch that value from second level in portal ) and showing in Portal work flow  task as LEAVE Request or approval scenario .
    Thanks
    Sudhir

    Hi Sudhir,
    from your explanations it is not completely clear which of the following scenarios applies to you:
    1) Both WebDynpro Components are connected to each other via WebDynpro Component dependencies. This would mean that a user is able to directly navigate from one to the other. A BPM process is not involved at all. In this case, you might consider to use WebDynpro context mapping or passing an URL parameter.
    2) Each WebDynpro Component is assigned to a dedicated BPM Task which again is integrated into a BPM process. Users would open the WebDynpro Components as Tasks from the UWL without a direct navigation between the components. In this case, you have to use a process context and context mapping in BPM to transfer the value between the WebDynpro components.
    Best regards,
    Stefan

  • 2004s Excel Export of Date is incremented by one day

    Hi, When I export a report with dates to Excel the dates are incremented by one day.  An OSS search turns up nothing.  Anyone have any idea why this would happen?  We are on 2004s sp10.
    Thanks,
    Ken Murray

    ANyone have any ideas why my report dates would increment by 1 day when uploading to excel?  This only happens with the JAVA Web Version and not the ABAP Web Version
    Thanks!

Maybe you are looking for