cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Dynamic UI Elements in Web Dynpro ABAP

Former Member
0 Kudos

Hi,

I want to an application in which the context nodes and the UI Elements for the second screen get created dynamically at run time based on the input on the first screen

First i have used this method :

cl_wd_dynamic_tool=>create_nodeinfo_from_struct()

to create the dynamic context nodes.

I have checked in debugger and the dynamic context node is getting creates successfully.

I have saved the reference for the context node in DYN_NODE.

Now for creating the dynamic UI Elements corresponding to the attributes of this context node, i call the method :

cl_wd_dynamic_tool=>create_form_from_node(

ui_parent = group_1

node = dyn_node

inputlength = 20 ).

But this thing is dumping.

This is the dump.

The following error text was processed in the system CG7 : Adapter error in &VIEW_ELEMENT_TYPE& "BP_ICLIENT" of view "ZWD_ONLINE_FORMS.FINAL_VIEW": Context binding of property VALUE cannot be resolved: Node FINAL_VIEW.1.BP does not contain any elements

Where BP_ICLIENT is the first attribute of the dynmaic context node BP created..

Please Help.

Thanks

Shivi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check this Tutorial, explains step by step process [Dynamic Programming|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]

Former Member
0 Kudos

Hey

This tutorial is really good.

It helped me in solving my problem

Thanks

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

create new node using the method add_new_child_node and add attributes using add_attribute

try this WIKI :

http://wiki.sdn.sap.com/wiki/display/stage/dynamiclayoutmanipulationinWD+ABAP

its working fo me

regards,

amit

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Refer to the below thread.

[;

Regards,

Priya

Former Member
0 Kudos

Refer this wiki :

https://wiki.sdn.sap.com/wiki/display/WDABAP/CreatingUIElementsDynamicallyinAbapWebdynpro+Application

More links are available on SDN reg Dynammci UI creations :

Have a look at the documentation for the WDDOMODIFYVIEW section of the phase model:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d2/8acd409cc4dd50e10000000a1550b0/frameset.htm

There is also the class CL_WD_DYNAMIC_TOOL:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/6935425394033be10000000a1550b0/frameset.htm

Also have a look at the example application DEMODYNAMIC.

eLearning on the topic here as well:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae814...

Edited by: Saurav Mago on Oct 26, 2009 12:23 PM

Former Member
0 Kudos

hey

This e-learning link helped.

Thanks