How to find out the formatt type of a date.

hello iam getting the date from some content server..then iam updating the date..the problem is before update i should know the date formatt of returned date from server so that i can set that formatt to the user entered date while updation..so how can i know the date formatt of given date..
regards,

object dat1 ="some value";
when i modify these date and submit back through
connector its checking for format..
bcos iam not sure what date formatt server have..
i want to know can we no from dat1 about the
format..whether this dat1 is in dd/MM/yyyy format are
MM/dd/yyyy format..So you have a String that reprents a date? Or do you have a Date? If the latter, then, like somebody already said, there is no format.
Assuming it's a String...
Are dd/MM/yyyy and MM/dd/yyyy the actual formats you'll get? Let me ask you this: If somebody showed you the string (on a piece of paper) "12/05/2005" how would you know if it was Dec. 5 or 12 May?
Answer: You wouldn't. You can't without some additional information.
And if you can't know, then neither can Java.

Similar Messages

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • How to find out the idoc type required for our requirement

    Hi,
         How to find out the list of available idoc type in SAP. It will be good if i get to know the table name where all the idoc type definitions are gets stored.
    Say i have some requirement and for that requirement how i can find the proper idoc type to be used. (assume functional consultant is not providing that information)
    Points will be given for the useful answers
    Thanks,
    Prasanna

    Hi prasanna,
                    we can get SAP idoc types in tcode we31.For every requirment there will be different message type.
    For example we want idoc type for account invoice receipt.
    First find out message type for that purpose which can be found in we81-ACC_INVOICE_RECEIPT.
    Get this message type and search in we82  where we can find message type and idoc type linkage.
    try this way.
    Reward if it is usful.
    Thanks,
    Srikanth.A

  • How to find out the parameter type of a parameterized object?

    Hi,
    I've got a list containing instances of a parameterized class. The parameters of the instances can be different. When using the instances, I need to know the types of the parameters. How can I find them out?
    Regards,
    Frank

    Look at the first item in the List and see what it is?
    I'm not trying to be funny. Generic information is compile time only, the types of the parameters are not generally available at run time.
    You can find out the bounds on the types, if any, but not the actual types.
    AndyT

  • How to find out the font type?

    Is it possible to find out the type of the used fonts(like Open type (or) true type) in illustrator cs3 file through programmatically. Kindly share with me the possibilities and solution.
    Thanks...

    You can't consistently, but a lot of files have identifying characteristics in the first few bytes that make it easier.
    There are utilities to do this, but I could have sworn that someone wrote a Java library to do it as well. As always, I suggest that you poke around http://jakarta.apache.org/commons/
    Or do a Google if Jakarta doesn't pan out.
    Message was edited by:
    paulcw

  • How to find out the object is available or not in BC

    Hi dear friends,
    Suppose I want to design/create a Cube / ODS, before going to create that object, how to find out the same type of Object is available or not in BC with the specification which I want
    Thanks in advance

    Hi Paul,
    at least you need to know the application you are talking about. Then you can goto that particular area and evaluate the content (cubes, infoobjects, infosources, datasources). It will surely give you an idea of the fulfilment of your requirements by the content.
    Siggi

  • How to find out portlet instance type without using PortletInstanceInternal

    Does anyone know how to find out the instance type of a portlet using the API? The instance type corresponds to INSTANCE_TYPE column in PF_PORTLET INSTANCE table.

    Does anyone know how to find out the instance type of a portlet using the API? The instance type corresponds to INSTANCE_TYPE column in PF_PORTLET INSTANCE table.

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 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.
    ENDFORM.                    " DISPLAY_DATA

  • How to find out the locale setting in a browser?

    In my Java web project, the multi-lingual issue on the JSP pages is handled by JSTL. It works fine so far for any input messages. However, some messages come from the container. It is needed to find out the browser's country and language settings inside of the container. My question is how to find out the settings?
    Thanks in advance.
    v.

    Hi, this I found on James' website--see http://www.rf.net/~james/perli18n.html#Q28
    Q28. Can web servers automatically detect the language of the browser and display the correct localized page?
    A28. Yes. HTTP/1.1 defines the details of how content negotiation works, including language content.
    WWW browsers send an Accept-Language request header specifying which languages are preferred for responses. This technique works fairly well, although some versions of Netscape Navigator send an improperly formatted request parameter. Also, switching language preferences in either Navigator or IE 4 doesn't always "take" without first deleting a language hint.
    Few sites do content-negotiation on language, and interestingly enough I do not know of any major portals doing this. One site that does is Sun's documentation library at SunDocs. Debian.org does a very nice job of using Apache content negotiation wih languages and also has some nice help info too on Setting the Default Language.
    Apache's Content Negotiation features will select the right page to return, whether HTML or image file. Annoyingly, the match logic is very literal, so a browser request for en-us will not match a server entry of en except as a last resort. Any other exact match will win over en, even if en-us was first preference.
    There are 2 ways of doing content negotiation with Apache: type or variant maps and multiviews.
    Variant Maps
    In httpd.conf, disable Options Multiviews if configured and add
    AddType type-var var
    DirectoryIndex index.var
    Then create an index.var file like this:
    URI: start; vary="type,language"
    URI: index.html.en
    Content-type: text/html
    Content-language: en-GB
    URI: index.html.en
    Content-type: text/html
    Content-language: en-US
    URI: index.html.en
    Content-type: text/html
    Content-language: en
    URI: index.html.fr
    Content-type: text/html
    Content-language: fr-CA
    URI: index.html.fr
    Content-type: text/html
    Content-language: fr
    URI: index.html.es
    Content-type: text/html
    Content-language: es
    Multiviews
    The multiviews technique works like this. This does add extra server load, as each content directory must be scanned for the variant document names.
    index.html is localized into variant documents such as:
    index.html.en (or index.en.html)
    index.html.fr
    index.html.es
    index.html (or index.html.html as a reader has recommended) symlinked to one of the above as the last resort.
    Here's an example of http.conf directives for this:
    # in httpd.conf
    AddLanguage en .en
    AddLanguage fr .fr
    AddLanguage es .es
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    # Just list the languages in decreasing order of preference.
    LanguagePriority en es fr de pt
    Options Multiviews
    # end of httpd.conf fragment
    Starting in Apache 1.2, you may also create documents with multiple language extensions.
    O'Reilly's Apache - The Definitive Guide, Chapter 6
    ApacheWeek article on Language Negotiation
    Another ApacheWeek article on Language Negotiation

  • How to find out the file name

    Hi,
    In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
    How to find out the file name from selection screen?
    I searched SCN threads but not found relavant solution.
    Thanks,
    R Kumar

    Hi
    This code gets only filename from selection screen :
    REPORT x.
    PARAMETERS p_file(100).
    DATA : gv_full_path LIKE  ibipparms-path,
           gv_full_path_string TYPE string,
           gv_filename(100),
           gv_file_ext(3).
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Ask user to select file with a popup :
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = gv_full_path.
    Get filename from path :
      gv_full_path_string = gv_full_path.
      CALL FUNCTION 'CH_SPLIT_FILENAME'
        EXPORTING
          complete_filename = gv_full_path_string
        IMPORTING
          extension         = gv_file_ext
          name              = gv_filename.
      CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
      p_file = gv_filename.
    I hope it helps.

  • How to find out the Trigeering program of an IDOC

    How to find out the Trigeering program of an IDOC ?
    Thank U

    sse the FUnction module ..MASTER_IDOC_DISTRIBUTE..if it is used zreport or program
    that means the message type used in the program are manually triggered.
    Prabhudas

  • How to find out the Number range object for Incident number

    How to find out the Number range object for Incident number ?
    CCIHT_IAL-IALID
    regards,
    lavanya

    HI, an example.
    data: vl_num type i,
          vl_char(6) type c,
          vl_qty type INRI-QUANTITY,
          vl_rc type INRI-RETURNCODE.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        NR_RANGE_NR                   = '01'
        OBJECT                        = 'ZRG0000001'
       QUANTITY                       = '1'
      SUBOBJECT                     = ' '
      TOYEAR                        = '0000'
      IGNORE_BUFFER                 = ' '
    IMPORTING
       NUMBER                        = vl_num
       QUANTITY                      = vl_qty
       RETURNCODE                    = vl_rc
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    vl_char = vl_num.
    write vl_char.
    Regard

  • How to find out the manditary fields in an IDOC

    Hi,
    How to find out the manditary fields in an IDOC.
    For example MATMAS05 .
    For this 2 segments I want to find out the manditary fields.
    E1MARA
    E1MAKTM

    Hi,
             go to transaction WE30 and give the corresponding IDoc type and enter. Then you will get all segments for that IDoc type then double click on segment. A popup box will come in that it will show a check box whether it is a mandatory segment or not. And segment editor button will give all the field details.
    Regards

  • How to find out the GR Numbers for which IR has not been done

    Hi Sap Gurus,
    Can anybody tell me how to find out the G R Numbers for which Invoice Receipt has not been done. Any TC or ant standard process to find out.
    Thanks N Regards,
    Siddhartha

    Hi Siddarth,
    Solution :
            1) Go to SE16 - Table Name : EKBE (PO History)
            2) Field - BUDAT (Posting Date)
            3) Transaction event Type:
                             - 1 (Only GR's )
                             - 2 (Both GR and IR)
            4) We can fetch both GR Numbers and also PO Numbers for which IR has not been done if transaction event - 1.
    In addition to MB5S, you can try this also...

  • How to find out the total, subtotal in alv report

    hi dears,
    how to find out the total, subtotal in alv report?
    pls tell me logic ,
    i will be waiting for eply
    regards
    eswar

    Hi,
    <b>ALV Grid List with sub-totals</b>
    REPORT z_demo_alv_sort.
    * This program lists orders (VBAK) with sort and sub-total for        *
    * 'sold-to-party' (KUNNR) and 'Sales organization' (VKORG)            *
    TABLES : vbak.
    TYPE-POOLS: slis.                      " ALV Global types
    SELECT-OPTIONS :
      s_vkorg FOR vbak-vkorg,              " Sales organization
      s_kunnr FOR vbak-kunnr,              " Sold-to party
      s_vbeln FOR vbak-vbeln.              " Sales document
    SELECTION-SCREEN :
      SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
    PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
      BEGIN OF gt_vbak OCCURS 0,
        vkorg LIKE vbak-vkorg,             " Sales organization
        kunnr LIKE vbak-kunnr,             " Sold-to party
        vbeln LIKE vbak-vbeln,             " Sales document
        netwr LIKE vbak-netwr,             " Net Value of the Sales Order
        waerk LIKE vbak-waerk,             " Document currency
      END OF gt_vbak.
    INITIALIZATION.
      v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
      PERFORM f_read_data.
      PERFORM f_display_data.
    *      Form  f_read_data
    FORM f_read_data.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
               FROM vbak
                 UP TO p_max ROWS
              WHERE kunnr IN s_kunnr
                AND vbeln IN s_vbeln
                AND vkorg IN s_vkorg.
    ENDFORM.                               " F_READ_DATA
    *      Form  f_display_data
    FORM f_display_data.
      DEFINE m_fieldcat.
        add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname   = &1.
        ls_fieldcat-ref_tabname = 'VBAK'.
        ls_fieldcat-do_sum      = &2.
        ls_fieldcat-cfieldname  = &3.
        append ls_fieldcat to lt_fieldcat.
      END-OF-DEFINITION.
      DEFINE m_sort.
        add 1 to ls_sort-spos.
        ls_sort-fieldname = &1.
        ls_sort-up        = 'X'.
        ls_sort-subtot    = &2.
        append ls_sort to lt_sort.
      END-OF-DEFINITION.
      DATA:
        ls_fieldcat TYPE slis_fieldcat_alv,
        lt_fieldcat TYPE slis_t_fieldcat_alv,
        lt_sort     TYPE slis_t_sortinfo_alv,
        ls_sort     TYPE slis_sortinfo_alv,
        ls_layout   TYPE slis_layout_alv.
      m_fieldcat 'VKORG' ''  ''.
      m_fieldcat 'KUNNR' ''  ''.
      m_fieldcat 'VBELN' ''  ''.
      m_fieldcat 'NETWR' 'X' 'WAERK'.
      m_fieldcat 'WAERK' ''  ''.
      m_sort 'VKORG' 'X'.                  " Sort by vkorg and subtotal
      m_sort 'KUNNR' 'X'.                  " Sort by kunnr and subtotal
      m_sort 'VBELN' ''.                   " Sort by vbeln
      ls_layout-cell_merge = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                is_layout   = ls_layout
                it_fieldcat = lt_fieldcat
                it_sort     = lt_sort
           TABLES
                t_outtab    = gt_vbak.
    ENDFORM.                               " F_DISPLAY_DATA
    ***************** END OF PROGRAM Z_DEMO_ALV_SORT **********************
    Regards
    Sudheer

