How to check the calendar date format in R12, 'IW' or 'WW' ??

Hi!
Currently we are facing any issue where the first date in 2014 is 6-Jan and remaining dates i.e; 2.3.4.5 Jan are in last week of Dec13.
I read in Oracle Forums topic first dates in Oracle are based on IW and W W format as below;
W W format - provides the week number such that January 1 is always in week 1
'IW format - is a little different in that January 1 can be week 53 of the previous year if it is a Friday, Saturday or Sunday.
But I am unsure in which format, our customers are maintaining the calendar dates in R12?? So is there any way/script find out the date format??
They are using 4/4/5 calendar type and Prof option 'BOM: Wek or Period Start Day' is set to Monday.
If this is not the right community for this discussion, please advise the right community as well.
Please update!

Hi,
Try DATE_CHECK_PLAUSIBILITY FUNCTION.
PARAMETERS : P_DATE LIKE SY-DATUM.
START-OF-SELECTION.
end-of-selection.
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
  EXPORTING
    DATE                      = P_DATE
  EXCEPTIONS
    PLAUSIBILITY_CHECK_FAILED = 1
    OTHERS                    = 2.
  IF SY-SUBRC <> 0.
    WRITE :/ P_DATE, ' is Invalid Date'.
  ELSE.
    WRITE :/ P_DATE, ' is a valid day'.
  ENDIF.
If you want the OO way of doing the same, you can use this.
CALL METHOD CL_RECA_DATE=>CHECK_DATE
  EXPORTING
    ID_DATE      =
EXCEPTIONS
   DATE_INVALID = 1
   others       = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Internally, it calls the above function module.
Regards,
Ravi
Note : Please close the thread, if the question is answered
Message was edited by: Ravikumar Allampallam

