cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the event in ALV grid display?

aaruljothi
Participant
0 Kudos

Hi experts,

How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.

regards,

Arul Jothi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Try to set this event by method SET_REGISTERED_EVENTS:

DATA: WA_EVENT TYPE CNTL_SIMPLE_EVENTS.

WA_EVENT = CL_GUI_ALV_GRID=>EVT_ENTER.

APPEND WA_EVENT TO T_EVENTS.

CALL METHOD <MY_GRID>->SET_REGISTERED_EVENTS

EXPORTING

EVENTS = T_EVENTS.

Now you should capture this event in DATA_CHANGED event

Max

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

plz do find the link..hope this will be useful..

http://help.sap.com/saphelp_nw04/helpdata/en/b7/c99f4218f6c46ae10000000a155106/frameset.htm

regards,

Vinoth.M

Former Member
0 Kudos

Hi Arul,

Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)

Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..

If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..

Hope this helps..

Sri

Message was edited by: Srikanth Pinnamaneni