cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro :: Syntax error :: WDDOINIT method

Former Member
0 Kudos

Hi

Can anybody help me with an explanation for the same code used in two different programs one showing error.

The code which shows is correct is as below ( The code is written in method WDDOINIT).

Data : v_Element type ref to If_Wd_Context_Element,

Items_node type ref to If_Wd_Context_node,

v_Index type i,

v_Text type string,

itemList type STANDARD TABLE OF IF_INIT=>ELEMENT_radiogroup,

w_list LIKE LINE OF itemList.

itemList type STANDARD TABLE OF IF_INIT=>ELEMENT_radiogroup, -


> In this code my undestanding is that radiogroup is the node that i have created.

Similarly I did other coding as below.

data : v_element type REF TO if_wd_context_element.

data : level_node TYPE REF TO if_wd_context_node.

data : v_index type i.

data : v_text TYPE string.

data : it_levels TYPE STANDARD TABLE OF IF_INIT=>ELEMENT_levels,

w_list LIKE LINE OF it_levels.

In which my understanding is that ELEMENT_levels is the node created for the view.

The type "IF_INIT=>ELEMENT_LEVEL" is unknown.

please help me out of this as i am new to webdynpro.

Regards

Deric

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Deric,

what is your view name. I hope its not INIT. replace IF_INIT-element_level with IF_<view_name>-element_level.

Better practice would be to use WD_THIS->ELEMENT_LEVEL where WD_THIS by default will refer to the generated interface of the view.

BR, Saravanan

Former Member
0 Kudos

Thankyou very much Saravanan

Answers (0)