cancel
Showing results for 
Search instead for 
Did you mean: 

Editable ALV tutorial -Field "R_PARAM" is unknown.

Former Member
0 Kudos

Hi,

I am practicing [ALV Editable Tutorial|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1].

I am stuck at Implement event handler ONDATACHECK.

METHOD ondatacheck .
DATA: node_node_flighttab TYPE REF TO if_wd_context_node,
elem_node_flighttab TYPE REF TO if_wd_context_element,
lt_sflight TYPE if_resultview=>elements_node_flighttab.
* save data only if no error has occured
CHECK r_param->t_error_cells IS INITIAL.
* navigate from <CONTEXT> to <NODE_FLIGHTTAB> via lead selection
node_node_flighttab
= wd_context->get_child_node( name = `NODE_FLIGHTTAB` ).
..............

When I do a syntax check I am etting following message.

I guess I need to create a parameter R_PARAM.. What Should i refer it to? or am i doing something

wrong?

Error:

Method ONDATACHECK

Field "R_PARAM" is unknown. It is neither in one of the specified

tables nor defined by a "DATA" statement. .

Rgds

Vara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Resolved it.

I missed this.. part

1 Select Method type as 'Event Handler'

2. In the Event Column, Do F4 and select 'On DATA' Event.

Rgds

vara