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: 

F4 help on ALV with FM REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos
2,520

Hi all;

A little question, I am implementing a editable ALV grid in R/3, for some fields the is an F4 input help available, for others not. (In the data dictionary is an F4 input help available for all fields from the Z-table). What can be wrong, or how do I attach the F4 input help in the coding of the ALV. The fields REF_TABLE and REF_FIELD from the fieldcatalog don't work.

Thanks in advance

7 REPLIES 7

Former Member
0 Kudos
208

Hi,

F4 Help in your cases only for field for which search help is defined for the field in DDIC. FOr all others you will have to program it.

Regards,

Himanshu

0 Kudos
208

search helps are defined in the data dictionary, how do I program it?

Jochen

0 Kudos
208

Search helps are available in data dictionary -> how do I program it?

0 Kudos
208

Hi

Using the function module F4IF_INT_TABLE_VALUE_REQUEST,

You should write a class in which the event on_f4 of cl_gui_alv_grid should be handled, in the event handling method, you should call this function module.

Regards,

Prasant

*reward if useful

Former Member
0 Kudos
208

<b>If you have F4 help at the Dictionary level, then those should definitely reflect in the ALV Grid.</b>

Check the dictionary table first.

Here is an example of F4 help.

Use Function Module F4IF_INT_TABLE_VALUE_REQUEST.

This Function Module returns the values selected in an internal table. Very

handy when programming your very own F4 help for a field.

Example:

data:

begin of t_values occurs 2,

value like kna1-begru,

end of t_values,

t_return like ddshretval occurs 0 with header line.

t_values = 'PAR*'.

append t_values.

t_values = 'UGG'.

append t_values.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'

exporting

retfield = 'BEGRU'

value_org = 'S'

tables

value_tab = t_values

return_tab = t_return

exceptions

parameter_error = 1

no_values_found = 2

others = 3.

if sy-subrc = 0.

read table t_return index 1.

endif.

-


If you are using REUSE_ALV_GRID_DISPLAY..... make sure of these

In the filedcatalog have you mentioned the reference table and field

wa_fcat-ref_table = 'ZTABLE'.

wa_fcat-ref_field = 'FIELD'.

Regards,

Pavan

raymond_giuseppi
Active Contributor
0 Kudos
208

First try to use your Z-Table with SE16, put all fields as select criteria, if some fields have no search help, correct your definition via SE11 :

<i>If some fields have no search-help, try to attach one by SE11 :

- table text, control table, domain value

- develop search help in se11 based on view linked to your fields, and if not possible use Search help exit</i>

If all fields have a search code, look at your ALV field catalog, have you built the field catalog with a call to REUSE_ALV_FIELDCATALOG_MERGE function module, are your screen fields DDIC referenced, have you put something

<i>If some fields have (ever) not search-help, you have to implement them in your program.</i>

Regards

Former Member
0 Kudos
208

call this funcation modules

'F4IF_INT_TABLE_VALUE_REQUEST'