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 in alv grid

Former Member
0 Kudos

I developed an alv grid in which one field is ROUGH SIZE ( AUSP-ATWRT).I want F4 help in this field.

I already wrote the code as given below but F4 help is not comming.

IF LCAT-FIELDNAME = 'ROUGH_SIZE'.

LCAT-REF_TABNAME = 'AUSP'.

LCAT-REF_FIELDNAME = 'ATWRT'.

ENDIF.

Please help to fix this problem.

Thanks,

Rakesh

11 REPLIES 11

former_member333737
Active Participant
0 Kudos

Hi,

Try this coding example:

lv_fldcat-row_pos   = '1'.
  lv_fldcat-col_pos   = '6'.
  lv_fldcat-fieldname = 'ZEITB'.
  lv_fldcat-tabname   = 'IT_OUTPUT'.
  lv_fldcat-outputlen = 5.
  lv_fldcat-scrtext_m = 'Time constraint'.
  lv_fldcat-edit = 'X'.
*To avail the existing F4 help these are to
*be given in the field catalogue
  lv_fldcat-f4availabl = 'X'.
  lv_fldcat-ref_table = 'T582A'.
  lv_fldcat-ref_field = 'ZEITB'.

Regrds,

Nikhil.

Former Member
0 Kudos

If you use the class based alv grid, the fieldcatalog has a field named "f4availabl". Fill this with an X and you will get the F4 button.

Also set the referring table and referring field.

former_member555112
Active Contributor
0 Kudos

Hi,

There is not F4 help associated with the data element ATWRT.

So it will not come.

Incase you are making use of ALV grid object then handle the F4 event and in that handler method write your logic to give a searchhelp.

Regards,

Ankur Parab

former_member404244
Active Contributor
0 Kudos

HI,

Use tab name as CAWN and see

IF LCAT-FIELDNAME = 'ROUGH_SIZE'.

LCAT-REF_TABNAME = 'CAWN'.

LCAT-REF_FIELDNAME = 'ATWRT'.

ENDIF.

Regards,

Nagaraj

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

Create a Z Data element of ATWRT and Assign Serach help in Futher Characteristics TAB in Data Element.

Then Pass this Data Element to Field Catalog to it.

Thanks & regards,

ShreeMohan

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

First please check that domain is having F4 help or not, if it is then use below code for eg:

wa_fieldcat-col_pos = '14'.

wa_fieldcat-fieldname = 'NEWFORC'.

wa_fieldcat-datatype = 'DATS'.

wa_fieldcat-coltext = text-t29.

wa_fieldcat-outputlen = '14'.

wa_fieldcat-f4availabl = 'X'.

Regards,

Ganesh

Former Member
0 Kudos

IF LCAT-FIELDNAME = 'ROUGH_SIZE'.

LCAT-REF_TABNAME = 'AUSP'.

LCAT-REF_FIELDNAME = 'ATWRT'.

ENDIF.

APPEND LCAT.

Former Member
0 Kudos

Hi ,

use this code

IF LCAT-FIELDNAME = 'ROUGH_SIZE'.

LCAT-REF_TABNAME = 'AUSP'.

LCAT-REF_FIELDNAME = 'ATWRT'.

ENDIF.

APPEND LCAT.

thanks,

ajay

Former Member
0 Kudos

This message was moderated.