Similar Messages

  • How to update the default date format in OBIEE 11G.

    Hi All,
    How to change the default date format in OBIEE 11g from the MM/DD to DD/MM. Could anyone please help me out ASAP?
    Thanks,
    Arpan

    Hi Arpan
    OBIEE 11g is having " localedefinitions.xml " file at this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display
    in my case i installed at C:\Oracle\MIddleware.
    so
    1- Stop BI Server from EM
    2- Navigate to this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display. in your case oracle home will be different
    3- take a backup of this file localedefinitions.xml "
    4- modify it and save
    5- bring BI Server up.
    Regards
    sher

  • How to get the system date format string?

    Hello, everybody!
    I want to create a MaskFormatter with a mask for dates. So, I could suply as the constructor parameter: "##/##/####'. However, what if the year comes first in the current system date format settings, or the month is in the second place or in the first?... So, I can't just suppose that the current locale format for dates is like the one above. So, my question is: is there a way to get the SYSTEM DATE FORMAT STRING in Java? Searching in google I saw that this was already asked in this forum:
    http://forum.java.sun.com/thread.jspa?threadID=301034&messageID=1193794
    but there was no effective answer. Does someone already know how to get this?
    Thank you.
    Marcos

    Hi, not sure, but
    import java.text.*;
    SimpleDateFormat sdf = new SimpleDateFormat();
    System.out.println(sdf.toPattern());
    will output something like dd/MM/yy HH:mm
    hthThank you very much. It worked.

  • After completing MSS PCR, how to check the updated data in R3

    Hi,
    After completing and submitting the MSS PCR, How do I check the updated data in R3?
    Thanks
    Reva

    I got the answer.

  • How to customize the cell date format

    Trying out the trial version of Numbers....
    I would like to customize the cell date format. The inspector gives you several choices for date formats but I would like something different and wish to customize my own - just like in Excel.
    I don't see a way to do this. Are we limited to only those date formats provided by Numbers?
    Is there some other way to do this?

    I found a way to do this, but not in Numbers. Note that it is probably not for those who are squeamish about editing configuration files, and could probably break something if done incorrectly:
    1. Right click on the Numbers application icon and choose "Show Package Contents".
    2. Type "date" into the spotlight window and click on the DateTimeFormats folder or drill down to Contents/Frameworks/SFUtility.framework/Versions/A/Resources/DateTimeFormats.
    3. Right click on en_US.plist or your language's plist file and click Duplicate to make a backup. (Just rename the backup if you damage something).
    4. Open en_US.plist or your language's plist file with a property list editor. I use Property List Editor from the Apple Developer Tools, but I think Pref Setter is also easy to use.
    5. Open AcceptedDateFormats and check if your desired format is there. If not, add a string key with the desired format.
    6. Open DisplayedDateFormats and add a string key in the format you want it displayed.
    7. Save the plist file.
    8. Restart Numbers.
    9. Your desired date format should appear in the list of formatting choices.
    If you're opening up plist files and editing them, I'm hoping the date format conventions are familiar. If not, cross reference them to the list of already coded date formats in the date format inspector to get the hang of it.

  • How to check the master data records in using SE16 transaction?

    Hi,
    Can you please help me to check the master data records using SE16 transaction?
    Loaded master data for Characteristic and want to check the records in the master data tables.
    Thank you for your help!
    Lakshmi

    Hi!
    Welcome to SDN.
    you have to check the master data tables.
    soo in Se16 you have to select the appropriate master data table and view the data.
    following thread explains about masterdata tables
    MasterData table?
    regards
    mohan
    Message was edited by:
            Mohan Krishna

  • How to check the expired date of a public key stored in my keyStore

    Hello,
    I would like to know if there is any possibility to check the expiration date of a public key which is present in my keystore.
    I did read the help of keytool but did not found any explanation about that.
    Thanks in advance for your answers.
    Alain.
    Message was edited by:
    Philipina

    Public key doesn't have an expiration date. Certificate has. Run keytool -list -v and you can read something looks like:
    Valid from: ... until: ...

  • Is there a way to change the Calendar date format in iCloud? It seems to default to the 'American' way even though on my iMac it is set to the 'British' way.

    My calendar in iCloud has the following format:
    1/12/2011 for the 12 January 2011
    I would like it to be as all my other Calendars were/are:
    12/1/2011 for 12th January 2011
    Any help gratefully accepted

    Welcome to the Apple Community.
    Click on the gear icon in the top right corner and select preferences from the menu that appears, you can adjust the date format from there.

  • How to change the calyearmonth data format in psa

    Hi all,
    my requirement is to load data to dso from csv file it contains 0calmonth characteristic and carparc keyfigure
    and i have created a transactional datasource
    and when i am loading the data in csv file my data format is 201101 but in psa it is taking 110120
    can u tell me how to correct this one.
    when i activate the request to active data table  it is showing transfered records are 12 and added records are 1 can u tell me how to correct this.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    You don't need to change the original infoobject but you can do this changes in DataSource.  In your datasource goto field mapping tab and first of all you can map the date field to 0calmonth and on the same line you will have the option to choose the format.
    There you can go for internal format or External format as per requirement at the same time you have the option to provide conversion EXIT name.
    Regards,
    Durgesh.

  • How to set the default date format to populate a CachedRowSet...

    Hi, I'm working with JDBC to retrieve some data from an Informix Database, I'm also using Flash Remoting as my User Interface.
    The thing is, when I'm trying to display the recordset, the Date Format looks like this: "Fri Jan 29 18:00:00 GMT-0600 1999" so Flash cannot translate this format.
    This is my Java code:
    Class.forName(cnxDRV);
    conn = DriverManager.getConnection(cnxURL);
    Statement stmt = conn.createStatement( );
    ResultSet rs = stmt.executeQuery( xSQL );
    rowset = new CachedRowSetImpl();
    rowset.populate(rs);
    rs.close( );
    stmt.close( );
    conn.close();
    return rowset;
    May be, I need to insert every row on the CachedRowSet and specify the format with SimpleDateFormat, instead of using populate(), but, is there some other solution?

    USman,
        Have you tried converting the date to your mm/dd/yyyy format before it is
    sent back to the screen?
    HTML:
    <htmlb:inputField id       = "startDate"
                type           = "date"
                required       = "false"
                size           = "7"
                maxlength      = "10"
                firstDayOfWeek = "0"
                showHelp       = "X"
                value          = "<%= model-sdate %>" />
    DO_HANDLE_EVENT:
    inputfield ?= CL_HTMLB_MANAGER=>GET_DATA(
            request = runtime->server->request
            name    = 'inputfield'
            id      = 'startDate' ).
        IF inputfield->value IS NOT INITIAL.
          call method model->convert_to_sap_date
            EXPORTING
              in_date  = inputfield->value
            IMPORTING
              out_date = model->sdate.
            IF model->sdate IS INITIAL.
               me->messages->add_message(
                   condition = 'start'
                   message   = 'Start Date is invalid'
                   severity  = me->messages->CO_SEVERITY_ERROR ).
            ENDIF.
        ELSE.
          me->messages->add_message(
               condition = 'start'
               message   = 'Start Date is required'
               severity  = me->messages->CO_SEVERITY_ERROR ).
        ENDIF.
    method CONVERT_TO_SAP_DATE .
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
        EXPORTING
          DATE_EXTERNAL            = in_date
        IMPORTING
          DATE_INTERNAL            = out_date
        EXCEPTIONS
          DATE_EXTERNAL_IS_INVALID = 1
          OTHERS                   = 2.
    endmethod.

  • How to get the HTML data formatted display using the Rrt template

    hi,
    I have a table which has data with html tags in it.
    eg as shown below.
    sample text is as follows:
    <BR>
    <b>MY TEST HERE HAS SOME BOLD TEXT IN IT. THIS WHOLE LINE SHOULD BE BOLD</b><br>and the rest of the text will not be bold.
    <BR><br>
    now I want to be able to display this text with the proper format using BI publisher / rt template.
    my report shows the tags as is instead of being formatted.
    please let me know how i can fix this
    Thanks
    knut

    http://blogs.oracle.com/xmlpublisher/2007/01/02.

  • How to check the processed data for archieved messages in sap pi

    Dear all,
    1. which tables in sap pi stores the data processed in PI
    2. where will we find the archived messages (DATA but not LOGS)
    3. As table size increases rapidl, how to schedule a background job to delete the table entries which were older than 30 days
    Regards
    Sushant

    Dear Sushanth,
    Welcome to scn,
    For all your query, check "SARA" tcode for answer. In standard, We have pre defined archiving objects (Usually names starts inital 2 letters of module and main table or process like PR_Order).
    There are different tabs available (check screen below) in SARA, Explore each for more information.
    For tables/object identification - use "Database tables" Tab (tcode DB15).
    For Archived data, check "Spool" (green icon beside logs)
    There is option to schedule tasks in Preproc, Write and Delete tabs.
    Hope it helps.
    reg,
    Bhg

  • How to change calendar date format

    Hi All,
    I want to change the calendar date format to YYYY-MM-DD . For that i did the changes in localedefinitions.xml file but the date format i am getting is YYYY-M-D (if the month and date is single digit no else i am getting YYYY-MM-DD).
    Example - 2010-9-1
    we need - 2010-09-01
    Which file we need to modify to get the date alway in YYYY-MM-DD format.
    Thanks..

    hi,
    How about this?
    http://108obiee.blogspot.com/2009/04/changing-date-format-mask-in-javascript.html
    or
    http://obieetalk.com/how-change-date-format-mask-date-dashboard-prompts-drop-down-list-and-calendar
    thanks,
    Saichand.v

  • To change the default date format of OID

    Hello Gurus,
    Any idea on how to change the default date format of OID?
    The default date format of OID is something like "yyyy-mm-dd hh:mm:ss .0-0700" I want to change it to "yyyymmddhhmmss.0-0800".
    Is there any system property to do the same.
    I have provisioned users from OIM to OID.
    Any ideas/clues/hints on this.
    TIA,
    - oidm.

    nobody? ?

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

