Web Dynpro ABAP Table in runtime

Hi,
I have an ui table that has 3 table columns but in runtime i want to add 3 table columns more for it i use add_grouped_column( lr_column ). but when i do a test i see that the 3 table columns that i want to add in the last of table is in the begining.  How can i do that the table column that i add is created in the last of table?
Thnx.

Hi Paulina,
I dont think you can add the colums to a table UI element dynamically @ runtime. Instead, you can add all the columns to your TABLE UI @ one shot and hide the unwanted elements using a WDUI_VISIBILITY Context element. Set this context element based on your requirement to display the columns dynamically.
FYI...For WDUI_VISIBILTY variable 1 - Hide and 2 - Display.
Hope this helps.
Regards
Raja Sekhar

Similar Messages

  • How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table

    Hello,
    How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table ?
    Thanks

    hi,
    Check out this link for sorting in Table.
    Sorting option in WebDynPro ABAP UI Table
    steps to follow :
    ->Have the data in internal table (itab).
    ->Now use sort command for the particular column which ever you want to sort.
      e.g sort itab descending by <Column>.
    ->Now you can bind the internal table with the Context Node which is binded to Table.
    I hope it helps.
    Thanx.

  • Web Dynpro ABAP - Table Scroll Performance

    Hi,
    In the standard ESS Timesheet application, we have created a custom pop-up screen to select the cost assignment for the time entry. The pop-up screen is a search help developed by implementing the IWD_VALUE_HELP interface and is a complex screen with multiple view containers/views and multiple tables and tabs.
    In the pop-up screen, the default number of visible rows in the table is set to 5 and the user needs to scroll if there are too many entries. The performance during scrolling is very bad and takes about 4-5 seconds for each scroll. All the traces in the backend show that there is hardly any processing being done that would take so much time. HTTPWatch trace shows 0.4 seconds response time, so I'm wondering why is the browser taking 4-5 seconds to load. Is it because the timesheet page itself is complex and since the pop-up screen is also heavy, the browser takes so much time to lay out the whole page for every scroll?
    Any other ideas?
    Any inputs will be greatly appreciated.
    Thanks,
    Manish

    I have noticed that pagination is relatively faster when compared to scrolling. Try making the same performance measurements by removing the scrollbar (by changing the setting in the WD application parameters) and introducing pagination instead.

  • Reading Dynamic Table Values in interactive form (web Dynpro ABAP)

    Hi All,
    I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
    I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
    In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
    How can I resolve this problem.
    Thanks and Regards,
    Boopathi M

    that means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
    probably addNew() mathos may be useful to you.
    it appends a new record to the record set.
    xfa.sourceSet.dataConnectionName.addNew()
    also when on the exit event of the table field, do the following:
    var i = xfa.parent.index
    $record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
    xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname)

  • In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    In Web Dynpro ABAP, Can we merge two cells of a row in a table ?

    Hallo Jagannatha,
    the new table feature is available in SAP NetWeaver 7.0 EhP2 (SAP ERP 6.0 EhP5, SAP Business Suite 7i2010) named 'TableMultiEditorCell'. See [SAP Online Help|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm] for more details ...
    "This UI element is a table cell variant that enables several UI elements to be placed in one table cell. This type of cell can be used for "one click actions". ...
    Regards, Bertram

  • Problem with Table display in Adobe Form of Web Dynpro ABAP

    Hi Team,
    I'm trying to display a table in Adobe Print Form (not interactive). The table is bound to the context node in the Web Dynpro ABAP where the cardinality is 0:N. I get a short dump. Don't know what to do here. I'm able to display individual fields from my context successfully. Looks like something is missing when I try to display a table. Any pointers to display a data table in Adobe? Any step by step example you know of where I can find out what I did wrong? Many thanks for your time
    We are on support pack SP06 on 2004S release.
    DUMP INFORMATION:
    Short text                                                               
        Access via 'NULL' object reference not possible.                 
    What happened?                                                           
        Error in the ABAP Application Program  The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    An exception occurred that is explained in detail below.                    
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CREATE_PDF" "(METHOD)", nor was it propagated by a RAISING clause.

    Hi Thomas,
    We upgraded our system(2004S) to SP10 so that we can use the ADOBE form printing in Web Dynpro ABAP but could not apply note 1034425 because of the validity constraints in SNOTE. All the pre-requisite notes are already in the system apart from one note 1029721 which talks about supporting input helps. We don't want to use input helps in our system and cannot upgrade to SP11 because of problems with Business functionality.
    Questions:
    1) Is note 1034425 absolutely dependent on 1029721?
    2) If NOT, can someone please correct the validity so that we can implement using SNOTE.
    3) Would it be OK if we manually apply the changes specified in 1034425 without implementing 1029721?
    4) If all of the above is not applicable, is there any other note which fixes the above mentioned short dump.
    Your help in this matter will greatly help us in using the ADOBE services provided by SAP WDA.
    Thanks much

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

  • Web DynPro ABAP - Disable a entire row in the Table of the output.

    Hi Web Dynpro Experts,
    Need ur Help.!
    I have a requirement to disable the one row of the table in web dynpro ABAP
    For example . my table is like
    Field1   Field2
    A           Success
    B            Failure
    C            Failure
    I need to allow the User to select the record only if its status is Success,if status is Failure then i should not the allow user to select.
    This enabling and disabling of the rows should be done before displaying on to the Screen.
    Please suggest me ASAP.
    Thanks,
    Akila

    Hi Akila,
    please try this.
    Create a node (Eg: TEST) of type 0-n and 0-1. Take attributes attr1, attr2, flag (of type BOOLEAN). Create a table and give the TEST node as datasource. Now using "Create Binding" create columns for attr1 and atte2. Now, bind the read-only property of the columns with flag attribute.
    Now, in the INIT method, set the table values like this:
    For examle, if you want to disable row having test2,
    ls_test-attr1 = 'A'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'B'.
    ls_test-attr1 = 'TEST2'.
    ls_test-flag = 'X'.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'C'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    lo_test->bind_table( lt_test ).
    By doing this, 2nd row gets disabled.
    Also, if you already have the internal table with values, based on some condition you can change the value of flag and bind the table to node.
    Hope this helps you, Please let me know in case of any queries.
    Regards,
    Manogna

  • How to display an status Icon in Table UI web dynpro ABAP?

    Hi Experts ,
    How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?
    Thanks in advance.
    Regards,

    Hi Laeeq,
    click on table cntrol n place it on the screen..
    now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.
    in the PBO..
    loop at internal table and call module in the loop (say) .
    MODULE ICON_DISP.
    now in the module try the foll code :
    module icon_display output.
    check some condition and assign the icon to the variable icon_r
      icon_R = 'ICON_GREEN_LIGHT'.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name                        = ICON_R
        TEXT                        = ' '
        INFO                        = ' '
        ADD_STDINF                  = 'X'
       IMPORTING
         RESULT                      = ICON
      EXCEPTIONS
        ICON_NOT_FOUND              = 1
        OUTPUTFIELD_TOO_SHORT       = 2
        OTHERS                      = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      endmodule.
    where icon(35) and icon_r(35) type c .
    hope this helps u..
    Regards
    Aparna

  • Web dynpro Abap - Adobe Form Table Dynamic

    hi Friends ,
    I created one table in ADOBE interactive form  and i kept two button for row add and row delete in table
    it is working fine in Adobe fomr Preview form
    but i deployed in Web dynpro abap this functionality is not working is there any reason
    Pls give suggestion
    Regards
    Krishnan R.

    Krishnan,
    Check if the form is Interactive and also  have you installed Adobe Reader Rights on the server. If not please check note 736902 and ask BASIS to apply them.
    Chintan

  • Web Dynpro ABAP: Assigning of Conversion Exits in ALV

    Hi,
    We are currently developing a generic data display application using ALV technology in Web Dynpro ABAP. "Generic" means that the structure of the data is created dynamically during runtime (using RTTS) and that even the contained data elements are created dynamically without any relation to DDIC. The generation is based on metadata like field name, data type, length, decimals, conversion exit.
    Our problem is that we were not able to find a way to assign the conversion exit of a data element ("column") in Web Dynpro ALV. Without this feature, no output conversions will take place since the data elements have no relation to DDIC. In the "classical" ALV, this could be easily done using method SET_EDIT_MASK of class CL_SALV_COLUMN.
    Is there a similar method in WebDynpro ALV or at least an alternative approach to assign a conversion exit to a column or cell?
    Thanks for your help in advance.
    Best Regards,
    Sven

    Hello Sven Hader,
    As you said you are generatiing the metadata like field name, data type, length, decimals, conversion exit dynamically.
    Can you please let me know how you are diong this?
    Meanwhile, you can try this approach to assign a Conversion exit to ALV Table column attribute dynamically.
    DATA:     lv_data                         TYPE  dd04v,
                  lv_mode_ext2int          type   ESEBOOLE. "Conversion mode that you are in
      read the data from the database
        CALL FUNCTION 'DDIF_DTEL_GET'
          EXPORTING
            name                = lv_ddobjname
            state               =   iv_object_state
            langu               =   iv_langu
          IMPORTING
            dd04v_wa         =   lv_data
          EXCEPTIONS
            illegal_input       = 1
            OTHERS           = 2.
        CHECK NOT lv_data-convexit IS INITIAL.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_INPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_input.
        CONCATENATE 'CONVERSION_EXIT_' lv_data-convexit '_OUTPUT'
          INTO cl_im_imp_ehs_material_erp=>mv_conversion_exit_output.
      IF lv_mode_ext2int = 'X'.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_input
            TO <lv_funcname>.
      ELSE.
        ASSIGN cl_im_imp_ehs_material_erp=>mv_conversion_exit_output
            TO <lv_funcname>.
      ENDIF.
    (3) call the conversion exit
      CHECK <lv_funcname> IS ASSIGNED.
      TRY.
          CALL FUNCTION <lv_funcname>
            EXPORTING
              input  = iv_value
            IMPORTING
              output = ev_value.
          IF sy-subrc <> 0.
          ENDIF.
        CATCH cx_sy_dyn_call_illegal_func
              cx_sy_dyn_call_illegal_type
              cx_sy_dyn_call_param_missing
              cx_sy_dyn_call_param_not_found.               "#EC NO_HANDLER
      ENDTRY.
    Endif.
    I hope it should work.
    Thanks,
    Bharath.K
    Edited by: Bharath Komarapalem on Dec 16, 2008 2:47 PM

  • BSP vs Web Dynpro ABAP

    Hello,
    we are looking for a listing that states the functional and technical differences between Web Dynpro ABAP an BSP.
    Is there anybody who has come along such a list ?
    Tx a lot in advance!
    Best regards,
    Ana

    Annette,
    check this
    The SAP Web Application Server (WAS) provides a page-based programming model with server-side scripting as well as server page technology for developing, designing and implementing Web applications:
    Business Server Pages (BSP). Server-side scripting enables direct access to all elements in the application server (such as function modules, database tables, ABAP Objects, and so on.).
    We can create HTML pages or Business Server Pages (BSPs) with server-side scripting in ABAP or JavaScript.
    The HTMLB and XHTMLB HTML Business libraries are available as BSP Extensions for a uniform layout and its associated usability advantages.
    And In the Web Application Server, the presentation layer is separate from the business logic. This makes it possible to implement front-end technology.
    Why BSP NOT WebDynpro
                              BSP
                  ABAP WEBDYNPRO
    Currently PMUSA/JMC customers are using Fire fox (Mozilla), Internet Explorer and Netscape navigator web browsers to access WEBUYPM application.
    BSP supports these web browsers.
    Restricted (Some of the features will not be supported by WebDynpro)
    Existing WEBUYPM application is written in HTML, Business HTML and JavaScript language.
    BSP supports these languages. And it allows even to mix ABAP, HTML and JavaScript thus has more flexibility to convert WEBUYPM application into BSP.
    Web Dynpro does not support HTML/JavaScript.
    Existing WEBUYPM displays the trade communications (Information tab) based on JavaScript and custom configuration file
    BSP supports JavaScript, we can display the trade communications in BSP too.
    Web Dynpro does not support Java Script.
    Existing WEBUYPM application has different colors schemes, Logos and graphical elements for PMUSA/JMC companies.
    BSP support s multiple color schemes/logo. These color schemes can be set dynamically based on company code selection at runtime.
    Separate Themes has to be developed for each User Interface elements.
    Development effort needs to be involved to even display a logo.
    BSP supports client side (user) validations. As most of these validations can be done at client side, the no. of hits on the server can be reduced and thus giving better response for the user inputs.
    In this way, performance can be increased.
    Web dynpro does not support any client side validations, every time the request must be sent to server to validate the useru2019s input. This increases the traffic and reduces the performance
    WEBUYPM application has logos, images.
    BSP supports Client side caching, and thus loads these element from client side very quickly.
    Web dynpro supports very little use of caching on the client side, and hence quite a significant delay in starting on some customeru2019s browsers.
    BSP has no restriction on user interface possibilities, Ex. Grid, drop down boxes, Font colors, size etc.
    Significantly more restrictive in user interface possibilities.
    Ex. Only those fonts, which are provided by SAP, can be used.
    Appearance can be changed dynamically using same web pages, to support different colors for different companies.
    We can have same (or better) look and feel if we convert the application into BSP.
    As there is no HTML coding involved in web dynpro the same look and feel as we have it today can't be achieved by using web dynpro.
    BSP is built for developing any type of web application (including mobile applications. It can be accessed from desktop, laptop, and any kind of smart devices like PDA.
    Web dynpro applications can not be accessed from PDA s (Not possible)
    Why WebDynpro NOT BSP
                 ABAP WEBDYNPRO
                               BSP
    Personalization can be given to the end user if they do not want see any of the user-interface elements.
    We can not hide any of the user-interface elements (Ex buttons ex) during the runtime.
    Note - Current WEBUYPM application does not support any of these options.
    Currently we are setting/retrieving the runtime context values in a session.
    Web dynpro supports State full applications.
    No additional development would be required. 
    BSP also supports to set runtime values and to retrieve the runtime context values, but minor development would be required to achieve this functionality. 
    Currently users can see view source for WEBUYPM HTML pages.
    Using Web dynpro this can be restricted thus providing more security to the application.
    HTML view source can be available to the users, Users can see the HTML client side code (not server side coding) as it does today.
    By using Adobe Flash Island, powerful web pages (RIA) can be created.
    But, Flash Island comes with Net weaver.
    BSP does not support Flash Island. But, BSP supports Java Script.
    JavaScript is essential for the new trend of rich internet applications (RIA), it is used by all the new applications, Ajax, Widgets, Flash, and even Microsoft is supporting JavaScript for the new generation of RIA
    Web dynpro has wizard tools to generate the code to create/configure the User Interface elements.
    Development effort would be required to create UI elements.
    We dynpro has uniformity as we use standard colors provided by SAP
    Uniformity can be achieved by using style sheets (minor development would be required).
    Thanks
    Bala Duvvuri

  • Question about meta-data of Web Dynpro ABAP / Web Dynpro Java

    Hello together,
    everywhere I can read, that Web Dynpro meta-data is platform independent.
    I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
    that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
    - What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
    - just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
      generate a Web-Dynpro Java Component out of this?
    I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
    field data. But this is a RAWSTRING and I don´t know how to make I "readable".
    I must know this for my thesis for my studies, not for work.
    Thank you very much !!!!
    Greetings,
    Oliver

    Me again,
    I am not sure if I understood it right...
    The meta-data which describes the visual part of a view is saved as XML and
    would be rendered i.e. in the webbrowser... Right?
    What about the meta-data of the Web Dynpro application?
    Is this meta-code into an other structure or XML too?
    Thank you very much.
    Many Greetings,
    Oliver

  • Web Dynpro ABAP in SAP E-Recruiting

    Hi,
    We just imported SP8 for our SAP E-Recruiting 6.0. SP8 offers Web Dynpro ABAP as candidate UI. One question we have is how WD pages incorporated for recruiters who still use BSP pages. For example, when a recruiter logs into E-Recruiting and finds a specific candidate, he/she can click on "Candidate Profile" to get to that candidate's pages. In BSP technology, recruiter actually uses exactly the same pages that candidate uses for Work Experience, Education, etc.. With candidate UI using WD technology, does recruiter use the same WD pages when displaying candidate profile information? I have been searching all the possible places, such as IMG, SICF, in order find a spot so that I can set the switch on, but so far unsuccessful.
    Any help is greatly appreciated.
    Li

    Hi Li ,
      At best of my understanding in WD ABAP , its possible to make one WebDynpro page serving same purpose ( showing profile deatils  ) visible for manty( Candidate , as well as Recruiter ) ....
    I would like to know what exactly you want from web Dynpro ..then I will be in better position to tell you.
    FYI ...
    1) Web Dynpro ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    2 ) I can give you links that can help you a lot.
    First of all start doing SAP SDN tutorials .
    Create some compenents with BAPI , Component usage and ALV .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Try to Download demo tutorials from SDN library & Try to search WebDynpro ABAP WebLogs .
    Wait not just that SAP has provided you with ample demo example of WD ABAP already bundled with SAP . Just Try out Components starting with WDR . I can tell you few like WDR_TEST_EVENTS ( It shows how every UI elments to use )
    See packages like SWDP_DEMO , SALV_WD_DEMO
    there are many more .
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    The specified item was not found.
    Cheers
    Parry

  • How to fix few rows in ALV after filtering on a column in Web Dynpro ABAP

    Hi,
    I have the following requirement:
    In an ALV, when i filter based on a column, then this filter should not be applied to 2 of its rows.
    These rows relate to totals. The totals are manually calculated as they require other component information too.
    Along with the filter result, these total rows have to be displayed.
    Let me know in case ALV in Web Dynpro ABAP supports this functionality.
    Regards,
    Rekha

    Hi,
    ALV table does not support this functionality.
    You can display the total in an another table instead.
    I had the same requirement with total and had to display the totals separately.
    Thanks,
    Feroz

Maybe you are looking for

  • Macbook Pro won't start most of the time; freezes constantly.

    I always come to these forums for answers and I've always found them, so I thank you in advance for everything you do. Unfortunately, I can't find an answer for this one... My Macbook Pro 13" (early 2008?, maybe mid-2008?) had a weird thing happen th

  • How to create a new user in Netweaver system for ABAP training?

    Hello, I had been learning ABAP using a trial version but recently purchased and installed a developer subscription of Netweaver 2004 SR3. Can someone please tell me the best way to create a new user for ABAP development and assign the needed transac

  • REPORT OUTPUT IN WORD OR EXCEL

    Hi, I need to convert my report output to word document with a customised logo in the word document. Can anyone please help me out by providing the necessary procedure (step by step process or code in abap). Thanks and Regards AK

  • Running FB08 in background instead of foreground

    Hello All, I tried to run BDC for FB08 but it does not post the reversal entries. I tried CALL_FB08 FM too but still no luck. Could some one help me out. The transaction process needs to be attached to a customized FI program for cheque reversal for

  • How to  build a html5 project

    Hai all, I am developing a  html5 project on limejs.Now i want to build my project.   How can we build a html5 project.Any Idea?