Skip to Content
0
Former Member
Dec 12, 2006 at 12:08 PM

How to handle events at ALV

40 Views

Hi

I have a ALV report using Function modules. the requirement is one column will edited and based on change of the fld i need to goto initial screen.

The code is

INITIALIZATION.

DATA: param TYPE vrm_id,

values TYPE vrm_values,

value LIKE LINE OF values.

*param = 'DSPOS1'.

value-key = '1'.

value-text = 'U'.

APPEND value TO values.

value-key = '2'.

value-text = 'S'.

APPEND value TO values.

value-key = '3'.

value-text = 'R'.

APPEND value TO values.

value-key = '4'.

value-text = 'D'.

APPEND value TO values.

value-key = '5'.

value-text = 'C'.

APPEND value TO values.

value-key = '6'.

value-text = 'T'.

APPEND value TO values.

*--and so onnn

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'DSPOS1'

values = values

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

please help me how to handle this situation with ALV ?