Maybe you are looking for

  • Dreamweaver and Fireworks not working correctly

    I am taking a DW8 class. I have MANY photos I want to use fireworks for. Installed free 30 trial of DW8 and Fireworks from my books CD. Did what DW8 said in creating web photo. Used Fireworks BUT when I clicked on the photo to enlarge I got the black

  • The Limitations of Live Captions?

    Hi, Just wondered if anyone could offer any general advice about the possible benefits of using Live Captions for a project which I’m currently working on. I’m in the throes of setting up an 800page InDesign document (split into smaller files and cha

  • XML Data Transfering Incorrectly (XDP)

    We have a relatively simple workflow that transfers schema data from one form to another. Both forms are XDPs so we simply use a setValue to transfer the data (from form 1 to 2): Location: process_data/form2/object/data Expression: process_data/form1

  • Load Balancing with Adapters.

    I am using File Adapter for a simple process . Now I want to deploy this adapter across several CPUs which will provide me vertical scaling . Is it possible? If yes, then how to configure this?

  • ATTN: Murray (or Al, or Gary) on hover issues...

    (Sorry, that other thread went sour...) I finally have an online version better demonstrating the all-css mouseover effects I've been trying to accomplish. http://www.vilverset.com/test1.html Now you will see 4 columns of identical text (3 on 1 row,