cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ABAP - Select Option and ALV Component Usage

Former Member
0 Kudos

Hi,

I'm new in ABAP Web Dynpro and i was trying to follow the SDN tutorial

Web Dynpro ABAP - Select Option and ALV Component Usage

In this video, we create a new Web Dynpro ABAP component that uses both Select Options and ALV. Developers can learn the basic mechanisms for working with both of these reusable components.

Following the link: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/39c54fe7-0b01-0010-0eb6-d63ac2bdd6...

I implemented and generated the web dynpro with success but when i execute a test i get

an error as

Note

The following error text was processed in the system EI6 : Exception condition "TYPE_NOT_FOUND" raised.

The error occurred on the application server EC6IDES_EI6_01 and in the work process 0 .

The termination type was: RABAX_STATE

The ABAP call stack was:

Method: DESCRIBE_BY_NAME of program CL_ABAP_TYPEDESCR=============CP

I have created a table zmy_table and trying to make USERID field as a select-options.I've written the code as shown below .

data: itab type standard table of zmy_table,

wa type zmy_table.

data:

node_employee type ref to if_wd_context_node,

elem_employee type ref to if_wd_context_element,

stru_employee type wd_this->element_employee ,

item_userid like stru_employee-userid.

  • navigate from <CONTEXT> to <EMPLOYEE> via lead selection

node_employee = wd_context->get_child_node( name = wd_this->wdctx_employee ).

  • @TODO handle not set lead selection

if ( node_employee is initial ).

endif.

  • get element via lead selection

elem_employee = node_employee->get_element( ).

  • @TODO handle not set lead selection

if ( elem_employee is initial ).

endif.

  • alternative access via index

  • Elem_Employee = Node_Employee->get_Element( Index = 1 ).

  • @TODO handle non existant child

  • if ( Elem_Employee is initial ).

  • endif.

  • get single attribute

elem_employee->get_attribute(

exporting

name = `USERID`

importing

value = item_userid ).

select *

from zmy_table

into table itab

where userid = item_userid.

node_employee = wd_context->get_child_node( 'EMPLOYEE' ).

node_employee->bind_elements( itab ).

Is there someone who can help me and can tell am i doing wrong?

Thanks in advance,

Dheeraj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please check what type name ( context attributes ) you have defined while creating the Select option ( In the ADD_Selection_Field method).

Go to transaction ST22 and it will show you the exact reason of error.

Regards,

Sumit Oberoi

Former Member
0 Kudos

Refer to this[ Thread|]