Country specific date format

Hi,
   Please help me as i require to display dates are per the country , for eg if it is US the date should be dd/mm/yyyy else for other countries like india it should be dd.mm.yyyy .
Regards
Abhishek

I know this is an old thread, but thought I would add my on comments:
This code example shows how to create a country specific date format.
Also see table T005 and field DATFM / Domain DATFM
DATA: external_date  LIKE  rvdat-extdatum,
      country  LIKE  t005-land1,
      internal_date  LIKE  syst-datum,
      internal_period LIKE  tprg-prgrs .
      internal_date = sy-datum.
      internal_period = 1.
      country = 'DO'. "Dominican Republic
CALL FUNCTION 'PERIOD_AND_DATE_CONVERT_OUTPUT'
  EXPORTING
    country                  = country     " Enter Country Code Here
    internal_date            = internal_date
    internal_period          = internal_period   " Default this value to one
  LANGUAGE                 = SYST-LANGU
  I_PERIV                  = I_PERIV
  I_WERKS                  = I_WERKS
  I_MRPPP                  = I_MRPPP
  IMPORTING
    external_date            = external_date     " The date formated for the country will be in this field
  EXTERNAL_PERIOD          = EXTERNAL_PERIOD
  EXTERNAL_PRINTTEXT       = EXTERNAL_PRINTTEXT
EXCEPTIONS
  DATE_INVALID             = 1
  PERIODE_INVALID          = 2

