Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ONF4 not trigerred

Former Member
0 Likes
1,297

Hi all,

I wanted to include a search help in my ALV grid using OO methodology. However, I was not able to get the event ONF4 to trigger althrough I have define the fieldname and also call the method GRID->REGISTER_F4_FOR_FIELDS

EXPORTING IT_F4 = I_F4. Any kind of help is appreciated. Thanks in advance.

Hi all,

I wanted to include a search help in my ALV grid using OO methodology. However, I was not able to get the event ONF4 to trigger althrough I have define the fieldname and also call the method GRID->REGISTER_F4_FOR_FIELDS

EXPORTING IT_F4 = I_F4. Any kind of help is appreciated. Thanks in advance.

6 REPLIES 6
Read only

sourabhshah
Product and Topic Expert
Product and Topic Expert
0 Likes
1,077

hi,

Here is an example program BCALV_GRID_F4_HELP .

Hope it helps..

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,077

Hi,

if u r working with CL_GUI_ALV_GRID then there is an event for F4 -- ONF4 .

register this evnt in PBO and set handler for the same .

Hope this helps.

Read only

Former Member
0 Likes
1,077

HI, as I mentioned earlier in my first post, I have registered the handle the event ONF4, but still the event was not firing when I click on F4.

Read only

Former Member
0 Likes
1,077

By the way, the which I want a search help is not a standard SAP field. It was a custom component type. I'm not sure will it effect the overall function.

Read only

0 Likes
1,077

Hi Alvin,

Hope u are handling the event :

SET HANDLER on_f4 for the instance of class.

And the custom search will not affect the logic.

Hope this helps.

Read only

Former Member
0 Likes
1,077

Yes, I have that.. and still the ONF4 was not triggering. I was still wondering where goes wrong.