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

Similar Messages

  • 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 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

  • How to add screen elements at run time on button click in Web Dynpro abap?

    Hello All,
    I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
    Please help.
    Thanks

    Hi Ajinkya,
    This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
    Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
    Cheers,
    Amy

  • Web Dynpro ABAP Stylesheet - Portal Integration

    We have a Web Dynpro ABAP being displayed through a Portal iView.  The Portal server and the Web Dynpro ABAP server are separate.  Our problem is in getting the Web Dynpro ABAP to use the stylesheet of the Portal.
    We can make this work by forcing an external stylesheet (via application parameters, global Dynpro settings, or passed on the end of the URL), but we have to hard-code the full URI of the Portal stylesheet.  This would be very hard to manage if we hard-code every iView's CSS location (or set every individual Web Dynpro's application parameters), and we want instead for the Portal to supply whatever the user's stylesheet is dynamically. 
    So what we want is: if we change the Portal stylesheet, the Portal would just pass the new stylesheet URI to our ABAP Web Dynpro iViews without manual modification of the iViews.
    Here is an example of what works:
    http://our-abap-server.com/sap/bc/webdynpro/sap/cprojects?sap-ep-themeroot=https://our-portal-server.com/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/ourportalstylesheetname
    Shouldn't the Portal iView automatically pass sap-cssurl or sap-ep-themeroot to Web Dynpro ABAP?  We have "Supply Portal Stylesheet" checked on the iView… it just doesn't pass anything to the Web Dynpro ABAP.  Why wouldn't SAP pass this parameter dynamically to the Web Dynpro ABAPs?  Is this a product error? 
    There seems to be a great deal of confusion about this on the SDN message forums... I think this may be the core issue.
    We are using a 7.0 SP13 Portal with an ECC 6.0 SP12 backend.

    Now that you mention it, I ran into that exact same issue  -- the application parameters didn't work for hard-coding the theme.  The fix ended up being the web server semicolon thing I mentioned earlier (that was why the parameter didn't make it to the backend). 
    The themeroot is automatically sent to the backend from the portal, so you shouldn't really have to manually send it as a parameter anyways.
    I'd suggest talking to your network guys.  Also this could be the result of the SP you are on (we're on 13 for the portal and the backend system -- maybe this feature doesn't work in some earlier SP's?).  There are also some options to force the theme as a WD application parameter on the backend side, which you could check into.  Details on those are here:
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm]
    Also you could look at the requests being made by installing HttpAnalyzer in your browser.  You can inspect "post" parameters going from the portal to the backend system.  One of those posts (the first one to the backend system) should contain the parameter sap-cssurl (same kind of thing as sp-ep-themeroot).  This is where our problem turned up as this parameter was not being posted.
    Lastly, make sure that your frontend portal and backend portal are in the same domain.  For instance:
    frontend.domain.com
    backend.domain.com
    If your backend and frontend are in different domains it messes all kinds of things up, including stylesheets I think.  If you can't get around this, then read about domain relaxing (but I highly recommend getting the domains the same).
    When we started, ours were:
    portal.dx.company.com
    sap.company.com
    This created all kinds of problems.  Putting our systems in the same domain with the same protocol and fixing our little semicolon web server problem fixed basically all of our portal complaints.  Up until that time, we had also had many problems with session management (backend sessions were getting stuck until the HTTP timeout).
    That's all I know.   Good luck.

  • Possibility of Web dynpro ABAP development for SAP R/3 4.7 Version

    Hi Experts,
         I request for information regarding Web Dynpro ABAP. We have SAP R/3 4.7 as back end. And we are going to implement NetWeaver 2004s - Enterprise Portal 7.0 as front end. We are taking development option as Web Dynpro ABAP. Is it possible to do development in Web Dynpro ABAP where you have SAP R/3 version as 4.7.
    Regards,
    Venkat.

    Hi Heidi ,
    Thank you for your reply. I have assigned points to you. Could you pls give any SAP notes which is giving this information
    Regards,
    Venkat.

  • 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)

  • Cannot see Ecatt option in context menu in web dynpro abap in SE80 ECC 6.0

    Hi ,
    I saw a presentation by Thomas in which there is option of recording ecatt script on context menu in web dynpro abap application.we are on ECC 6.0 we are trying to record WDA applications and test them by using Ecatt but I am unable to see the option of recording the ecatt script in SE80 editor.
    Why could this be happening

    Thanks ,
    I saw that disappointing note ...any other way to automate web dynpro abap testing ? please advise.

  • Adding rows in web dynpro ABAP Dynamic Interactive form.

    Hi Experts,
              I am having problem in web dynpro ABAP Dynamic Interactive form.
    This is my scenario....
    I have a dynamic interactive form that has buttons to add and remove rows in a table. It works fine when I preview it , but when I render, view or save it using ADS, it no longer works. The "add" button actually does instantiate more repeating rows, because I put some trace messages in to count them, but the added rows are not displayed. How do I make them visible?
    In web dynpro java we write some coding in modify view to set the pdf form as dynamic
    IWDInteractiveForm iForm =
    (IWDInteractiveForm)view.getElement("<ID>");
    iForm.setDynamicPDF(true);
    simillarly what we need to write in web dynpro ABAP.
    Please give me solution for the same.
    Thanks,
    Sathish

    hi all,
             expecting reply from u all. pls help me and give some sugesstion.
    regards,
    vinoth.

  • I need information about Web dynpro ABAP Exception : ICF Service Node

    I need information about Web dynpro ABAP Exception :
    ICF Service Node "/sap/bc/webdynpro/sap/abcd/undefined" does not exist.
    Here abcd is application name.
    ICF Service Node exists and activated but kindly let me know from where "undefined" is coming .
    Please let me know your comments /views about  this.

    Hi,
    I think ur webdynpro service is not active after upgradation.
    You have manually activate it.
    Go go Tcode SICF,Execute the Initial screen,
    and in this new screen give service  as your application name and click on filter.
    You will get your service below which will be ur application name .
    right-Click on the deactivate and activate it or just activate it,.
    This shd work

  • Set Context From Event Handler in Web Dynpro ABAP

    Hi,
    I am passing some parameters when navigating from one view to another. Now I would like to set the context of the second view. How can I achieve that in Web Dynpro ABAP?
    Thanks.
    / Elvez

    I figured out ...
    element->set_attribute(
           exporting name = `NAME`      
                     value = value ).

  • How to put dynamic search help in web dynpro ABAP.

    Hi,
    I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
    Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
    Thanks & Regards,
    Raji.

    Hi ,
    Use this code to dynamically assign search help and to deactivate search helps.
    data lo_nd_info type if_wd_context_node_info.
    lo_nd_info = lo_nd->get_node_info( ).
    CALL METHOD lo_nd_info->set_attribute_value_help
    EXPORTING
    name = 'ATTR1' " Your attribute Name
    value_help_mode = '121' " Valid value help mode
    value_help = 'Z187442'. " Search help name
    The various possible values that you can pass to value_help_mode are as shown below.
    deactivated 101
    automatic 111
    ddic 121
    ovs 131

  • 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

  • Coding standards for Web dynpro ABAP

    Hello all,
    Can anybody please help me by providing the code review checklist for Web dynpro ABAP?
    Thanks and Regards,
    Rohini Shankar

    Hello friend,
    WebDynpro     *
    1     Do not implement Data intensive operations in UI layer     
    2     Avoid database selects in the WebDynpro code.Use the corresponding BAPIs ,Methods     
    3     Are ABAP OO Classes like Assistance class are being used for application coding ?     
    4     Are Windows/Views only used for the sole purpose of hosting views and context?     
    5     Are a reasonable number of views put in a single WD Component instead of creating multiple WD Components ?     
    6     Unneccessary usage of dynamic programming and dynamic component avoided      
    7     Are singleton nodes used in case of nesting in the context ?     
    8     Is deep nesting of containers, Groups and Tabstrips avoided ?     
    9     Is the UI element TreeByKey or TreeByTableNestingColumn used instead of the Tree UI element ?     
    10     Is the checkbox "Accessibility Checks Active" ticked in the WD Component properties     
    11     Are the WD Component Instances deleted when no longer needed (IF_WD_COMPONENT_USAGE=>DELETE_COMPONENT)     
    12     Are the OTR texts defined  for all the labels, texts(where ever appropriate) in properties of all the UI elements      
    13     Has the Generation limit been checked for all the components developed     
    14     Sufficients commets are written at the beginning of every major block to explain the processing logic.     
    *Error Handling     *
    1     Is SY-SUBRC checked after CALL function modules      
    2     Use Assertions if you face unexpected errors which usually never ever occur!     
    Extended Check and Clean Up
    1     Have following been removed :     
         ·      Unused variables                       
         ·      Unused text elements                   
         ·      Unused tables from TABLES statement     
         ·      Commented out parts of the code     
         ·      Code segments which do nothing     
    2     Is extended program check completed  and all errors/warnings removed      
    These are the things which i used for my project.
    Thanks,
    Sri Hari

  • Problem in web dynpro ABAP program

    There are 2 input fields on first view carrid, connid and one "GO" Button
    1) "FLIGHTINFO" is the node under context of first view
    2) " FLIGHTTAB "  is a node under context of component controller having cardinality " 0..n " ,Dictionary structure "SFLIGHT" (i have selected only these many attributes " carrid, connid, fldate, planetype, seatsmax and seatsocc " )
    3) I have created  Method "FLIGHTTAB_FILL" in component controller to fill context node FLIGHTTAB
    Insert the source code for doing the following:
    -     Navigate to context node FLIGHTINFO
    -     Get element at lead selection for context node FLIGHTINFO
    -     Get CARRID and CONNID 
    -     Fill an internal table with all datasets from database table SFLIGHT, who meet the constraints for CARRID and CONNID.
    -     Navigate to context node FLIGHTTAB
    -     Bind the internal table(having all standard fields of sflight ) to the context node FLIGHTTAB ( having those 6 attributs).
    4) On action GO ->Implement the invocation of Method " FLIGHTTAB_FILL".
    5) I have mapped node FLIGHTTAB to context of OUTPUTVIEW.  Display table on view OUTPUT_VIEW (for this i hav used code wizard).
    Problem: after entering values of connid & carrid I m getting proper entries in internal table. but output view is not at all trigger (although i have created plugs). Is it necessary that while binding internal table with context node FLIGHTTAB  should have same no of fields (i.e. in this case 6 )?
    I am a fresher, My concept of bindings and cardinality are not so clear so can anybody help me out? 
    Thanx in advance for replying.

    Hi johnright ,
        No i dont think it is necessary that while binding internal table with context node should have same no of fields as the internal table . You might get some improper values in the corresponding fiels but it will not lead to any error.
      In your OUTPUTVIEW once you created the table UI element in layout and you bind it to FLIGHTTAB node you dont have to use any code wizard method to display the values. If the node contains values it will display automatically. (in your case you are filling it in step #).
    Check :-
    1. In your On action GO after filling the table you are firing the out bound plug :-
        WD_THIS->FIRE_INITIAL_OUT_PLG(
    2.All outbound plug and inbound plug are link properly and every thing is ACTIVATED.
    If still unable to find the error try to debug method wise and find where the error occurs and reply to us.
    Binding:-
    In web dynpro ABAP you will not able to get any value of any variable outside of any method. Here we use context node which is referrence that we create reference to any particular structure we required. Now to hold the values you need to bind
    the values of your internal table to the context node.
    If the node is in view then its values are visible to all the local method of the view.
    If the node is in component controller then  the you bind a value to the node from one view and you can get it in another view.
    Remember binding and mapping are not same.
    Mapping is done between node like inthe second scenario i have explained you need to create a node in view controller and then you need to map it to the corresponding view of component controller to send values across view.
    cardinality:-
    Each node contains data fields that represent one of the following:
        An individual instance of an object type
        A table of instances.
    This property of a node is known as its cardinality of table of instances.
    If you need table instance :- 0..n or 1...n
       In case of 1...n one default value is created. generally we use this as mainly we need to work with table.
    In case you need a individual instance of a object or like you want value like a structure only :-  0...1 or 1....1.
    Thanks & Regards,
    Monishankar C

Maybe you are looking for