Similar Messages

  • Check against country-specific edit format

    Hi All,
    Currently for VAT registration number, settings for VAT registration number using transaction code OY17 is as follows,
    Length: 9
    Checking rule : 9 i.e. Check against country-specific edit format
    Now the user wants to enter a registration number with a different format which SAP is not allowing to enter. The length of the number is 9. But it is still not accepting. Country is ES.
    Can anyone let me know the relevance of the checking rule 9 i.e. Check against country-specific edit format. How the system validates the VAT registration number.
    Please help.
    Thanks,
    Aman Goel

    Hi All,
    Does anyone has idea about this?
    Thanks,
    Aman

  • Country specific Date and Amount format

    Hi All,
            Is there any way we can change the date and amount format?
    Actually we are printing a Invoice smartform for US.
    Now i want to copy that smartform for European countries for minor changes in the layout. In the same way i have to change the date and amount format. Is there any way we can do with out hardcoding. Please help in this issue.
    Thanks in advance,
    Bhanu P R Gattu.

    We have the same problem. Our WDA is running under a service user which has the US date format. Even if we do
    SET COUNTRY 'DE'.
    It does not change the display format to DD.MM.YYYY but retains MM/DD/YYYY.

  • Smartform and date format

    if i need the change the date format according to country how can i do it
    ( i.e ) I am creating a smartform, the date format i use is normally dd/mm/yyyy
    if the same smartform is printed in some other country( using format yyyy/mm/dd or any format)
    i want my date format to change based on where it is printed.
    In SAPScripts there is a command SET COUNTRY.
    Can I use this command for my requirement. If so How?

    hi check this referred link and do the coding accordinly...please search before you post ..
    Country specific date format
    and try this C14N_COUNTRY_DATE_DECF_GET too
    Edited by: Venkat Appikonda on Jan 28, 2009 12:37 PM

  • How to pass date parameter in URL in system date format

    Hi All,
    I am working on a requirement where I need to pass the date parameter in URL. Where date format needs to be system default date format. How can we format date without providing specific date format.
    Also, I got some post which had below example. Can you let me know what this format does.
    '/analysis/report?queryGroupName=Custom-ProjectInfo&TimePeriodBeginning=', <%+%> FCI_CHARFMT(TIME_PERIOD_START_DATE),' <%+%>
    '&TimePeriodBeginning_format=17&link_crumb=true'
    Waiting for response.
    Thanks,
    Saloni

    Hi,
    If you're running this in SQL*Plus, you can use substitution variables.
    If you have a file called my_query.sql, like this
    select    A.agent_no,
              (a.first_name || A.agent_name)     as agent_Name,
              P.Policy_No,
              D.Driver_No,
              D.mvr_predict_score,
           D.mvr_received
    from        policy  P,
           agent   A,
           Driver  D
    where       D.request_mvr_hit   = 'M'
    AND       D.mvr_predict_Score > 540
    And       D.request_mvr          = 'D'
    AND        p.fullkey           = d.fullkey
    AND       p.agent_no          = a.agent_no
    AND       d.mvr_received     >= TO_DATE ('&1', 'DD-Mon-YYYY')          -- New
    AND       d.mvr_received     <  TO_DATE ('&2', 'DD-Mon-YYYY') + 1     -- New
    order by  a.agent_no,
                 CASE  a.producer_type
               when  'S'  then 1
               when  'C'  then 2
               when  'R'  then 3
           end
    ;Then you can run it from SQL*Plus by saying something like:
    @my_query  1-Jan-2009  31-Dec-2009&1 in the script will be replace by the 1st argument (1-Jan-2009) and &2 will be replaced by the 2nd argument (31-Dec-2009).
    Notice that the last condition adds 1 to the argument
    AND       d.mvr_received     <  TO_DATE ('&2', 'DD-Mon-YYYY') + 1     -- Newbut uses the < operator (not <=). The result is that if mvr_received is any time on the last day (e.g. 31-Dec-2009 11:59 pm) will be included.

  • Date format issues

    Hello,
    I have a problem when executing the following statement from vb.net application.
    update TEST_REC_2 set nk_rec1_rec2 = 506736003, jrnl_timestamp = '2007-06-01-14.54.32', jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser' where p_k = 506736002.
    The error I got is ORA-01861: literal does not match format string. I know the problem is with the date format in column jrnl_timestamp . But I cannot change the statement, its coming from the Message Queue.
    Is there any option to make this work??

    You have got 2 options :-
    1. Set NLS_DATE_FORMAT in the session and then update with your specific date format
    alter session set nls_date_format='YYYY-MM-DD-HH24.MI.SS';
    update TEST_REC_2
    set nk_rec1_rec2 = 506736003,
    jrnl_timestamp = '2007-06-01-14.54.32',
    jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser'
    where p_k = 506736002
    2. Modify the SQL to include "to_date"
    update TEST_REC_2
    set nk_rec1_rec2 = 506736003,
    jrnl_timestamp = to_date('2007-06-01-14.54.32','YYYY-MM-DD-HH24.MI.SS'),
    jrnl_gdg = null, jrnl_verb = null, jrnl_jsn = '2203384', jrnl_program_name = 'dstor001', jrnl_dbname = 'jeff', jrnl_user_id = 'ibmuser'
    where p_k = 506736002
    Choose the right approach based on what you can and what you can't.

  • Column in DATE format

    Hello Everybody
    I have a report did Apex, this report has a column which data type is DATE but by default the Apex put it in the format : DD-MM-YYYY HH:MI:SS
    But I only want that his column has the format DD/MM/YYYY
    I know that is posible convert this field using the function TO_CHAR(date, format) but in the report I want to sort this field considering that this filed is in date data type not in char.
    Also I know that I can use the function EXTRACT for concatening the day, month and year and after convert to date in the format 'dd/mm/yyyy'; but I don´t want to write many code.
    I don't want to do some like this:
    TO_DATE(
    EXTRACT( 'DAY' FROM DateFiled )||'/'|| EXTRACT( 'MONTH' FROM DateFiled )||'/'|| EXTRACT( 'YEAR' FROM DateFiled ), 'DD/MM/YYYY' )
    Do you know how to convert to this date format (DD/MM/YYYY) preserving the format?
    I expect your prompt reply.
    Any help will be very appreciated.
    Best Regards

    Hi Eric
    One of the really cool features of the later versions of APEX is the ability to set a default "Application Date Format".
    This is done in the Application xx>Shared Components>Definition then select the "Globalization" tab.
    You can select from a list of pre-defined date formats, or enter your own.
    My preference is "DD-Mon-YYYY" which is not in the list.
    Just leave your date fields as regular DATE type in the select (no formatting in the select).
    This Application Date Format is then used as the default for ALL dates for which you don't specifically set (another) date format
    This is also selecable in the Display options of a "Date Picker (Use Application Date Format)" LOV - for any date page items that you want to provide a date picker.
    This really simplifies the effort in getting a consistent look and feel - and keeping a constant standard throughout the application.
    The other benefit is that you can make a change in one place, and ALL the dates (without a specific date format specification) will change format - just like that.
    This is just one of the features that makes APEX the most productive - and cool - systems around.
    Enjoy!
    Mike

  • Insert record wizard date format

    Hi,
    How can i change the default insert from mm/dd/yyyy to uk format dd/mm/yyyy
    currently if i insert 08/05/2010 which is the 8th may 2010 in uk it will put it into database as 2010/08/05 which when i retrieve is the 5th august 2010 in uk.
    is there a config folder anywhere i can change this?
    many thanks

    thanks bregent.
    it is php/mysql
    not sure what that other reply is about after yours but thanks for your advice.
    is there no way in dreamweaver to change the preferences like in addt to a specific date format?
    thanks
    Date: Wed, 19 May 2010 12:25:47 -0600
    From: [email protected]
    To:
    Subject: Dreamweaver Application Development Insert record wizard date format
    You didn't mention what DBMS or scripting language you are using.
    The best way to get dates from a user is to supply 3 fields for input; day, month, year - then assemble them into the string format that the DBMS is expecting.
    >

  • Universe Internationalize - Date Format based on System Regional Setting.

    Hi,
    We have set of universe for our product. I have created Deski and webi reports with date objects using those universes. I ran those report in the Systems which are Austrialia,Canadian and US Locale Settings. Both Deski & Webi report displays the DATE in US format in all the Boxes eventhough regional settings are configured to Aus & Canada.
    Can you pls help me how to make the universe internationalised. Specifically Date Formats? Currently we are focusing only for English speaking countries.
    Thanks,
    Venkateswaran.P

    Hi,
    Have you configured the locale settings In Infoview under 'Preferences' correctly?
    Have a look at the following settings:
    - Preferred Viewing Locale
    - Make sure you check the box for 'Use my preferred locale to format the data'
    Let us know if this works for you
    Regards
    Rim

  • Authorization in BDC session (date format)

    Hi All,
      I have a very peculiar problem, When I am executing a Background job (XK15) sometimes the job is successful and sometimes it is failing. When I am checking the error (SM35)it is showing as Date format (MM/DD/YYYY). My data format is same as MM/DD/YYYY but observed that under authorization it is taking different users.Sometimes it is taking my user id and the jobs are successful.
    I feel that when it is taking different user ids for the sessions executed by me it is taking the date format of those user ids and I am getting the date format error.
    Formatting error in the field RV13A-DATAB;
    see next message     XK15     1     SAPMV13A     1806     2     E     0
    Enter date in the format ____/__/__
    Please let me know why it is taking different userid's and how to resolve this issue ?
    Early response is highly appreciated.
    Thanks
    Supriya

    Hi,
    Goto tableUSR01.
    Take field value 'DATFM' for every user.
    Depends on this use FM, 'CONVERSION_EXIT_PDATE_OUTPUT' to convert date.
    or do manual processing using concatenate statement to get user specific date format.
    If you struck up anywhere revert back,
    Thanks,
    Krishna.

  • I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I can think of two possible stumbling blocks:
    What are your 8.6 options for "byte order" and "prepend array or string size"?
    Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
    LabVIEW Champion . Do more with less code and in less time .

  • How to Change Date Format according to the Locale/Country of Portal User

    Hi,
    In a webdynpro applicaiton, how to chage the  Date Format according to the Locale/Country of Portal User.
    Consider for INDIA: mm/dd/yyyy
    Consider for UK: yyyy/mm/dd
    So when i select the date from the Date Picker[input ui element bound to date context variable], the date format should be displayed accroding the portal users country/locale.
    Creating a simple type for every date format in the dictionary would not be the right solution.
    Please help.
    Thanks,
    Regards,
    Aditya Metukul

    Hi Aditya,
    Check out the following post in SDN and refer the
    Bertram's reply on the same topic.
    date format
    Regards,
    Shubham

  • Date Format of Date Picker in Webdynpro to be Changed according to Country

    Hi,
    I want to change the Date Format of Date Picker in Webydnpro accoding  to the portal users country.
    As each and every country has its own date format, i can't create simple types of date formats in Data Dictionary and bind them dynamically.
    Even the webdynpro date picker doesn't change according to the portal users country/locale, I tested with different countries for a portal user by changing in portal user profile.
    Please help .
    Regards,
    Aditya Metukul

    JUST WE HAVE TO CHANGE THE LANGUAGE OF THE USER

  • How to get an international English date format if I'm in a country where the date format is something else?

    I'm physically in Malaysia and my iPad sets Malay as my default time format setting. How to get rid of the whole thing of using Malay as my date format and use English as default for everything including date and time ? Under setting> general > international, I have to choose something and English is not an option.

    You need to choose an English-speaking country - I have Settings > General > International > Region Format set to United Kingdom (as I'm in the UK), so the first day of the week is monday and times are of the format 01:23 etc (there also options for US, Canada, Australia etc)

  • Prblm in Date format when exported to excel

    Hi ,
    I had a problem when using the Export To Excel option from Portal. The data is getting fine populated in Excel but it's in General No Specific Format. But I wanted the data to be in its original format even when exported to Excel. Like...
    Country -
    Date Goods Delivered
    India----
    01.01.2001
    America----
    05.12.2004
    Singapore----
    12.04.2003
    Here the country should be of type TEXT FORMAT and Date Goods Delivered should be in DATE FORMAT(Here its visible as date but it's in General format)
    I am facing problem with date, it is displayed(01.04.2006) as shown above but it's in general format. I wanted it to be in date format at excel.
    I am in BW3.5 with portal version EP7.0
    Please suggest the solution and I had even gone through previous forum questions related to this but couldn't get.....the solution.
    points will be assigned...
    Regards,
    rudra.

    Hi,
    My end users requirement is to get all data in Standard format. We can't ask to select the date column and change the format in excel as there are more date fields(columns ).
    Using macro i had one problem,even though i am not sure..
    i can't enable the macro to get enabled in page load of export to excel as it is to be done at users end...
    If theres any possibilty of enabling....pls let me know
    Thanks for your valuable suggestions...
    Regards,
    rudra.

Maybe you are looking for

  • Error with FMLE

    Hi, here is one error with: and error is: on Win7. Happen during the time of streaming. Here is some more information after click on Retry: Problem signature:   Problem Event Name:    APPCRASH   Application Name:    FlashMediaLiveEncoder.exe   Applic

  • Reset the user and password in the config tool

    Dear All, how can I reset the user and password in the config tool ? Regards ertas

  • Exporting to excel UI restarting

    Hello am new to SAP and i was given a task same as this. I have changed the Macros settings, but the problem is everytime i have to refresh the browser to be able to export a large number of records from my worklist, without restarting the GUI it dis

  • How to compare two database objects?

    Hi, I need to compare two objects with embedded objects/collections in it to tell exact difference between the two. e.g., create type t1 as object (name varchar2(10), age number); create type t2 as table of t1; create type t3 as object (user t1, fami

  • Need sql to get count of workbooks written on top of seeded noetix views

    Hello, we have Apps mode end user layer which is created by NOETIX since we purchased NOETIX views and EUL. We are trying to figure out how many of our workbooks are written on top of seeded Noetix views (Folders in business areas of Noetix generated