How to change the cell value in Excel Sheet in WD Java?

HI,
I have an application which is used to upload and download excel sheet.I can upload the excel sheet through Upload UI element and also able to download the same file through Download UI.But before download I want to validate the excel sheet.If data is not proper in the excel then I have to put some comment (cell comment).I am able to read each cell value,but not ble to put any comment.Once I pt commen in the cell,the download file should display the commented in the excel sheet.
Please let me know how to update hte excel sheet.
Sandip

hi Sandeep,
I'm not sure about the HSSF apis, however, i inserted the Cell Comments using jexcel apis. There is a method setComment(java.lang.String s, double width, double height) in class WritableCellFeatures using which you can insert cell comments
For more details refer [link|http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/write/WritableCellFeatures.html]
Abhinav

Similar Messages

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to change the Unitprice value from 2 decimals to 3 decimals in script

    Hi Gurus,
    how to change the Unitprice value from two decimals to three decimals for each item level for PO in script.
    Please provide some possible solutions.
    Thanks,
    V.V.

    Hi,
    Check the options available like
    &VAR(.2)&  this will print 2 decimals
    &VAR(.3)&  this will print 3 decimals
    need to change the value for how many decimals you need
    Thanks & Regards
    Sarves Sombhatla

  • How to get(copy) the contents i.e the cell of an excel sheet to other excel

    How to get(copy) the contents i.e the cells of an excel sheet to another excel sheet.
    I can read the contents i.e the text in the cells and able to display it in the Java console
    i want these contents to be copied to another excel sheet with the cells data.
    I am using Java Swing for the UI, POI framework for the excel work.
    Please anyone suggest some code to this requirement.

    [spreadsheets with poi|http://poi.apache.org/spreadsheet/converting.html] Hi
    on the poi apache site there's a number of good examples...
    I started with poi only a week ago, but just from reading these examples
    (especially SS Usermodel code) i managed all i needed to know (so far).
    kind regards
    BB
    Edited by: BugBunny on Feb 22, 2010 4:36 AM

  • How to populate the Quering data into Excel sheet in Oracle

    Dear Guys,
    How to populate the Quering data into Excel sheet in oracle.
    Please provide a solution.
    Thanks & Regards,
    Senthil K Kumar

    Hi
    To make Excel sheets from sqlplus, you can use the markup html tag in sqlplus.
    Here's an example.
    Example
    <code>
    SET LINESIZE 4000
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET PAGESIZE 999
    SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF
    SPOOL c:\test_xls.xls
    SELECT object_type
    , SUBSTR( object_name, 1, 30 ) object
    , created
    , last_ddl_time
    , status
    FROM user_objects
    ORDER BY 1, 2
    SPOOL OFF
    SET MARKUP HTML OFF ENTMAP OFF SPOOL OFF PREFORMAT ON
    SET LINESIZE 2000 VERIFY ON FEEDBACK ON
    </code>

  • How to change the variable value in fox formula?

    Hi All,
        Please help me achieve this scenario,
             in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.
          In planing function using FOX formula, i must be able change the variable value to 2009.
      Will it be possible to achieve this, can we change a variable value using FOX formula, if possible
    please let me knw how to achieve this.
    Thanks n Regards,
    Priya.

    Hi Priyadarshini,
    i dont know what is your requirement exactly.If you can give a better explanation of ur requirement we can help you. But to answer your question yes we can get new values for the variable in the planning function.
    for this you need to couple the planning function together with the planning filter in a planning sequence. This planning filter should have the variable that you wanted to change. In the WAD when you want to call this planning sequence there is an option to call variable screen. If you enable this, it will pop up the variable screen to get this value again.
    Guess this was helpful.
    Regards.
    Shafi.

  • How to change the characteristic value in a item of sales order by FM?

    Hi experts,
    I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
    Regrads

    Hi Birendra,
    Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
    type-pools: IBCO2,
                IBXX.
    data: l_CUOBJ type CUOBJ_VA,
          l_ibase type IBCO2_IBASE_REC,
          l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
          w_CONFIGURATION type IBCO2_INSTANCE_REC2,
          l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
    data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
          w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
    select single CUOBJ
      into l_CUOBJ
      from VBAP
      where VBELN = '0020030609'
        and POSNR = '000020'.
      CALL FUNCTION 'CUCB_GET_CONFIGURATION'
        EXPORTING
          INSTANCE                           = l_CUOBJ
        IS_BUSINESS_OBJECT                 =
        IV_MOMENT                          =
        IV_WITH_DB_INSTANCE                =
       IMPORTING
         IBASE                              = l_ibase
         CONFIGURATION                      = l_CONFIGURATION
        EO_CBASE_REF                       =
      EXCEPTIONS
        INVALID_INPUT                      = 1
        INVALID_INSTANCE                   = 2
        INSTANCE_IS_A_CLASSIFICATION       = 3
        OTHERS                             = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at l_CONFIGURATION into w_CONFIGURATION.
      l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
    t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
      read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
      w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
      modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
      modify l_CONFIGURATION from w_CONFIGURATION index 1.
      clear: w_CONFIGURATION.
    endloop.
    CALL FUNCTION 'CUCB_SET_CONFIGURATION'
      EXPORTING
        ROOT_INSTANCE                      = l_CUOBJ
      IS_CBASE_HEADER                    =
      CHANGING
        CONFIGURATION                      = l_CONFIGURATION
    EXCEPTIONS
      INVALID_INPUT                      = 1
      INVALID_INSTANCE                   = 2
      INSTANCE_IS_A_CLASSIFICATION       = 3
      OTHERS                             = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
      EXPORTING
        ROOT_INSTANCE                       = l_CUOBJ
        ROOT_OBJECT                         = l_ROOT_OBJECT
      FORCE_NEW_INSTANCE                  =
      IV_WITHOUT_COMMIT_UPDATE            = ' '
      IV_MATERIAL                         =
      IV_LOCATION                         =
      IV_TECHS                            =
    IMPORTING
      NEW_INSTANCE                        =
    TABLES
      EXP_NEW_NESTED_CUOBJS               =
    EXCEPTIONS
      INVALID_INSTANCE                    = 1
      INVALID_ROOT_INSTANCE               = 2
      NO_CHANGES                          = 3
      ALREADY_REGISTERED_FOR_UPDATE       = 4
      INSTANCE_IS_A_CLASSIFICATION        = 5
      OTHERS                              = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to change the column value upto 68000 rows

    Hi,
    I want to change the column value.
    I have table called RefDoc
    Select distinct r.int_ref from refdoc r where r.int_ref like '\\dxb%'
    Int_Re__f
    \\dxb\Sample\BFE B777\2008\PO2025225.tif
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\dxb\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\dxb\Sample\BFE B777\2008\PO2025253.tif
    \\dxb\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    up to 68000 rows
    I want to change to \\AUH instead of \\dxb.
    I want the table like
    Int_Re__f
    \\AUH\Sample\BFE B777\2008\PO2025225.tif
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2022098.pdf
    \\AUH\Sample\RO\SFR\26-01-2009j\RO2040831.pdf
    \\AUH\Sample\BFE B777\2008\PO2025253.tif
    \\AUH\Sample\RO\UM INV\26-01-2009\RO2018358.pdf
    Thanks
    Nihar

    user REPLACE function and change it
    UPDATE refdoc
       SET int_ref = REPLACE(int_ref, '\\dxb\', '\\AUH\')
    WHERE int_ref like '\\dxb\%'

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • How to change the suggest value in ME11uFF1F

    in ME11,when i  creat a  purchase info record, i need to change the suggest value of  field u201CVendor Mat. No.u201D  according the material NO. which i input in the initial screen.
    I have found the user exit in ME11,but they are not helpful.
    anyone can give me some advice or resolution?
    thanks.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to put the data from one excel sheet in another excel sheet

    hi ,
    I want put the data from one excel sheet in another excel sheet in seq. order Eg: I have one excel sheet in which i have 3 col. Name , Sno. , Email along with data .I want to put data from this sheet to another excel sheet in the following orders of col. Sno,Name, Email .
    While loading data in another sheet , i have to perform validation like char field should n't contain numeric values and vice versa .
    Let me know on this soon ..
    regards
    Prashant

    Well, you can issue separate queries with the ordering you need from each tab in the spreadhseet. You can open an ODBC connection from a VBA macro, select a sheet, run a query, select another sheet and run another query. As for the validation, you can do this in Oracle via stored procedures or again in VBA code.

  • How to delete the Junk Data From Excel Sheet

    Dear ABAPers,
                I am uploading the Excel sheet from the Desktop to the SAP System. In the Internal table i am getting Unwanted Junk data's for Example '##########'.I am not getting this Junk data for all the times. i am getting it for Some times.How to ignore these junk data.
    Thanks & Regards,
    Ashok.

    Dear Friends,
                I communicated wrongly.I am very sorry for that.The Problem is I am getting All the Data into the internal table in addition to that lines i am getting the Junk data in the internal table at the end of the internal table.
    Excel Sheet
    L-1     21.10.2008     1110     888555444676001
    L-1     21.10.2008     1110     888555444676002
    L-1     21.10.2008     1110     888555444676003
    L-1     21.10.2008     1110     888555444676004
    Internal table
    L-1     21.10.2008     1110     888555444676001
    L-1     21.10.2008     1110     888555444676002
    L-1     21.10.2008     1110     888555444676003
    L-1     21.10.2008     1110     888555444676004
    Thanks & Regards,
    Ashok.

  • How to maintain the same layout in excell sheet and in the mailed version

    i have a report which gives the related sap o/p , when we chose a certain layout and trasfer the o/p to excell sheet it maintains the layout but when it comes to the emailed version (i.e., when it is emailed ) , the attachment , it is not maintaining the layout which i have chosen, can u suggest me what i need to do?

    Hello,
    it si not crear where you change the cost of the item to 90 USD?
    If you have a price of 100USD in the sales order then you should have a look in the copy control. Which pricing type is maintained here.
    If you want to take over the price from the sales order to the return order then you should maintain a pricing type which not new determine the VPRS. Then the VPRS should copied from the sales order.
    Please have a look 24832. Here is describe which pricing type is relevant to determine a new condtion.
    I hope that the information are helpful.
    Regards and have a nice day.
    Claudia

  • How to change the variable value for the SCript in debugging

    I have a variable &KNA1-NAME4&
    i want to change the value of this variable in debugging mode
    can any one please tell me how to do in step by steb mode.

    Hi Ravi,
    In script u can't change the value in debigging. Open ur print program(If u don't know check TNAPR table).
    Search for the element name where u r printing this variable. U can see some thing like
    CALL FUNCTIOn 'WRITE_FORM'
    element = ur element name.
    Keep break point here and when u issue output control stops here. Now change the value as we does in normal reports.
    Thanks,
    Vinod.

  • How to change the date value in FM SD_CUSTOMER_HIERARCHY_PATH

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

Maybe you are looking for

  • How to set the pll path in run time environment

    kindly temme the solution for this

  • How to get the selected rows in a table

    Hi, How to get the ids of all the selected rows. On Page load a query is executed that shows the data in a table with a checkbox in the first column to select the rows and delete. Now if a user select multiple rows how do I get the ids of selected ro

  • Checkin originals in background

    Hello, I am an ABAPer, and I am using 'BAPI_DOCUMENT_CREATE2' to create document and checkin original files. BAPI is working fine in R/3 (via SE37) with the file on my PC (C:\temp\file.doc). But, when I call call this BAPI from portal (frontend), doc

  • Mail on disk image, Spotlight can find messages, but "entire message" can't

    For security purposes I've moved my to a disk image. For details on how to do this, see: http://discussions.apple.com/thread.jspa?messageID=5837719 It's a relatively easy thing to do as long as you make sure that a symbolic link exists to your new Ma

  • Installation from scratch

    Hi Guys, I am following this: http://download.oracle.com/docs/cd/E11882_01/install.112/e16767/toc.htm#i1011296 it says after df -h then chose your mount_point and then do this: # mkdir -p /mount_point/app/ # chown -R oracle:oinstall /mount_point/app/