Application Development 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: 

How to add Search Help (F4) option for custom field in alv report using slis_t_fieldcat_alv?

vinayad
Participant
0 Kudos

I have a requirement like need to add custom field in ALV report, that field should have 'Search Help' option.

In slis_t_fieldcat_alv, I used

fldcat_in00-ref_tabname = 'AUFK'.
fldcat_in00-ref_fieldname = 'ZZASSIGNMENT'.

For ZZASSIGNMENT, I have created custom search help!

the below image is ALV field

Any help would be appreciated.

Thank you!

4 REPLIES 4

Sandra_Rossi
Active Contributor

If you mean that in AUFK append, you have added the column ZZASSIGNMENT and you attached a custom search help to it, and if you filled REF_TABNAME and REF_FIELDNAME in the ALV field catalog, there should be a F4 help for this field in the ALV.

Maybe you should refresh the ALV buffer or the nametab: run the program BALVBUFDEL. If it doesn't work, clear the nametab buffer (in development system/be careful concerning performance on production system) by running /$NAM via the command field (or restart the system).

vinayad
Participant

sandra.rossi

Thanks a lot, it's worked!

Sandra_Rossi
Active Contributor
0 Kudos

You're welcome. Did it work only by running the program BALVBUFDEL, or did you have to clear the nametab buffer using /$NAM?

vinayad
Participant

By running the program 'BALVBUFDEL'.