Create dynamic table in web dynpro abap

Hi Friends,
I want to create several tables in a web dynpro. For this reason I have created a View, a group1 and a context node.
Now I want create a table for each characteristic group from cabn in the ui group1.
For this reason I want to use create_table_from_node and I have to craete dynamicly attributes in the node.
Is it the propper way  or is there a different approach.
So in this case
1. I read the node
2. craete attribute for each characteristic group in this node
3. create a UI Table with create_table_from_node for each attribute
4. bind the data to the UI Table
Can I do the same without to craete attributes?
Thank in advance.
RG. Jimbob

Hi Jimbob,
Have you looked at using the row-repeater UI element? You could then have as many tables as per your characteristic groups.
Although this would be more difficult if the attributes of each table were to also be only known at run-time. (I'm not sure that this is the case though from your description of the issue.)
so have a context of the form:
Context Root
--->node_characteristic_group (0..n)
>node_char_group_details(0...n) (non-singleton child node)
then bind your row repeater to node "node_characteristic_group " and bind the table inside the row repeater to node "node_char_group_details".
Each time you had a new element in the node_characteristic_group you would get a new table...
Much easier to support that anything dynamically created.
Cheers,
Chris

Similar Messages

  • 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

  • How to create value help in web-dynpro-abap

    Hi ,
         can anybody tell me detailed step for creating value help in web-dynpro-abap .

    Hi,
    Web Dynpro provides two types of pre-implemented search helps :
    1. ABAP Dictionary Search help
    2. OVS
    Input Help for WDA
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm
    There is  a blog on implementing OVS help in WDA. You can refer below link for sample code.
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    In addition, you can also provide help through Drop Downs and Select options.
    Working with Select options in WDA
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e
    Plz reward if helpful.
    Thanks.
    Raj.

  • Dynamic context in web dynpro abap: recursion node is possible?

    Hi,
    i'm working with web dynpro ABAP and I need to create a dynamic recursion node. Is possible?
    thank you.
    Regards.
    Al

    Hello Saravanan,
    this is my code that creates a context node with recursion node, but supply_method i never called. why? could you help me?
          CALL METHOD lr_root_info->add_new_child_node
            EXPORTING
              name                         = y_name
              is_mandatory                 = abap_false
              is_multiple                  = abap_true
              is_mandatory_selection       = abap_false
              is_multiple_selection        = abap_true
              is_singleton                 = abap_true
              is_initialize_lead_selection = abap_true
              is_static                    = abap_true
              supply_method                = 'SUPPLY_NAV_LIST'
            RECEIVING
              child_node_info              = lr_node_info.
          ls_attribute-name = 'TEXT'.
          ls_attribute-type_name = 'STRING'.
          CALL METHOD lr_node_info->add_attribute
            EXPORTING
              attribute_info = ls_attribute.
          ls_attribute-name = 'ENABLED'.
          ls_attribute-type_name = 'WDY_BOOLEAN'.
          CALL METHOD lr_node_info->add_attribute
            EXPORTING
              attribute_info = ls_attribute.
          lr_node_info->add_recursive_child_node( child_name = y_name_nav child_info = lr_node_info is_static = abap_false ).
    Thank you.
    Al

  • Portal dynamic iView from Web Dynpro ABAP?

    I wish to use a "Dynamic iView" from a Web Dynpro ABAP application, but it appears the API is only available in Web Dynpro Java.  Can this feature be used from Web Dynpro ABAP, or can this be accomplished in another way?
    Scenario: I have two iViews on a page, one Web Dynpro ABAP and another iView whose source I want to change dynamically based on something a user clicks in the Web Dynpro ABAP.
    Dynamic iView:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/a72c155df77038e10000000a422035/frameset.htm

    So you are suggesting the WDA fires an event to a new WDJ that we would need to create that would in turn use the Dynamic iView service mentioned in that help document?

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • Create customer master in Web dynpro abap

    Hi Gurus,
    i'm new to web dynpro abap...
    My requirements is given below... which is the standard BAPI for create customer master data... then how to call workflow in web dynpro application without using portal server (uwl)... please reply as soon as possible
    1) Create customer master
    2) Change Customer master
    3) Display customer master
    4) When the customer master record is created it should trigger a workflow to another user for approval. Once approved, the customer master should be created in the system
    5)The customer master record creation should be through a bapi call.
    6) When the system master record is being created, duplication check should be performed for name, city, postal code,email I'd etc.
    Regards
    vijay.

    Dear Vijay,
    HAVE YOU GOT THE SOLUTION FOR THE ABOVE REQUIREMENT.. i TOO HAVE GOT THE SAME REQUIREMENT AND I CAME ACROSS YOUR THREAD.
    Please do reply with your answer.
    Regards,
    Sujit K karn

  • Create Multiple dynamic Node in Web Dynpro Abap

    Hi Friends,
          I need your help.My object is to create Multiple dynamic dropdown UI element.I am able to create this dynamic Dropdown element. But i need to assign default different values to this dropdown elements.So i created dynamic nodes for each dropdown and created attribute with same name as that of value table.
       My issue is its giving me error as : -
    Lower-Level Node with Name ZDCN_BRD_STATUS.ME Does Not Exist
    Help me to rectify this error..
    Regards,
    Santosh

    Hi,
    This information is not enough for anybody to help you. Write more in detail about your code and where exactly in the code this error is coming.
    One trial experiment can be that you split your problem into two or more level.
    Create several nodes in your context with attribute and sample data.
    Create Dynamic UI (DDBI) and Bind these attributes to your DDBI.
    When it works perfectly, then tryout how to create the Node and attribute dynamically. This way you are not making it too complex to solve this problem.

  • Upload .xls file in internal table in web dynpro abap

    Hi everyone,
    i want to upload .xls(excel file) into an internal table.....after lots of attempts i came to a conclusion that web dynpro only supports .CSV(another format of excel file) to be uploaded into internal table....i tried many ways....is there a way i can upload .xls file...kindly help me in the same. following is the code i m using
      DATA LO_EL_CONTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_CONTEXT TYPE WD_THIS->ELEMENT_CONTEXT.
      DATA ITEM_FILE TYPE WD_THIS->ELEMENT_CONTEXT-EXCEL_UPLOAD.
      get element via lead selection
      LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
      @TODO handle not set lead selection
      IF LO_EL_CONTEXT IS INITIAL.
      ENDIF.
      get single attribute
      LO_EL_CONTEXT->GET_ATTRIBUTE(
        EXPORTING
          NAME =  `EXCEL_UPLOAD`
        IMPORTING
          VALUE = ITEM_FILE ). "xstring format
    DATA S_CONT TYPE STRING.
    DATA CONVT TYPE REF TO CL_ABAP_CONV_IN_CE.
    DATA: FIELDS1 TYPE STRING_TABLE.
    1st tried this code-> using "cl_abap_conv_in_ce"
    CALL METHOD cl_abap_conv_in_ce=>create
    EXPORTING
    *encoding = c_encoding "optional
    input = ITEM_FILE
    RECEIVING
    conv = CONVT.
    CALL METHOD CONVT->read
    IMPORTING
    data = S_CONT.
    when it didnt work out...then tried followin function module
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          IN_XSTRING        = ITEM_FILE "xsrting
       IMPORTING
         OUT_STRING          = S_CONT
    TYPES: BEGIN OF TY_TAB,
           NAME_CHAR TYPE  STRING,
           DESCR_CHAR TYPE  STRING,
           NUMBER_DIGITS TYPE  STRING,
           END OF TY_TAB.
    DATA: FIELDS TYPE STRING_TABLE.
    DATA: LV_FIELD TYPE STRING.
    DATA: S_TABLE TYPE STRING_TABLE.
    DATA: ITAB TYPE TABLE OF TY_TAB.
    DATA: STR_ITAB TYPE TY_TAB.
    *splits string based on new line
    SPLIT S_CONT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE S_TABLE.
    FIELD-SYMBOLS: <WA_TABLE> LIKE LINE OF S_TABLE.
    LOOP AT S_TABLE ASSIGNING <WA_TABLE>.
    splits string on basis of tabs
      SPLIT <WA_TABLE> AT ',' INTO
                      STR_ITAB-NAME_CHAR
                      STR_ITAB-DESCR_CHAR
                      STR_ITAB-NUMBER_DIGITS.
      APPEND STR_ITAB TO ITAB.
    ENDLOOP.
    I am able to do the uploading if the file is in .CSV format and not .XLS format....
    there are lots of forums on SDN for the same....but at the end there is no solution provided.....
    experts kindly solve it this time...thanks in advance

    Hi,
    It is not possible to upload an xls file because it will be having some binary characters. better to go with .csv file format.
    Refer this [link too|Re: Excel File Uplaod] it will explain you clearly.
    Regards
    Arun.P

  • Need to pass values to Internal table in Web dynpro ABAP

    Hi all,
    I need to pass table values for the below FM in web dynpro.
    CALL FUNCTION 'ZFMHR_RWF'
      TABLES
        PB0006        = 
    How do we declare and use Internal tables in WEBDYnpro.
    Regards,
    Vijayakumar S.

    hi,
    u mighnt need to show the internal table value in some table UI in the WebDynpro ABAP. So u can use the method bind_table for the same to bind ur context node with the internal table values.u can declare the internal table in the same  way as u do in the normal ABAP.
      DATA :itab TYPE STANDARD TABLE OF ztable.
    // itab is my internal table which can be of either ztable or standard table type
    now u can use the code wizrd(control+F7) and use the method bind_table .
      DATA: lo_nd_cn_node TYPE REF TO if_wd_context_node,
                lo_el_cn_node   TYPE REF TO if_wd_context_element,
               ls_cn_node        TYPE wd_this->element_cn_node.
    *     navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node(
      name = wd_this->wdctx_cn_node ).
      lo_nd_cn_node->bind_table( itab ).
    // where cn_node is the context node which is bind to ur table UI and itab is the value which is populated from ur FM
    regards,
    Amit

  • How to create dictionary table using web dynpro?

    Dear Experts,
    Please clarify my doubts.Im new in this EP development.
    Im using EP6 portal with NWDS6 for dev.
    My Doubts are :
    Im trying to develop a web dynpro application which captures some data and insert/update in Table.
    => If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
    => If it is automatically created how to insert or update that table.
    can any one plz help.
    thanks and regards,
    Viswes.

    Hi Visweswara
    This will use the concept of EJB.
    Refer these for creating Dictionary tables...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    As far as answer to your second question is concerned,
    => If u create a structure Dictionary in web dynpro application  it will not create the table in Portal database..
    You can access that table via creating a web dynpro iview in Portal..
    Only application can accessed after deployment via iviews in Portal..
    Thanks...
    Rewards Appreciated...

  • Configuration of alv table in web dynpro abap

    Hi,
    I'm using component SALV_WD_TABLE in my component. I have created a configuration for the alv.
    I want to hide a column in the alv.
    Do you know how to do it using the configuration?
    Thanks in advance
    Karim

    >
    Karim Ja wrote:
    > Thomas,
    >
    > In fact, i think that when user changes the global view and clicks on save button, a copy of the view is created(with the same name) and is then available for all other users. This copy can be delete but not the "standard" global one.
    > Is this possible?
    >
    > Now I'm thniking about creating an ehancement for the standard web dynpro component and hide the column using abap code.
    >
    > Is it a good idea?
    >
    > Kind regards
    > Karim
    Make sure that your security is setup correctly.  End users without administrative rights can not create globa views. When they get the Save View As Dialog, what values do they see for the Assignement field?  When I logon without Adminstrative mode, I only see Assignment of User:
    http://www.flickr.com/photos/tjung/3406367817/
    When I launch the same transaction in Administrative or Configuration mode, the Assignment Option is All and only then do I have the optoin to transport the View:
    http://www.flickr.com/photos/tjung/3407176898/
    Is it good to modify the standard ALV component?  I would say not.  First of all the functionality you seek is already in the system.  Perhaps you need a support package application if your system has a very old SP level. In genreal changing the ALV component, would be a bad idea because it is very widely used and very generic.  It is also quite often changed by SAP.

  • Creating Search Help for Web Dynpro ABAP (FPM) Forms

    Dear All ,
    I am very new with SAP HCM P&F with FPM form. I am stuck with field search help functionality in FPM form. I have created on search help using 
    Web dynpro component to get all travel requests for all employees and linked it to FPM form field and its working fine....
    But.... my requirement is how to filter travel request based on the PERNR (employee number) field in FPM form.
    I think it can be achieved by using importing parameter LISTENER of interface IF_WD_VALUE_HELP_LISTENER but I am clueless how to pass PERNR to this interface to get travel requests for only employee number in field PERNR.
    Kindly help me out in this issue.
    Chohan

    Use this code in set_value_help_listener
    for e.g to read effective date.
    wd_this->help_listener->f4_context_element->get_attribute( EXPORTING name = 'EFFECTIVE_DATE' IMPORTING value =  wd_this->gv_eff_date ).

  • Creating dynamic file through web Dynpro

    Hai All,
         Please tell information about my question.
        HOW TO FETCH CLLIENT MACHINE ADDRESS IN WEB DYNPRO.
    Best Regards,
    S.V.Selva Bala.

    Hi Saravanan,
       Go through Re: IP problem in UME this thread. It might help you.
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty
    Message was edited by: Satyajit Chakraborty

  • Scrolling to Standard table in web dynpro abap

    Hi Frnds,
              HI have created table i need for that scroll vertically and horizontally , as per frnds suggestion keeping in webdynpro application adding the parameters wddonavigator but its getting error can any please explain clearly and any screen shots regards tyo that .
    thanks.

    ok

Maybe you are looking for