Obiee Date converting to DD-MMM-YY (19-Mar-13)

Hi All,
I have a requirement where i need to display the date in dashboard in this format DD-MMM-YY (19-Mar-13).
The default format for the column is MM/dd/yyyy.
I need to change using or write a SQL in prompts, as even though i change in column properties it won't chage is dashboard.
Please let me know, your input. we have 11.1.5 version.
Thanks

Sorry for confusing you guys..
I need change the format when user select from the prompt list it should change to that format.. And i dont have RPD access, when i change the format in column properties the report is showing the format which i want but in promt its not.
In the prompt the view is calendar which has date/time.. i used cast to just display date but i want it to display in DD-MMM-YY format.

Similar Messages

  • Sony Image Data Converter no longer opens RAW files

    After upgrading to Snow Leopard Sony Image Data Converter (ver 3.1) cannot open my RAW files. It sees the files but claims they are 0x0 pixels in size. It worked fine with Leopard 10.5.8.

    Image Data Converter v2.2.02 also fails to open any files but was OK in 10.5.8. Image Data Lightbox v1.0.02 does run OK, opens a directory of files fine, and converts them. The app crashes on exit every time however!
    Adobe Camera RAW and Adobe Elements v6 all work perfectly well. But I have never been able to see ARW images in Adobe Bridge!

  • Data convertion while exporting data into flat files using export wizard in ssis

    Hi ,
    while exporting data to flat file through export wizard the source table is having NVARCHAR types.
    could you please help me on how to do the data convertion while using the export wizard?
    Thanks.

    Hi Avs sai,
    By default, the columns in the destination flat file will be non-Unicode columns, e.g. the data type of the columns will be DT_STR. If you want to keep the original DT_WSTR data type of the input column when outputting to the destination file, you can check
    the Unicode option on the “Choose a Destination” page of the SQL Server Import and Export Wizard. Then, on the “Configure Flat File Destination” page, you can click the Edit Mappings…“ button to check the data types. Please see the screenshot:
    Regards,
    Mike Yin
    TechNet Community Support

  • Problem in date converting into dbFormat()

    Respected Experts,
    I am get the current date into String vaiable and from this string variable i want to convert into dateformat.
    For converting to date format i write the .java file. It converts date correctly into format "dd/mm/yyyy" but i want date format into "dd/mm/yyyy HH:MM.pm/am", so what change should i do in my following progaram.
    import java.text.SimpleDateFormat;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class UtilityFunction
         public static String toUserFormatDate(Date dt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         String str=sdf.format(dt);
         return str;
         public static java.sql.Date toDbFormatDate(String sdt)throws ParseException
         SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy");
         Date d=sdf.parse(sdt);
         SimpleDateFormat nsdf=new SimpleDateFormat("dd-MM-yyyy");
         String str=nsdf.format(d);
         Date nd=nsdf.parse(str);
         java.sql.Date rdate= new java.sql.Date(nd.getTime());
         return rdate;
         public static void main(String args[])throws ParseException
              SimpleDateFormat df=new SimpleDateFormat("dd-MM-yyyy");
              Date d2 =df.parse("08-09-1984");
              System.out.println("Date converted to User interface form");
              System.out.println("Database Date"+"08-09-1984");
              String p=toUserFormatDate(d2);
              System.out.println("Converted date"+p);
              java.sql.Date r=toDbFormatDate("12/12/2009");
              System.out.println("Date converted to database form");
              System.out.println("User Interface Date"+"12/12/2009");
              System.out.println("Converted date"+r);
    }

    After 22 posts on the forums, I'd have expected you to have learnt how to use the code tags by now (click on 'CODE' when posting)
    And while you get points for posting an SSCCE, you've left too much fluff in there. I don't know what method you want to discuss.
    And if you've reached this far with the SimpleDateFormat, what kept you from reading the rest of patterns available? It's all the same thing, you just needed to make it dd/MM/yyyy hh:mm a
    Do note that with your code, you're creating a date from a string that's missing the time, so you'll only get 12:00 AM all the time, for the above pattern. And also, you'd be using hh and not HH since putting AM/PM with 24 hour clock time is plain dumb.

  • Oracle OLAP as OBIEE Data Source

    I've got a couple of questions regarding the use of Oracle OLAP (Analytic Workspace/Cube) as an OBIEE data source.
    First: As a general rule when creating a dimension, we create a total roll-up for the dimension i.e. "Total Product", "Total Geog", "Total Customer" etc... Generally, I don't create a total roll-up for time dimensions. When importing metadata from OLAP to OBIEE, OBIEE creates a "Total" level for all dimensions. Now, I understand why OBIEE does that; to support queries that might exclude one or more dimensions. My question is: what is the best method/procedure to deal with the extra "Total" level?
    Second: I would appreciate it if someone could explain this error for me: [nQSError: 59137] Filter level YEAR is below the projected level Total on dimension CMP_TIME while an externally aggregated measure is present. (HY000). I understand the words, but have no clue what OBIEE is trying to tell me. This error pops up constantly and I see no rhyme or reason that would cause it. the specific case above occurred when I clicked on the sort icon for a measure included in a report.
    Thanks,

    Mark,
    Thanks for the reply. However, I'm not sure I made myself clear. I have created a "Product" dimension in AWM (Analytic Workspace Manager) in the following structure: Product -> Product Line -> Total Product. Withing the context this hierarchy, "Total Product" is the "Grand Total" Level. When this data is imported into OBIEE using "Oracle OLAP" as a data source, the Product hierarchy is created in the Physical Layer as an "Oracle OLAP Dimension". In the BMM Layer, the hierarchy is structured as: Product -> Product Line -> Total Product -> Total. There are now two "Total" Levels. Naturally only one, the OBIEE generated Total, is defined as "Grand Total". The only child of the Total level is Total Product. I have two hierarchy levels that are the same. So, do we need both? should we keep both? Should a dimension defined within AWM for use in OBIEE NOT include a total level? It's not really a problem, it just doesn't seem to make any sense to have TWO total levels within a hierarchy.
    On the second issue, I wish I could provide some detail, but I'm really not sure how I'd do that. That's why I asked for the meaning of the error. What is OBIEE telling me that I'm doing wrong. All I really did was import the metadata, drag it to the BMM Layer, deleted some of the hierarchy level keys, renamed some columns and dragged the stuff over to the Presentation Layer. So, it's pretty much drag-and-drop.
    Another example of the error: We have a Category Dimension (Sub Category -> Category -> Category Group -> Model -> All Categories -> Total) and I want to see the top 10 values of a measure by Category by Model. In an Analysis, adding the Model column works fine, just not the best visualization. Move the Model column to "Sections" and all works; move the Model column to Pivot Table Prompts and it errors. Obviously, I'm asking OBIEE to do something it doesn't want to do, so I'm looking for the root cause of the error.
    Thanks,

  • Gregorian-Hijri Dates Converter

    Hello Experts;
    I am looking for ABAP Report/Function module for "Gregorian <=> Hijri Dates Converter".
    Any assistance in this regards would be highly appriciated and points will be rewarded.
    Looking forward for your usual prompt and professional advice...
    Best Regards,
    Aslam
    You may ask... What is Hijri Calender?
    <a href="http://en.wikipedia.org/wiki/Hijri">en.wikipedia.org/wiki/Hijri</a>
    The Islamic calendar or Muslim calendar (also called "Hijri calendar", Arabic) is the calendar used to date events in many predominantly Muslim countries, and used by Muslims everywhere to determine the proper day on which to celebrate Islamic holy days. It is a lunar calendar having 12 lunar months in a year of about 354 days. Because this lunar year is about 11 days shorter than the solar year, Islamic holy days, although celebrated on fixed dates in their own calendar, usually shift 11 days earlier each successive solar year, such as a year of the Gregorian calendar. Islamic years are also called Hijra years because the first year was the year during which the Hijra occurred— Muhammad's emigration from Mecca to Medina. Thus each numbered year is designated either H or AH, the latter being the initials of the Latin anno Hegirae (in the year of the Hijra).

    Hi,
            use the below sub-routines in ABAP to convert Gregorian to Hijri dates and vice versa
    DATA: WF_RESULT1 TYPE I,
          WF_RESULT2 TYPE C,
          WF_DATE1   TYPE SY-DATUM,
          WF_DATE2   TYPE SY-DATUM.
    *WF_DATE1 = '14271123'.
    WF_DATE1 = SY-DATUM.
    PERFORM F_GREGORIANTOHIJRA1 USING    WF_DATE1
                          CHANGING WF_DATE2.
    WRITE:/ WF_DATE1,WF_DATE2.
    PERFORM F_HIJRATOGREGORIAN1 USING    WF_DATE2
                               CHANGING WF_DATE1.
    WRITE:/ WF_DATE1,WF_DATE2.
    *&      Form  F_GREGORIANTOHIJRA1
          text
         -->P_GREG_DATEtext
         -->P_HIJRA_DATtext
    FORM F_GREGORIANTOHIJRA1 USING  P_GREG_DATE
                                  CHANGING P_HIJRA_DATE.
      DATA: LOC_MM(2) TYPE N,
            LOC_DD(2) TYPE N,
            LOC_YY(4) TYPE N.
      DATA: LOC_HIJ_MM(2) TYPE N,
            LOC_HIJ_DD(2) TYPE N,
            LOC_HIJ_YY(4) TYPE N.
      DATA: LOC_JD TYPE P DECIMALS 2,
            LOC_LL TYPE P DECIMALS 2,
            LOC_LN TYPE P DECIMALS 2,
            LOC_LJ TYPE P DECIMALS 2.
      LOC_YY = P_GREG_DATE+0(4).
      LOC_MM = P_GREG_DATE+4(2).
      LOC_DD = P_GREG_DATE+6(2).
      IF ( LOC_YY > 1582 ) OR
         ( LOC_YY = 1582 AND LOC_MM > 10 ) OR
         ( LOC_YY = 1582 AND LOC_MM = 10 AND LOC_DD > 14 ).
        LOC_JD = TRUNC( ( 1461 * ( LOC_YY + 4800 + TRUNC( ( LOC_MM - 14 ) / 12 ) ) ) / 4 ) +
                 TRUNC( ( 367 * ( LOC_MM - 2 - 12 * ( TRUNC( (  LOC_MM - 14 ) / 12 ) ) ) ) / 12 ) -
                 TRUNC( ( 3 * ( TRUNC( ( LOC_YY + 4900 + TRUNC( ( LOC_MM - 14 ) / 12 ) ) / 100 ) ) ) / 4 ) + LOC_DD - 32075.
      ELSE.
        LOC_JD = 367 * LOC_YY - TRUNC( 7 * ( LOC_YY + 5001 + TRUNC( ( LOC_MM - 9 ) / 7 ) ) ) / 4 +
                 TRUNC( ( 275 * LOC_MM ) / 9 ) + LOC_DD + 1729777.
      ENDIF.
      LOC_LL = LOC_JD - 1948440 + 10632.
      LOC_LN = TRUNC( ( LOC_LL - 1 ) / 10631 ).
      LOC_LL = LOC_LL - 10631 * LOC_LN + 354.
      LOC_LJ = ( TRUNC( ( 10985 - LOC_LL ) / 5316 ) ) * ( TRUNC( ( 50 * LOC_LL ) / 17719 ) ) +
               ( TRUNC( LOC_LL / 5670 ) ) * ( TRUNC( ( 43 * LOC_LL ) / 15238 ) ).
      LOC_LL = LOC_LL - ( TRUNC( ( 30 - LOC_LJ ) / 15 ) ) * ( TRUNC( ( 17719 * LOC_LJ ) / 50 ) ) -
               ( TRUNC( LOC_LJ / 16 ) ) * ( TRUNC( ( 15238 * LOC_LJ ) / 43 ) ) + 29.
      LOC_HIJ_MM = TRUNC( ( 24 * LOC_LL ) / 709 ).
      LOC_HIJ_DD = LOC_LL - TRUNC( ( 709 * LOC_HIJ_MM ) / 24 ).
      LOC_HIJ_YY = 30 * LOC_LN + LOC_LJ - 30 .
      CONCATENATE LOC_HIJ_YY LOC_HIJ_MM LOC_HIJ_DD
      INTO        P_HIJRA_DATE.
    ENDFORM.                    "F_HIJRATOGREGORIAN1
    *&      Form  F_HIJRATOGREGORIAN1
          text
         -->P_HIJRA_DATtext
         -->P_GREG_DATEtext
    FORM F_HIJRATOGREGORIAN1 USING  P_HIJRA_DATE
                                  CHANGING P_GREG_DATE.
      DATA: LOC_MM(2) TYPE N,
            LOC_DD(2) TYPE N,
            LOC_YY(4) TYPE N.
      DATA: LOC_HIJ_MM TYPE I,
            LOC_HIJ_DD TYPE I,
            LOC_HIJ_YY TYPE I.
      DATA: LOC_HIJ_MM1(2) TYPE N,
            LOC_HIJ_DD1(2) TYPE N,
            LOC_HIJ_YY1(4) TYPE N.
      DATA: LOC_JD TYPE P DECIMALS 2,
            LOC_LL TYPE P DECIMALS 2,
            LOC_LN TYPE P DECIMALS 2,
            LOC_LK TYPE P DECIMALS 2,
            LOC_LI TYPE P DECIMALS 2,
            LOC_LJ TYPE P DECIMALS 2.
      LOC_YY = P_HIJRA_DATE+0(4).
      LOC_MM = P_HIJRA_DATE+4(2).
      LOC_DD = P_HIJRA_DATE+6(2).
      LOC_JD = ( ( 11 * LOC_YY + 3 ) / 30 ) +
               354 * LOC_YY + 30 * LOC_MM -
               ( ( LOC_MM - 1 ) / 2 ) + LOC_DD + 1948440 - 385 .
      IF LOC_JD >  2299160.
        LOC_LL = LOC_JD + 68569.
        LOC_LN = TRUNC( ( 4 * LOC_LL ) / 146097 ).
        LOC_LL = ( LOC_LL - TRUNC( ( 146097 * LOC_LN + 3 ) / 4 ) ).
        LOC_LI = TRUNC( ( 4000 * ( LOC_LL + 1 ) ) / 1461001 ).
        LOC_LL = ( LOC_LL - TRUNC( ( 1461 * LOC_LI ) / 4 ) + 31 ).
        LOC_LJ = TRUNC( ( 80 * LOC_LL ) / 2447 ).
        LOC_HIJ_DD = LOC_LL - TRUNC( ( 2447 * LOC_LJ ) / 80 ).
        LOC_LL     = TRUNC( LOC_LJ / 11 ).
        LOC_HIJ_MM = LOC_LJ + 2 - ( 12 * LOC_LL ).
        LOC_HIJ_YY = 100 * ( LOC_LN - 49 ) + LOC_LI + LOC_LL.
      ELSE.
        LOC_LJ = LOC_JD + 1402.
        LOC_LK = TRUNC( ( LOC_LJ - 1 ) / 1461 ).
        LOC_LL = LOC_LJ - 1461 * LOC_LK.
        LOC_LN = TRUNC( ( LOC_LL - 1 ) / 365 ) - TRUNC( LOC_LL / 1461 ).
        LOC_LI = LOC_LL - 365 * LOC_LN + 30.
        LOC_LJ = TRUNC( ( 80 * LOC_LI ) / 2447 ).
        LOC_HIJ_DD = LOC_LI - TRUNC( ( 2447 * LOC_LJ ) / 80 ).
        LOC_LI     = TRUNC( LOC_LJ / 11 ).
        LOC_HIJ_MM = LOC_LJ + 2 - ( 12 * LOC_LI ).
        LOC_HIJ_YY = 4 * LOC_LK + LOC_LN + LOC_LI - 4716.
      ENDIF.
        LOC_HIJ_MM1 = LOC_HIJ_MM.
        LOC_HIJ_DD1 = LOC_HIJ_DD.
        LOC_HIJ_YY1 = LOC_HIJ_YY.
        CONCATENATE LOC_HIJ_YY1 LOC_HIJ_MM1 LOC_HIJ_DD1
        INTO        P_GREG_DATE.
      ENDFORM.                    "F_HIJRATOGREGORIAN1

  • PL/SQL Character to date convertion issue

    Dear all,
    I encounter an issue with character to date convertions in PL/SQL.
    The following is a short description:
    I use an Oracle DBMS 8i and the problem is a wrong insertion of a date value to a column table.
    The date value is retrieved from a table and is type of VARCHAR2(240). Then a convertion to the DATE type takes place and this value (date) is inserted to another table column of type DATE.
    For example if the date retrieved as VARCHAR2 is '21/05/2003' the value inserted is '21/5/0003'.
    The convertion is made by the following portion of code:
    dateVariable Date := NULL:
    dateStringVariable is retrieved from the db and is type of VARCHAR2(240)
    DATE_FORMAT is a string retireved from the db with value equals to 'DD/MM/YYYY HH24:MI:SS'
    dateVariable := TO_DATE(dateStringVariable, DATE_FORMAT);
    Then the dateVariable is inserted to a recordSet which in turn is the one inserted to the db.
    My guess is that the problem is during the char to date convertion.
    I wonder if anyone knows what produces this error.
    Any suggestion is welcome.
    With regards

    SQL> desc t
    Name                                      Null?    Type
    DATE#                                              DATE
    SQL> alter session set nls_date_format = 'DD-MON-RR';
    Session altered.
    SQL> select * from t;
    no rows selected
    SQL> insert into t values(to_date('21/05/2003','DD/MM/YYYY'));
    1 row created.Now Oracle keeps correct date - 21th of May 2003.
    How you display it depends on your NLS_DATE_FORMAT settings:
    SQL> select * from t;
    DATE#
    21-MAY-03
    SQL> alter session set nls_date_format = 'MM/DD/YYYY';
    Session altered.
    SQL> select * from t;
    DATE#
    05/21/2003So now try to do
    SELECT to_char(<<your new date column>>,'DD/MM/YYYY') from <<your table>>
    to be sure your date is kept right.
    Rgds.

  • Disable default message for date converter

    Hi,
    How can I disable the default message on tab for date converter.
    Thanks

    Use message bundles.
    http://oracamp.com/how-extend-default-adf-faces-component-message-bundle
    http://oracamp.com/context-sensitive-resource-bundle-entries-javaserver-faces-applications-going-beyond-plain-language-
    Customzing ADF Faces Convert Number Detail Error Message from a Message Bundle
    http://blogs.oracle.com/smuenchadf/examples/

  • Since installation of Mountain Lion the latest version of sony Image Data Converter doesn't work anymore. How can I tackle this problem?

    Since installation of Mountain Lion (10.8.2) the latest version of Sony Image Data Converter (Ver. 4.6) doesn't work anymore. How can I solve this problem?

    HI,
    I have seen this with AIM Logins that use the SSL Server and not the original server that was non SSL
    Since iChat 6 the server name has also changed as has the Login port (Although we were suggesting using the port 443).
    The AIM SSL server "Falls Over" more frequently than the other server.
    Also iChat/Messages reconnects automatically to the NON SSL server but not to the SSL one (It is a security risk)
    You had to manually Log out by Untick "Enable this Account" then Log back in again.
    I have not seen this happen in Jabber accounts but I don't use my computer the same way you  do.
    Jabber Servers tend to either use SSL or Not and can rarely login if you change to not using SLL.
    It also seems a bit strange that Disabling the account, as you phrase it, and re-enabling does not work.
    For Googletalk Logins try logging out then changing the port to 443 (Googletalk allows this port as well as 5223)
    Also check the Keychain (Applications/Utilities > Keychain Access)  and see if there is an issue with any Gmail or Googletalk certificate.
    10:35 PM      Wednesday; November 14, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Converting Java.util date to XML date in format YYYY-MMM-dd

    I'm using below code to convert java.util.date to XML date
    public static XMLGregorianCalendar toXMLDate(Date dte) {
       try {
       // this may throw DatatypeConfigurationException
       DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
       GregorianCalendar calendar = new GregorianCalendar();
       // reset all fields
      calendar.clear();
       Calendar parsedCalendar = Calendar.getInstance();
      parsedCalendar.setTime(dte);
      calendar.set( parsedCalendar.get(Calendar.YEAR ),
      parsedCalendar.get(Calendar.MONTH),
      parsedCalendar.get(Calendar.DATE ));
       XMLGregorianCalendar xmlCalendar = datatypeFactory.newXMLGregorianCalendar( calendar );
      xmlCalendar.setTimezone( DatatypeConstants.FIELD_UNDEFINED );
      xmlCalendar.setFractionalSecond( null );
       return xmlCalendar;
    I need to get the date in the format YYYY-MMM-dd, but it returns in a format YYYY-MM-dd. Can anyone tell me how can i change the format? Thanks

    >
    The snippet of ApplicationClient where the assignment took place and the syntax occurred were:
    1. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
    2. DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
    3. Date date = new Date();
    4. CustomerDetail customerDetail = new CustomerDetail();
    5. customerDetail.setCollectionDate(dateFormat.format(date)); //got the above syntax error
    6. customerDetail.setCollectionTime(timeFormat.format(date)); //got the above syntax error
    .....I am running JDK 1.6.0_10, Glassfish v2r2, MySQL 5.0, Netbeans 6.1 on Windows XP platform.The format method returns a String not a Date. Why not just store the Date as is without formatting, and format it when you want to retrieve it from the DB and display it?
    m

  • How to convert String (dd-MMM-yyyy) to oracle.jbo.domain.Date

    Hi
    Could you please tell how do I convert String of date in format dd-MM-yyyy to ADF date? Please show me some sample.
    Thanks

    http://javaalmanac.com/egs/java.text/FormatDateDef.html
    Once you have a java.util.Date you can convert it to oracle.jbo.domain.Date. (see http://www.fifkredit.com/bc4jdoc/rt/oracle/jbo/domain/Date.html)

  • Problem with date convert ion

    Hi,
    I want to convert the following string in to date.I am using the following code .But I am getting ParseException.
         String utc="Tue, 13 Jan 2009 12:56:34 UTC ";
         java.text.SimpleDateFormat simpleDF = new java.text.SimpleDateFormat("ddd, dd MMM yyyy HH:mm:ss  ");Any ideas friends?
    Regards
    kondal

    I got the solution
         java.text.SimpleDateFormat simpleDF = new java.text.SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z");

  • Date display in dd-mmm-yyyy format on opening a .jsp file as .xls

    Hi,
    I am pretty new to Java and JSP, I have a problem,
    There's an application in which the contents of a .jsp are to be displayed in excel format.
    All the data are displayed in correct format except the dates.
    The dates that are in the dd-MMM-yyyy format in the .jsp's are displayed as dd-mmm-yy in the .xls file.
    How to solve this?
    Thanks in Advance!

    Maybe you need to configure that "application"? Or if you actually have access to the source code, then just take a look in it.
    Without any more details about the "application" we can't help you any much further.
    Generally, when you want to convert a Date or Calendar object to a human readable String, the SimpleDateFormat [1] is been used.
    [1] http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html

  • Date convert Function module

    Hello,
    Is there any function module thru which i can convert SY-DATUM to DD-MMM-YYYY (13-Apr-2007) format.
    Appreciate any quick replies.
    Message was edited by:
            Salahuddin Syed

    HI,
    Welcome to SDN!!!!!!!
    Check this..
    <b>
    DATA: V_INPUT(8) VALUE '20112006'.
    DATA: V_CHAR(25).
    data: date type sydatum.
    DATA: MONTH_NAMES LIKE T247.
    SELECT SINGLE * FROM T247
    INTO MONTH_NAMES
    WHERE SPRAS = SY-LANGU
    AND MNR = V_INPUT+2(2).
    CONCATENATE MONTH_NAMES-KTX V_INPUT(2) V_INPUT+4(4)
    INTO V_CHAR SEPARATED BY SPACE.
    write: / V_CHAR.</b>
    or
    Please check this FM HR_IN_GET_DATE_COMPONENTS.
    <b>DATA: L_DAY(2)   TYPE C,
          L_MONTH(2) TYPE C,
          L_YEAR(4)  TYPE C,
          L_LTEXT    TYPE T247-LTX.
    DATA: L_DATE TYPE STRING.
    CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
      EXPORTING
        IDATE                         = SY-DATUM
      IMPORTING
        DAY                           = L_DAY
        MONTH                         = L_MONTH
        YEAR                          = L_YEAR
        LTEXT                         = L_LTEXT
      EXCEPTIONS
        INPUT_DATE_IS_INITIAL         = 1
        TEXT_FOR_MONTH_NOT_MAINTAINED = 2
        OTHERS                        = 3.
    CONCATENATE L_LTEXT ',' INTO L_DATE.
    CONCATENATE L_DATE L_DAY L_YEAR INTO L_DATE SEPARATED BY SPACE.
    WRITE: L_DATE.</b>
    Regards
    SAB

  • How to Push the into SAP ( XML data converted into IDOC )

    Hi
    i am getting XML file from Non SAP system.I need to push XML data into SAP on daily basis with out using XI as the middleware.
    I know if i get text file will use BDC's or LSMW. But i am getting data in XML format and then i need to converted into IDOC format and stored in to sap data base tables.
    Thanks for advance.
    srini

    Is the XML an IDOC-XML or custom XML that you need to post as an IDOC??
    If it is IDOC-XML you need to defined XMLFile port to process the IDOC-XML without any mapping.
    If it is a custom XML, parse the XML data into an internal table (as required) & continue with BDC or IDOC posting as you wish.
    Check for XML parsing programs..
    -Siva Maranani

Maybe you are looking for