SAP BI DATE FORMAT

Hello Experts,
I have made a flat file extractor .  Flat file is coming from Another third part database.
Date format in flat file is in form DD/MM/YYYY  .  but in BI we do not have date dormat DD/MM/YYYY.
My Question is how we can add this date format in BI.
I cannot change the flat file date format because this file comes daily and placed in AL11 automatically.
its also very difficult first downlaod file from AL11 change the datw format in another form  then load the file.
dates Format in SAP BI are available.
Thanks,
Mohit.

Hi,
You use routine to update DATE required format
Data: w_day(2) type n,
         w_month(2) type n,
         w_year(4) type n.
Clear: w_day,w_month, w_year.
w_day = DATE+0(2).
w_month = DATE+2(2).
w_year = DATE+4(4).
and then CONCATENATE required format.
Examples
1 CONCATENATE  w_month w_day w_year into REQ_DATE
2 CONCATENATE  w_Year w_day w_month into REQ_DATE
Write this routine in transformation for DATE infoobject.
Thank you,
Nanda

Similar Messages

  • Getting SAP user Date format

    Hi All,
    I have a webdynpro java application which i am using in ISA B2B. I need to show a date format of the backend user. Is there any way where i can fetch the SAP backend user date format in webdynpro java application using API. Kindly suggest me an idea on this?
    Thanks and Regards,
    Saravanan

    Hi Saravanan,
    You need to fetch data through RFC function module in webdynpro. You need costom build functiona module for user information.
    Refer to Linking [Remote Function Call to Web Dynpro - Model|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90]
    Regards
    Arun Jaiswal

  • URGENT !!!!   Problem with Date format MM/DD/YYYY in oracle database to BW

    Hi
    I am wondering if somebody can help me urgently.
    I have oracle database where date is of the format MM/DD/YYYY and I am loading data into BW. DATE data type
    Date in oracle database: 3/30/2007
    First when I used InfoObject ZDATE (with 0DATE) reference (DATS data type) data load failed saying that
    'Value '30-MAR-0 ' of characteristic 0DATE is not a number with 000008 spaces'
    Then I created ZDATE InfoObject as CHAR Type (Length 10) with PDATE Conversion Routine.
    when I created datasource using DB Connect and checked the contents using 'Display Table Contents' after creating data source the data field distorted as
    AR/-0/30-M
    After data load. when I checked PSA
    The Date records look same as AR/-0/30-M
    In cube the field appeared as  30-MAR-0  (last digit of year disappearing)
    In BEx report also it looks like 'AR/-0/30-M'
    Can somebody help me as quickly as possible.
    What should I do if i want to still use DATS data type for ZDATE?
    should I change date format in database if so to what?
    If I should use CHAR type with PDATE or any other routine can somebody give me the routine to have the date in the report exactly as it appears in database?
    I also tried changing date format in user profile...settings. But still its the same.
    Thanks in advance.

    Hello Snrella,
    You can solve this by converting the date format from oracle to the SAP internal date format  using an ABAP routine in the transfer rules.
    Assuming the oracle data field name is ZODATE then here's the ABAP you can use in the transfer rules. Create an ABAP routine transfer rule from ZODATE to your ZDATE infoobject, and then put this ABAP code there. (this code assumes that the format of the date from oracle is MM/DD/YYYY).
    concatenate tran_structure-/BIC/ZODATE+6(4) tran_structure-/BIC/ZODATE(2) tran_structure-/BIC/ZODATE+3(2) into result.
    Hope this helps.

  • Wrong date format in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi,
    Try debugging the FM and check at which point the wrong date is passed on to OBEG export parameter.
    There is a piece of code available in FM -
    obeg  = temp_buffer-begda.
    May be some problem can occur fetching from buffer.
    Harish

  • Error in date format returned in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi Viji and thanks for your answer!
    I checked checked user default settings and we have the same date format as anther user who is working ok.
    Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
    Any other idea on this?
    Thanks!

  • ESS MySAPERP 2004 - Date format

    Hi ,
    We did install ESS in North America, and the date format without changing anything is <b>MM/DD/YYY</b> in the "Personal Data" or "Travel and Expense"
    Installing Europe now , they need the date format to be <b>DD.MM.YYY</b>
    We did try the change the SAP user data format , but that did not work . Also did
    not find on the PORTAL user an option, to do that
    Any idea, on how the change the date format ( by user ), will be welcome .
    Regard's

    Hai..
    Try This..
    sapeasy access, system, user profile, owndata, defaults..
    manu

  • Date format in SAP Knowledge management

    Hi Friends,
    Is there an option to change the Date format in SAP Knowledge management. I want to change the date format from MM/DD/YY to DD/MM/YY for the created and modified date for a document in KM.
    Found below information in help.sap. I searched in KM configuration -> Global Service for the setting. But I am not sure how or where to cheange it.
    Date and Time Specification for Properties - Knowledge Management - SAP Library
    Can you any one help me with this.
    Netweaver version is 7.00 SP24.
    Thank you in advance.
    Thank you
    ~Kamesh~

    Hello Kamesh,
    if you look at the SAP Help link, you see that it is a part of the "Property Metadata Service" (the point one level up). There you see, where you can find the service itself in the portal and if you look at the "Related Areas" you should find "Property Metadata" (at least I do in my 7.31 portal ).
    From there the link you found yourself should guide you well to do the changes you wish.
    Regards,
    Steffi.

  • How to convert date format into sap standard format?

    Hi All,
    In SAPUI5 screen i have one simple form in form i have date field which is format  (MM/DD/YYYY). but i am getting POST error while inserting the data in to sap table.
    I want convert date format in sap format (YYYY/MM/DD).
    One more issue, when i am fetching the data from sap table,but  the date display with time and time zone.
    eg. Sat Aug 02 2014 05:30:00 GMT+0530 (India Standard Time)
    I want to display only date.
    Thanks,
    Prashant.

    Now i am using <DatePicker id="Emp_fsdate" displayFormat="yyyy-MM-dd"/>
    I checked in console, but date is display like mm/dd/yy
    In my controller.js file i have written code
    OData.request
               requestUri: "http:sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata", 
               method: "GET",
               headers:
               "X-Requested-With": "XMLHttpRequest",
               "Content-Type": "application/atom+xml",
               "DataServiceVersion": "2.0",       
               "X-CSRF-Token":"Fetch"
           function (data, response){
            var header_xcsrf_token = response.headers['x-csrf-token'];
                       OData.request
                            requestUri:
                             "http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata", 
                            method: "POST",
                            headers:
                          "X-Requested-With": "XMLHttpRequest",                     
                            "Content-Type": "application/atom+xml",
                            "DataServiceVersion": "2.0",
                            "Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
                            "X-CSRF-Token": header_xcsrf_token
                            data:
                                   Empid:Emp_id,
                                   Empname:Emp_name,
                                   Start_Date:Emp_sdate,
    //                              End_Date:Emp_edate,
                                   Status:Emp_status,
                                   City:Emp_city,
                                   Location:Emp_location,
    and in my CREATE_ENTITY method
    method ES_SODATA_CREATE_ENTITY.
         DATA: ls_request_input_data TYPE zcl_zservice_final_mpc=>ts_et_sodata,
             ls_userinfo TYPE zsodata.
       DATA ls_temp TYPE sy-datum.
    * Read Request Data
       io_data_provider->read_entry_data( IMPORTING es_data = ls_request_input_data ).
    * Fill workarea to be inserted
       ls_userinfo-Empid   = ls_request_input_data-Empid.
       ls_userinfo-Empname   = ls_request_input_data-Empname.
       ls_userinfo-Start_Date   = ls_request_input_data-Start_Date.
       ls_userinfo-End_Date   = ls_request_input_data-End_Date.
       ls_userinfo-Status   = ls_request_input_data-Status.
       ls_userinfo-City   = ls_request_input_data-City.
       ls_userinfo-Location   = ls_request_input_data-Location.
    * Insert Data in table ZUSERINFO
       INSERT zsodata FROM ls_userinfo.
       IF sy-subrc = 0.
         er_entity = ls_request_input_data. "Fill Exporting parameter ER_ENTITY
       ENDIF.
       endmethod.
    But still i am getting an error
    POST http://sap/opu/odata/sap/ZSERVICE_FINAL_SRV/es_sodata 500 (Internal Server Error)
    I am able to insert all field except date field. How to insert date field in sap table.

  • Working with SAP Data Format yyyy.mm.dd in data services

    Hi,
    I had 2 questions about date formats coming from SAP to DS .
    1) I am trying to convert date fieild from SAP that is formated to yyyy.mm.dd to mm/dd/yyyy but I am not having any luck .. I am using the to_date function when I run this below I get null values in my template table . I think it has to do with me not stating my input date format but cannot seem to get the correct syntax's any ideas ?
    2) Does Data Services recognize dates which are formatted as  yyyy.mm.dd ?? When I put  I added a column to a template table and added the sys date command it returned the sys date as yyyy.mm.dd BUT when I try a fiscal_day function (which should brings back the number of days between the input (my SAP source date ) and the sys date which are formatted the same (yyyy.mm.dd) I get a format error  (input parameter 2009.03.10 is not valid) .  any ideas ?
    Thanks for your time,
    Brett

    Hello Brett
    to_date convert STRING to date based on input format.
    As i understand your source data not in string format.Is this correct?
    Use combination to_char->to_date for your transformation
    Regards
    Kanstantsin Chernichenka

  • SAP data format

    Hi All,
    What is the standard data format in SAP?
    Is it in unicode, ascii, or binary?
    Can you also tell me the difference between the 3?
    More specifically, what is the data format for a document downloaded from SAP via GUI_DOWNLOAD?
    Thanks.

    Hi,
    I'd just like to say that FM GUI_DOWNLOAD can output file in many format.
    The output format is handled in FILETYPE parameter in the FM.
    By default, if the calling program doesn't pass any value to this FILETYPE parameter, the FM is producing output file in ASCII.
    FYI, these info can be found in the FM documentation.
    But for your convenience, hereby I attached the function module help, specific to this FILETYPE parameter:
    <<Removed by moderator>>
    Edited by: Matt on Feb 3, 2010 8:45 AM - please do not reproduce SAP Help.

  • Date Format in SAP chart customizing - Gantt

    Hello Everybody,
    I have problems with date format in Gantt chart coding in
    ABAP using xml concatenate,
    when i am customizing the xml from chart designer.
    I want Time(X) axis  in Days but its showing in quarters or weeks.
    I also tried with LineFormat but i could not get control over it.
    can anybody please help me!!!
    here is my code:
    xml = '<?xml version="1.0" encoding="utf-8" ?><SAPChartCustomizing version="2.0">'.
      CONCATENATE xml '<GlobalSettings><Dimension>PseudoThree</Dimension>' INTO xml.
      CONCATENATE xml '  <TransparentColor>None</TransparentColor>' INTO xml.
      CONCATENATE xml '  <ColorPalette>Tradeshow</ColorPalette>' INTO xml.
      CONCATENATE xml '  <ColorOrder>Default</ColorOrder>' INTO xml.
      CONCATENATE xml '<Defaults><ChartType>Gantt</ChartType></Defaults></GlobalSettings>' INTO xml.
    CONCATENATE xml '<Values><Series><LineType>Direct</LineType><LineType1>Year</LineType1>
    <LineType2>Month</LineType2><LineType3>Day</LineType3><LineWidth>2</LineWidth>
    <MarkerShape>None</MarkerShape></Series></Values></SAPChartCustomizing>'
    INTO xml.
    *SEND CUSTOMIZING TO CHART ENGINE:
      lo_chart->set_customizing( data = xml ).
    Thanks in advance
    Bobby

    Hi Vijay,
    It's for ABAP only could you please post the solution.
    here i would like to share how i have given my series values:
    xml = '<?xml version="1.0"?>'.
      CONCATENATE xml '<ChartData>' INTO xml.
      CONCATENATE xml ' <Categories>' INTO xml.
      CONCATENATE xml '   <Category>Mat 1</Category>' INTO xml.
      CONCATENATE xml '   <Category>Mat 2</Category>' INTO xml.
      CONCATENATE xml '   <Category>Mat 3</Category>' INTO xml.
      CONCATENATE xml ' </Categories>' INTO xml.
      CONCATENATE xml ' <Series label="Op10" Customizing="Op10">' INTO xml.
      CONCATENATE xml '   <Point><Value type="time">20010101</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010115</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010120</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010130</Value></Point>' INTO xml.
      CONCATENATE xml '   <Point><Value type="time">20010101</Value>' INTO xml.
      CONCATENATE xml '   <Value type="time">20010125</Value></Point>' INTO xml.
      CONCATENATE xml ' </Series>' INTO xml.
    Thanks again.
    Bobby

  • Urgent ......regarding date format in SAP Script

    In my MAIN WINDOW  I have date fields like Date of Manifacture, created date and Expiry date.
    So, currently  I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
    But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
    DEFINE &outdate& = &mchar-vfdat&
    SET &outdate& MASK = 'YYYY-MM-DD'.
    but still it is showing format YYYY-MM...
    Plz help me how to print my desired date format...
    I am waiting for ur reply...
    Regards,
    Kumar

    Hi Kishore kumar,
    What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
    i.e.
    /: SET DATE MASK = 'YYYY-MM-DD'
       &mchar-vfdat&
    /: SET DATE MASK = 'YYYY-MM'
    Regards,
    Sunil

  • Converting SAP Date format yyyyMMdd to MM/dd/yyyy

    What FM can be used to convert the date from SAP's date yyyyMMdd to MM/dd/yyyy?
    Moderator message: FAQ, please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 9, 2011 4:05 PM

    What FM can be used to convert the date from SAP's date yyyyMMdd to MM/dd/yyyy?
    Moderator message: FAQ, please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 9, 2011 4:05 PM

  • SAP Business Objects 4.1 - American Date Format Issue

    This issue is something that keeps arising, if your viewing a crystal report, or building a new Webi report in 4.1 and viewing it, the date format seems to come out as M/D/YYYY HH:MM:SS, this never happened in 4.0.
    I will give an example, today I updated a 4.0 to 4.1 using the update path in a development server, and updated to 4.1 SP03 which is the latest. When I decided to write a Web Intelligence Report or create a Crystal report and publish this, all the date formats came out in American date format, and not the standard English one DD/MM/YYYY HH:MM:SS anymore. However if I go to the Live server which I haven't yet updated and is still on 4.0 SP04 Patch 11 and perform exactly the same its in English format as it always was.
    Can someone please enlighten me to what has changed from 4.0 to 4.1 in terms of configuration regarding the date formats changing.
    My server regional settings are English, and using the default GMT date time, so is my machine. 4.0 works 4.1 doesn't work the same.
    I have tried changing the .prm files in the connectionserver\dataaccess folder as well, this doesn't seem to make a difference and also used LOV's in universe objects and when using these in prompts you get ameican format. I have also changed the preferences in the BI Launch Pad to view English locale and the GMT date time for Greenwich Mean Time. 
    Please can someone advise or suggest where I am going wrong here and how to solve this.
    Many Thanks

    Thanks for your quick response. I have done the check on the universe design tool. I have tried the options - Migration forced and set English (UK). I purged the LOVs and refreshed. No luck as yet. Checked the locale and seems to be fine. When i change the BI launchpad - Web Intelligence preferences to HTML, then the LOV displays correctly - dd/mm/yyyy. The behaviour only occurs when displaying LOV in Applet mode. Maybe will have to look at some Java settings. Thanks
    Added Update- I created a variable =GetPreferredViewingLocale() and tested in WEBI Report with a date object. When I use the BI launchpad Web intelligence Preference to HTML - it display EN_GB. When  I use the BI launchpad Web intelligence Preference to Applet - it display EN_US. It seems to be taking preferred viewing locale as US in applet mode is there a way to fix this please.
    Added Update - It was a bug on Infoview and has been resolved on SP4 . The ADAPT Ref is ADAPT01718291. Just finished testing on UAT, going Live next week with SP4. 

  • DATE FORMAT IN SAP

    HI TO ALL ,
    MY CLIENT IS AN US CLIENT AND WANT THE DEFAULT DATE AS
    APR,20,2007 .THAT IS THEY WANT FIRST INITIAL THREE CHARACTERS FROM MONTH AND THEN DATE AND THEN YEAR.
    I TRIED TO CHANGE THE USER SETTINGS BUT I AM ABLE TO GET ONLY
    04/20/2007. CAN YOU HELP ME OUT TO GET THIS DATE FORMAT.
    THANKS ,
    LEKHRAM

    Hi,
    Check these.
    Date = YYYYMMDD
    Concatenate date4(2) ‘ /’ date6(2) ‘/’ date(4) into Date2.
    or
    data : l_date(10) type c .
    concatenate sy-datum6(2) '/' sy-datum4(2) '/' sy-datum(4) into l_date.
    write : l_date.
    or
    data :l_date(10) type c
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
    DATE_INTERNAL = SY-DATUM
    IMPORTING
    DATE_EXTERNAL = l_date.
    this function module converts date from 20050601 to external format which is specified in user profile
    or
    PARAMETERS: P_DATE LIKE SY-DATUM.
    DATA: T_MONTHS LIKE STANDARD TABLE OF T247 WITH HEADER LINE.
    DATA: DATE LIKE AUSP-ATWRT.
    CALL FUNCTION 'MONTH_NAMES_GET'
    TABLES
    MONTH_NAMES = T_MONTHS.
    READ TABLE T_MONTHS WITH KEY MNR = P_DATE+4(2).
    DATE(2) = P_DATE+6(2).
    DATE+2(3) = T_MONTHS-KTX.
    DATE5(2) = P_DATE2(2).
    WRITE DATE.
    Regards,
    Laxmi

Maybe you are looking for

  • Purchase Order to Confirmation Link in ODS 0BBP_CON

    Hi, I am trying to get a link between confirmation and PO in ODS 0BBP_CON. I am extracting Confirmation data from EBP (Extended Classic) and corresponding data for PO from R3 through 2LIS_02_HDR, 2LIS_02_ITM, 2LIS_02_SCL. After loading data into 0BBP

  • How do I add multiple songs to the iPod library at the same time?

    Before the iTunes update, I was able to add multiple songs to the library. Now I must add one song at a time. How can I get enable my iTunes to allow me to "add file to library" with more than one song?

  • Itunes hangs on disconnect / reconnect of internet connection

    Quite often I do stream internet radio stations using Itunes. I am listening through my BeoCenter2. When I swich of the BeoCenter2, I often forget to stop the stream in Itunes. This would not a problem, but because my internet provider drops the conn

  • My serial number is not long enough?

    Hi, I recently bought Photoshop elements 12 and am trying to install it on to my Mac Book Pro. I bought the photoshop from a store, so I am trying to enter the serial number on the box when installing. The serial number given is 18 characters long, t

  • Android Browser Landscape View Media Queries in Dreamweaver CS5.5

    Hey Guys !!!!! I Have a Problem In regards to the media queries working on android browser. I Use Dreamweaver CS5.5. When I tested there was no change . When I tested in landscape view it takes the default web browser screen width it is not device sc