I want to display static data in table in web dynpro for java

Hi,
I have to display static (textview )data in table . So what im doing is that i have created a node of name "table" then created its attribues and binded it to the table and in table, under "column editor" option of "text"  is there where i can write the required text . But Im not able to do the same thing in other rows. i.e. im restricted to only 1st row. How to enter it in other rows. So i want that i should write some content in all the rows of table and display it in text view when i execute it. Its just like u r presenting an excel sheet in output form to the user .
Thanks

Hi
for( int i = 0 ; i <= 5 ; i++) {
IPrivateTestView.ITableElement element = wdContext.nodeTable().createTableElement();
element.set<TextViewatrribute>("TEXT");
wdContext.nodeTable().addElement(element);
  error is on 3rd line of code in "element.set "  .The error is   " invalid expression as statement"
Thanks

Similar Messages

  • Why Web services are used to send data not HTTP in Web dynpro for Java?

    Is Web Dynpro for Java supports Web service , RFC as communication to other systems why http cannot be used in Wweb dynpro for java.........
    Thanks and Regards,
    CSP

    Hi Pradeep,
    Yes, Web Dynpro java supports web service, you can expose your web service as RFC Model to
    communicate with others system. As per as HTTP is concern we don't have any
    supportive method in web Dynpro. Insted of HTTP we use context in web dynpro to communicate.
    Thanks
    Anup

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control in a SAP-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks in advance,
    Philipp
    Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Printing selected data in ALV or Table in Web Dynpro for ABAP

    Hi Experts,
    I have ALV  / Table report in the Web Dypro for ABAP App.  User wants to select a record in ALV/ table and / or preview it in PDF form and then he/she can print it. What is the technical steps do I need to achieve this result?
    Thanks!
    - Anthony -

    Hi,
    In the Road map UI element , you can find number of Step .
    Add one Interactive form in one that steps. Capture that records , pass that records to Step where the interactive form is there.
    I think it will work...
    regards,
    Rama

  • Entering Data in Table (ABAP Web Dynpro )

    Hi Experts,
    I need help in ABAP Web Dynpro Table. I have a table where multiple line item rows are there.
    In each row there is a input text field to enter the quantity. Usually the the user would not click the lead selection and enter the field value. The user would enter the value in any of the rows, but the lead selection will not change accordingly. therefore the validation will not work properly.
    Kindly guide me the way.
    Regards,
    Nitin.

    Hi,
    If you have any button in the view,suppose like save or  before leaving that particular view ypu can do the validations.
    if you have a button.
    What you can do is ,on action handler of button
    Read  the table and loop through it  and do the validations.
      CALL METHOD lo_nd_sap_prj_experience->get_static_attributes_table
        IMPORTING
          table = lt_sap_prj_experience.
    LOOP AT lt_sap_prj_experience INTO  ls_sap_prj_experience .
    If ls_sap_prj_experience-data  is ''.  "write your condition here.
    CALL METHOD lo_message_manager->report_error_message
              EXPORTING
                message_text = mesg.
    Endif.
    Priya

  • How to get changed data in ALV in Web Dynpro for ABAP

    METHOD on_data_check .
    DATA:
        node_spfli                          TYPE REF TO if_wd_context_node,
        node_sflight                        TYPE REF TO if_wd_context_node,
        itab_sflight2                        TYPE if_display_view=>elements_sflight.
      node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
      node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
      CALL METHOD node_sflight->get_static_attributes_table
        IMPORTING
          table = itab_sflight2.
    this code is ..get all data(changed and not changed)
    but i want get changed data only, not all data.
    how to get changed data?
    Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AM

    Hi,
    To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
    To this please do the following in the ALV initialization of the ALV table settings :
        lr_table_settings->set_data_check(
                IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
    You may also do this:
        lr_table_settings->set_data_check(            IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
    The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
    You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
    In this Event handler, you would find an importing parameter R_PARAM which is a ref type of      IF_SALV_WD_TABLE_DATA_CHECK.
    The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values.

  • Table Control in web-dynpro for java

    Hi SDN,
    I was working on a web-dynpro application where I has to display a table control.
    Here I am listing my Requirement.
    1) A table with 7 columns are to be displayed.
    2) 5 of the columns are Drop down list where  3 of the 5 drop downs have dependency of the pervious drop down selection.
    3)other 2 columns are input box.
    4)The list for the drop downs come from a bapi.
    5)the user is to be allowed as many rows he can
    6)when he clicks save button the values are to be stored using table of another bapi
    Hi all, I have posted this earlier but no solution for this please help me in resolving this.
    Thanks in advance.
    Regards,
    Sai krishna.

    Hi Sai,
    I have better solution, I will explain solution for your design and then I will explain new design.
    <b>Solution to your problem</b>
    How many values each drop down contains? If its not large, execute all drop downs in the beginning of the application and store them in HashMap with dependency key and value as the list of populated values.
    - Create a top Node
    <b>1) A table with 7 columns are to be displayed.</b>
    Create 5 Value Nodes with simple type attributes under your topnode. Set singleton property for each of the node to false. And attach them to the Drop Downs. Populate the parent drop down and non dependent drop downs in the begining itself.
    <b>2) 5 of the columns are Drop down list where 3 of the 5 drop downs have dependency of the pervious drop down selection.</b>
    Attach onSelect events and based on the current selection of the values, check your pre populated HashMap and fill the node with new values.
    <b>3)other 2 columns are input box.</b>
    This is normal, create two nodes with simple types under Top Node.
    <b>4)The list for the drop downs come from a bapi.</b>
    As mentioned previously all these values are pre populated. so you need not to call the BAPI for each request.
    <b>5)the user is to be allowed as many rows he can</b>
    Provide  Add,Delete buttons which dynamically creates rows which means your context elements.
    <b>6)when he clicks save button the values are to be stored using table of another bapi</b>
    Read the values from nodes and send it to other BAPI.
    <b>New Design</b>
    As per your requirement create a form with 5 drop downs and 2 input fields( for dependency you can use the logic mentioned in the previous design). Provide Add,Delete and Update Buttons under the form. And also create a Result table with 7 columns with simple attribute types. Once user enters some values in the form and clicks on Add button then add a new value to the Bottom result table which doesn't have any drop downs. When user needs to update any row on selection of the row populate the values back to the form, then user clicks on update button. Same logic applies to delete also.
    Regards
    Abhilash

  • How to delete multiple rows in a table of web dynpro for abap?

    hi,
    Experts ,
    I want to delete the selected multiple records from a table from that i have inserted a check box ui element in a first column of a table what ever checkbox ix checked i want to delete those selected records from table .
    please suggest me on
    Thanks in advance

    Hi,
    If you have DELETE button, in that action you write this code -
    DATA lr_node type ref to if_wd_context_node.
    lt_set  = lr_node->get_elements( ).
    loop at lt_set into ls_set.
    ls_set->get_staitc_attributes
    importing
    static_attirbutes = ls_row.
    if ls_row-check = 'X'.
    lr_node->remove_element( ).
    endif.
    endloop.
    Check the methods and thier types.
    Regards,
    Lekha.

  • Issues with pagination when using Adobe table with Web dynpro for ABAP

    Hi All,
    I am facing strange issue with table text.
    I have three cols in table, one is of type Char255 and other two cols are of type string.
    The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination the text in table is getting truncated and in next page new row starts.
    Could you please tell me the settings that will enable flowing of text in the row of table to next page.
    Thanks,
    Arti.

    Check the properties of the text field you use for those columns (if you want to control it on this level) or check the same attribute for the row subform (one level up control): "allow page break within content".
    Regards Otto
    p.s.: we all have deadlines... and manage to pay something back. Think about it.

  • Passing table parameter from dynpro for java to sap r/3

    I am sending table parameter from WebDynpro to sap r/3,but the table is not populating.

    Hi,
    In 7.3:
    // models
                RFCModel1 modeloGral = new RFCModel1();
                Zfmfi_Certificado_Ret_Pdf_Input modeloRfc =                          wdContext.currentZfmfi_Certificado_Ret_Pdf_InputElement().modelObject();
                // clean
                if(modeloRfc.getIt_Tipo_Ret_Pobl()!=null && modeloRfc.getIt_Tipo_Ret_Pobl().size()>0){
                               modeloRfc.getIt_Tipo_Ret_Pobl().removeAll(modeloRfc.getIt_Tipo_Ret_Pobl());
                //fill
                IEt_RetencionesElement retElem;
                int cant = wdContext.nodeEt_Retenciones().size();
                for(int i=0; i<cant; i++){
                   retElem = wdContext.nodeEt_Retenciones().getEt_RetencionesElementAt(i);
                   Zfie_Tipo_Retencion_Poblacion retencion = new                                                                            Zfie_Tipo_Retencion_Poblacion(modeloGral);
                                    retencion.setTipo_Ret(retElem.getTipo_Ret());
                                    modeloRfc.addIt_Tipo_Ret_Pobl(retencion);

  • Display archive doc as pdf from web dynpro?

    Hi All,
    We have a situation where we want to display archived pdf's from a web dynpro.  I have put an interactive form ui element on my view and bound this to an attribute of type xstring on the context.
    When I run it, i get an error message saying that file does not begin with '%PDF-'.  I've tried putting this on the front of the string but i didn't work either.
    So can anyone tell me the process for displaying archived pdf's from a web dynpro.
    Many thanks in advance,
    Liz.

    This is the code necessary to get it to work:
    get optical archive id of pdf to display
        select single * from toahr into ls_toahr
          where sap_object = 'PREL'
            and OBJECT_ID  = lv_obj_id
            and ar_object  = ls_zhr_paylsip-zhr_doc_type.
        lv_archiv_id  = 'H1'.
        lv_document_type = ls_toahr-ar_object.
        lv_archiv_doc_id = ls_toahr-arc_doc_id.
        lv_signature = 'X'.
        lv_compid = 'data'.
        free lt_binarchivobject.
        call function 'ARCHIVOBJECT_GET_TABLE'
          exporting
            archiv_id                      = lv_archiv_id
            document_type                  = lv_document_type
            archiv_doc_id                  = lv_archiv_doc_id
      ALL_COMPONENTS                 =
           signature                      = lv_signature
           compid                         = lv_compid
         importing
           length                         = lv_length
           binlength                      = lv_binlength
         tables
           archivobject                   = lt_archivobject
           binarchivobject                = lt_binarchivobject
         exceptions
           error_archiv                   = 1
           error_communicationtable       = 2
           error_kernel                   = 3
           others                         = 4.
        if lt_archivobject[] is not initial.
          describe table lt_archivobject lines lv_rowcount.
          lv_rowcount = lv_rowcount * 1024.
          call function 'SCMS_BINARY_TO_XSTRING'
            exporting
              input_length = lv_rowcount
              first_line   = 1
              last_line    = lv_rowcount
            importing
              buffer       = lv_xstring
          tables
            binary_tab   = lt_binarchivobject
          exceptions
            failed       = 1.
        endif.
    Where yo bind lv_xstring to the the pdfSource via the context

  • ALV table in Web dynpro java

    Hello Experts,
    I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
    I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
    Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
    Thanks in Advance,
    Regards,
    Harish

    Hello,
    I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
    SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
    Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
    I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
    at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
    If it is not yet released for use then I wonder why it is already part of the documentation ?
    Take care
       Ingo

  • I want to delimit the date of table v_t7int1 for new sap note uploading

    Hi
    i want to delimit the date of table v_t7int1 for new sap note uploading. wtihout delimit the date i can't create new note for the year 01.04.2009 to 31.12.9999
    Anjali

    Hi
    When i select the slab code sl10 and press delimit button system is asking the From Date and i want TO DATE  and i have to Delimit the date of  slab code SL10, SL11,SL12 and SR02 and then i have to create SL13,SL14 and SL15.
    Anjali

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

Maybe you are looking for

  • Just upgraded from Ipad1 to 3rd Gen. Can't sync apps. Device is trying to sync and shows almost 25 apps as 'waiting' but there is no further progress.  Help!!

    Please help if anyone knows how to sync apps on Ipad3. I've tried syncing device to i-cloud and it shows as though it is fully updated.  However, on the device there are almost 25 icons for apps which are greyed out and show the message 'waiting' und

  • How to take Utilization J2IUN in sales plant

    Hello, we are having two company codes 1000 and 2000, 1000 is having the Manufturing plant- 1000 2000 is having the sales plant - 2000 Both the plant are having the same excise group-10 The company will procure a materials in 1000 plant and CENVAT is

  • Master - detail

    Hi all, I did search for master detail posts, but didn't find what I was looking for. So if you feel that this has been answered a long time ago...don't hesitate to point me to those posts :-) This is for a home-project so...no pressure, but I can't

  • Virus on Nokia 5800?

    I keep getting sms messages advising I need to update my software so I eventually did this through the Nokia site. Now I can't use my phone I have open apps which I can't get rid of, can't turn off the phone, can't make calls, receive sms etc etc etc

  • Datagrid item renderer with drop down need help.

    Hi Guys, I am populating an advance data grid in which one column has an item renderer containing a drop down. This drop down has 4 items. When user selects more than one row the drop down should contain only two items. In my case when user selects m