Maybe you are looking for

  • Synching a second iPhone to the same iTunes library.

    My wife and I have just got iPhones. I have an Apple ID but my wife does not. In the past we have synced the family iPad, iPod Touch and Nano to the iTunes library on our iMac. Music and Apps were shared across these devices without any problems. I'v

  • WCS & AP: AP name keeps resetting to mac

    Hi,   I just installed an AP in WCS. When I goto the properties of that AP, i am able to change the name just fine but 2-3 minutes later the name resets back to the mac address of the AP. I tried changing the name thru WCS and the Controller. Any ide

  • HOw to reset the buffers

    Hi Firends When i am in T-code ST02 all buffers and swap space is overflow how to reset the buffers without restart the instance Regards Vishal

  • HT1848 Retrieving a purchase that was made two years ago from a device that was lost

    When I look at the purchases I've made from my account, there is the one that I made back in 2010. It was on an ipod that is now lost. I have a new ipod and I would like to retrieve that purchase but when I go to itunes and check my purchases, its em

  • Safari keeps crashing after a few minutes of use

    Safair keeps crashing after a few minutes of use.  it's crashed 3 times as i type this in. Process:         WebProcess [2689] Path:            /System/Library/StagedFrameworks/Safari/WebKit2.framework/WebProcess.app/Conten ts/MacOS/WebProcess Identif