Using number field for date

Hi,
I have a number field that contain a date (YYYYMMDD). In my report I must show the date in the format DDMMYYY.
Please, help me.
TIA, Alex
null

Hi,
You can also change your query...
Instead of the column you are using, use
to_char(
to_date(
ltrim(
to_char(<date_field>)
, 'YYYYMMDD'
, 'DDMMYYYY'
Hope this helps

Similar Messages

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • Using ALV Grid for data Input

    Hi experts.
    Can someone assist me with information on using ALV grid for data input. Please give a simple example if possible.
    I am mainly interested in the part in which we can transfer data from the grid changing the internal table's data.

    Try this code:
    REPORT z_demo_alv_jg.
    TYPE-POOLS                                                          *
    TYPE-POOLS: slis.
    INTERNAL TABLES/WORK AREAS/VARIABLES                                *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.
    FIELD-SYMBOLS                                                       *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.
    SELECTION SCREEN                                                    *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.
    START-OF-SELECTION                                                  *
    START-OF-SELECTION.
    Storing table name
      p_table = tabname.
    Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
        LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.
      SORT i_fieldcat BY col_pos.
    Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.
      REFRESH <dyn_tab_temp>.
    Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'Z_STANDARD'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
    Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.
    Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.
    Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.
    Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.
      CASE r_ucomm.
      When a record is selected
        WHEN '&IC1'.
        Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.
          IF sy-subrc = 0.
          Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.
          Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.
            Make all the fields input enabled except key fields*
              w_field-input = 'X'.
              MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.
            ENDIF.
          Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.
            IF sy-subrc = 0.
            Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
            If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.
          ENDIF.
      When save button is pressed
        WHEN 'SAVE'.
        Sort the index table
          SORT i_index.
        Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.
          LOOP AT i_index.
          Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.
          ENDLOOP.
        Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
          IF sy-subrc = 0.
          Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
            REFRESH <dyn_tab_temp>.
          Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.
          ENDIF.
      ENDCASE.
      rs_selfield-refresh = 'X'.
    ENDFORM.                    "user_command

  • HT204023 I am not able to set my Personal Hotspot setting, if I try to set it massage displayed "To enable Personal Hotspot for this account, contact carrier " I am in Oman and using Nawras service for data plan. Plz help me

    I am not able to set my Personal Hotspot setting, if I try to set it massage displayed "To enable Personal Hotspot for this account, contact carrier " I am in Oman and using Nawras service for data plan. Plz help me. Before I was using this service but now facing problem.

    Md Asad wrote:
    Yes but they told mobile co mean Device 'iPhone co'
    Sorry but that makes no sense in English. Only your mobile phone company (i.e. "carrier") can enable the Personal Hotspot feature.

  • Use custom field for work phone number in CUCiLync

    Hi,
    I have searched and tried out all sorts of different settings for enabling/changing the way CUCiLync searches the Active Directory (AD) for contact phone numbers.
    But no matter what setting I use in the HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData and/or HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory hive, CUCiLync still uses the default for Work phone number. The default for this is to use telephoneNumber, the value that I wish to use is the ipPhone field.
    The registry values that I have tested so far are these.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData
    LDAP_AttributeName_businessPhone
    LDAP_AttributeName_primaryPhoneNumberForSearches
    LDAP_AttributeName_otherPhone
    All set to ipPhone, and I have also tested to set it to another field in AD that contains the same value as the ipPhone, that is in my case extensionAttribute5.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory
    BusinessPhone
    PreferredNumber
    DisableSecondaryNumberLookups
    First two set to ipPhone and the third set to 0, and I have also tested to set it to another field in AD that contains  the same value as the ipPhone, that is in my case extensionAttribute5.
    The above values comes from these two urls,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1141403
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1137551
    The later url have this
    Table 3-9 LDAP Registry Subkeys
    Subkey   Names
    Description
    LDAP_AttributeName_primaryPhoneNumberForSearches
    Specify   the phone number that you use to resolve most LDAP queries. This value must   match one of the values specified for the following LDAP keys:
    •LDAP_AttributeName_businessPhone
    •LDAP_AttributeName_homePhone
    •LDAP_AttributeName_mobilePhone
    •LDAP_AttributeName_otherPhone
    The   values that are valid for the LDAP attribute keys listed above are:
    •telephoneNumber
    •homePhone
    •mobilePhone
    •otherTelephone
    •a   custom LDAP attribute value, for example, myCustomPhoneNumber
    The   value of the LDAP_AttributeName_primaryPhoneNumberForSearches key must match   one of the values in the list above, for example, telephoneNumber. Otherwise,   the value of the LDAP_AttributeName_businessPhone key is used.
    The version of CUCiLync is 8.5(3)-4.5.9, that is the latest I can find on the support download page, have also tried with earlier version 8.5.(1).
    Does anyone have any suggestions for how to achieve this, if at all possible?
    Roger Kallberg

    This is the reply we got from TAC.
    Regarding to your query, Can you please go through the attached flow diagram (also you can see it in the link given below). I hope it will clarify more on the telephone number display behavior in office communicator.
    As per this flow chart presently your setup is working as designed. As per the design, the number should be in E.164 format in order to be available in MOC.
    You have AD in your network as a source, so  OCS pulls this information from LDAP it is integrated with. As per Microsoft, here you need to add Normalization rules to OCS to normalize the number into the E164 format.
    http://technet.microsoft.com/en-us/library/bb964002%28office.12%29.aspx
    Phone number display for MOC contact:
    •-          OCS will not provide a contacts number unless it is correctly formatted to the E.164 standard.
    •-          The Address Book Service on OCS processes the contacts phone number and attempts to normalize it.
    •-          If correctly normalized then the number is inserted into the OCS address book.
    •-          Communicator will only display this normalized number if it is properly formatted in E.164 (+13125551234).
    •-          The E.164 standard defines an international numbering plan for public phone systems.
    •-          In the E.164 standard, each number contains a country code, an area code, and a subscriber number.
    •-          Each phone user has a globally unique number.
    •-          In Cisco UC Integration for Microsoft Office Communicator, phone numbers in E.164 format must begin with a plus character ("+").
    I have done some research to your first question. Can you please just go through the blog given below from the Microsoft.
    http://blogs.pointbridge.com/Blogs/schertz_jeff/Pages/Post.aspx?_ID=26.
    It tells that If the numbers not in E.164 format then the number will not appear in office communicator if LDAP integrated. Can you please check with Microsoft to see their inputs on this.

  • Automatically generate sequential record number field for Z table

    Hi Experts,
    I have a Z table that I would like to add a "record_number" field to, because we are having an issue with duplicate entries not being created in the table.  Is there a way to add that field to the z table and have the system automatically assign a value when the insert statement is made?
    Thanks
    Shane

    Hi Shane,
    You can use the transaction SNUM to create a number range for your custom table. You can assign your invervals to whatever limit you would like. Once you create this range you can then call the function module below to get the next number before the insert (lv_object is the name of your number range and lv_number will export the next sequential number)
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr                      = '01'
          object                                = lv_object
        IMPORTING
          number                              = lv_number
        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.
      ENDIF.
    Six

  • Delta field for Data Source 0BP_RELATIONS_ATTR

    Hi Experts,
    I need to know how to find which field is Delta enabled for standard Data Sources.
    In my requrement for Data Source 0BP_RELATIONS_ATTR.
    As the Data Source is being accessed by BODS sysetm and they need to know the Delta field to extract delta.
    Thanks
    Basheer

    Hello,
    Are you using Crystal Reports? If not I believe you should be posting your question to one of the Classic SAP forums:
    http://forums.sdn.sap.com/index.jspa#45
    Please mark as answered also.
    Thank you
    Don

  • How do you use a field for 255 characters plus in HCM?

    There is a 255 character max on the fields in the HCM process and forms.
    I see some types in there:
    QISR_TAB_TYPE
    QISR_TAB_TYPE_TEXT
    QISR_TAB_TYPE_STRING
    I see the text one is for no length restriction, but when I apply it to the field in designtime interface but still everything truncated at 255.
    Is there anyway to use more than 255 characters in a form field in adobe livecycle designer - SAP HCM?

    1694040 - SAP_PD process description fields truncated - 1429386  DTT - wrong data element visible for generic service fields - 1492109  Wrong generation of fields of type pad_long_text 2. In form scenario - change the data element of affected field from You will have to specify long text using multiple field indices. In form scenario - change the data element of affected field from STRING to PAD_LONG_TEXT. check your generic service again Kindly use the data element PAD_LONG_TEXT for the fields which are to hold more than 255 characters. For the usage of this data element, you may refer to the note 1401338 released by PA-ER for the requisition request process.

  • Can I use Time Machine for data recovery?

    Hi All,
    This might seem a bit confusing at first, so please be patient - and thanks in advance.
    I'll try to make this as simple as possible:
    1) I had an external HDD that (i stupidly didn't  back up) that I used to free up memory on my MB Pro. I knocked it off my desk and it's now unrecoverable - there is a 'might be able to get some data back. but it will cost up to $2000' option.
    2) To free up said memory, I moved all the big stuff - photos, movies, documents, iTunes libray to this HDD.
    3) Now, before I did this, I was already - and still am - using ANOTHER HDD for my Time Machine back ups.
    4) Does anyone have any idea as to whether I could salvage the above mentioned data from an old TM snaphot (?) - assuming it hasn't been over written already?
    5) And, if it's possible, can it be done without rolling back the MB to the appropiate date??

    Hi Thomas,
    Thanks for the quick response! But I didn't think I explained myself very well :s
    I originally had everything on the MB internal HDD, and only had 1 HDD which was / is still, my TM HDD.
    I then moved all the photos, music etc to the 2nd HDD, to free up memory on the MB HDD.
    I dropped the 2nd HDD and it's beyond recovery.
    What my thought is - given that originally all the data would have been backed up on the TM HDD, can I recover it from there? (If it hasn't been over written of course)
    I'm unsure if the 2nd HDD was included in TM backups. It was usually connected to the MB when TM was running...

  • How to use Resever Field for Customer Master

    Hi
    My Client Requirement. Price should be determine with Sales ORG, Distribution channel, Division, Districts, Talukas and Villages.
    But Talukas and villages are not available in SAP standard systems.
    Is it possible to use reserver field in Customer Master for this purpose?
    If it is ok then please give suggestion how to use this reserve fields.
    Thanks in Advance
    Madhu

    Hello,
    the system-behavior that you describe is standard behaviour, because   
    the fields which you are describe (village and ..) doesn't exist in structure KOMG.                                                                               
    For using this field in the field catalog you can proceed like this:   
    1. create a new field for example ZZvillage...                             
    2. add the new field in the table T681F for the application 'V' and the
       usage 'A'                                                           
    3. add the field to the include-structure KOMKAZ                       
    4. fill the new fields in the userexit for pricing                     
       (Pricing_Prepare_TKOMK (TKOMP)                                                                               
    I hope that the information are helpful for you.    
    regards
    Claudia

  • Equium A100 - can I use E drive for data saving?

    My Equium A100-27 has an 80GB hard drive, this is slit in half C drive and E drive.
    I understand that the E drive is used for system recovery purposes but can I also use it to store data on?
    If I do use it for data how much room should be left clear for system recovery?

    Hi
    I think the E partition is used for Recover image. The Toshiba notebooks are preinstalled with an Toshiba recover disk creator. This tool allows you to create a own disk. And the image is placed on the additional partition

  • Using oDBDataSource.SetValue for date, price and percentage type

    Hi experts,
    I need to set value to db datasource for date, price and percentage type, below my code:
    oDBDataSource.SetValue("U_ItemPrc", offset, oDataTable.GetValue("U_ItemPrc", i))
    oDBDataSource.SetValue("U_Discount", offset, oDataTable.GetValue("U_Discount", i))
    oDBDataSource.SetValue("U_Data", offset, oDataTable.GetValue("U_Data", i))
                mt.Columns.Item("ItemPrc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemPrc")
                mt.Columns.Item("Discount").DataBind.SetBound(True, "@TC_LIS1", "U_Discount")
                mt.Columns.Item("Data").DataBind.SetBound(True, "@TC_LIS1", "U_Data")
                mt.LoadFromDataSource()
    the column "U_ItemPrc" is a price with 5 decimals
    the column "U_Discount" is a percentage with 2 decimals
    the column "U_Data" is a date
    I get the three matrix column blank!
    How can I set value for these data type?
    please help me.
    Thanks
    Best regards
    Andrea

    I modified the source code following your suggestion but i still have the same problem with db table field with decimal and date.
    below the code:
    Dim oDBDataSource As SAPbouiCOM.DBDataSource = form.DataSources.DBDataSources.Item("@TC_LIS1")
                oDBDataSource.Clear()
                mt.Columns.Item("LineId").DataBind.SetBound(True, "@TC_LIS1", "LineId")
                mt.Columns.Item("ItemCode").DataBind.SetBound(True, "@TC_LIS1", "U_ItemCode")
                mt.Columns.Item("ItemName").DataBind.SetBound(True, "@TC_LIS1", "U_ItemName")
                mt.Columns.Item("TipoList").DataBind.SetBound(True, "@TC_LIS1", "U_TipoList")
                mt.Columns.Item("ItemPrc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemPrc")
                mt.Columns.Item("Discount").DataBind.SetBound(True, "@TC_LIS1", "U_Discount")
                mt.Columns.Item("Data").DataBind.SetBound(True, "@TC_LIS1", "U_Data")
                mt.Columns.Item("ItemDesc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemDesc")
                For i As Integer = 0 To oDataTable.Rows.Count() - 1
                    Dim offset As Integer = oDBDataSource.Size
                    Dim prezzo As Double = oDataTable.GetValue("U_ItemPrc", i)
                    Dim sconto As Double = oDataTable.GetValue("U_Discount", i)
                    Dim data As Date = oDataTable.GetValue("U_Data", i)
                    oDBDataSource.InsertRecord(i)
                    oDBDataSource.SetValue("LineId", offset, oDataTable.GetValue("LineId", i))
                    oDBDataSource.SetValue("U_ItemCode", offset, oDataTable.GetValue("U_ItemCode", i).ToString())
                    oDBDataSource.SetValue("U_ItemName", offset, oDataTable.GetValue("U_ItemName", i).ToString())
                    oDBDataSource.SetValue("U_TipoList", offset, oDataTable.GetValue("U_TipoList", i).ToString())
                    oDBDataSource.SetValue("U_ItemPrc", offset, oDataTable.GetValue("U_ItemPrc", i))
                    oDBDataSource.SetValue("U_Discount", offset, sconto)
                    oDBDataSource.SetValue("U_Data", offset, data)
                    oDBDataSource.SetValue("U_ItemDesc", offset, oDataTable.GetValue("U_ItemDesc", i).ToString())
                Next      
                mt.LoadFromDataSource()
    the prezzo variable store the correct value with decimal but executing the SetValue method I get the matrix column without decimal value.
    the data variable store the correct value but executing the SetValue method I get the matrix column blank.
    It seems the SetValue method works only for string field type.
    What can i do?

  • Possible? Using External Definitions for data type/message type definitions

    Hi all,
    i want to use external definitons in my own data type definitions. Is that possible? And if yes, how?
    I imported many definitions via a mass import. Now I also want to use these definitions for further interfaces (than the imported ones). The most convenient would be of course to just use them as a custom created type. Can I somehow "convert" an external definition to a data type/message type?
    KR
    Felix

    Hello Felix,
          The External defination which you has been imported that cant use in DT and MT but yeah you can use this in Service interface.
    you cant modify that External defination if you want to do that then 1st of all modify it and then reimport it as an another external defination.
    and creating service interface with this ED you can use it in your message mapping .
    i hope this will help to you to clear your doubt.
    Monica

  • Executing xml sql using jdbc adapter for date conversion

    Hi experts,
    I am following the fllowing blog for date format conversion for a jdbc receiver.
    /people/alessandro.berta/blog/2005/10/04/datetime-datatypes-and-oracle-database
    I constructed my graphical mapping to generate the following query
    DateField in receiver structure = TO_DATE('2008-03-24','DD-MON-YY')
    attribute hasQuot = No
    The result that i want is 24-MAR-08
    I am getting the error in communication channel monitoring as does not match string format.
    The database gets successfully updated without this date conversion. But when i try to use this, it give the above error.
    Is there any other configuration to be done to make the adapter execute this statement?
    Regards,
    Shamly

    The issue is solved.
    The SQL statement was wrong.
    The correct version is,( as was specified in the blog ) :-
    DateField in receiver structure = TO_DATE('2008-03-24','YYYY-MM-DD')
    Automatically in the database it is converted to 24-MAR-2008
    Edited by: Shamly MM on Mar 27, 2008 8:01 AM

Maybe you are looking for

  • Error - Install 9i DS r. 9.0.2 on RedHat Linux

    I tried to install Dev Suite 9i r. 9.0.2 (release 2) for Linux on RedHat 7.3 and RedHat 8.0. On both versions I get the same error during install: Error: invoking /usr/oracle/developer/plsql/lib/ins_plsql.mk This error occurs because the libclntsh.so

  • Error when starting firefox 3.6 on Solaris 10 x86

    Sometimes, when we start firefox 3.6 on an Ultra 40 with an Opteron processor, we get the following error: esd: Unknown device `SUNW,audio810', but will try anyway. Firefox works fine, but what does this error indicate, and how can I make it go away?

  • Can't convert PDF from desktop

    The convert panel appears when I open a PDF doc, but from that panel will not upload PDF to Adobe for conversion.  I have to go online to Adobe to do it.  What's wrong?  It used to work.

  • Scanjet G4010 Software Errors

    Hello, We have recently reimaged a few machines with Win7 Ent x64 and then tried resetting up the few scanners we have (all G4010s). We downloaded the latest version of the full software suite installer (ver 14.5.1) found here.  It installs fine, but

  • Business Rule - Filtering based on dimension

    Hi, I am trying to copy data from one scenario/version to another scenario/version based on account member(smartlist) value.I am currently unable to achieve this result. /* Copy the data from Begin Scenario to Final Scenarioo based on the vendor stat