08-04-2009 11:42 AM
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
08-04-2009 11:48 AM
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.
08-04-2009 11:49 AM
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.
08-04-2009 11:51 AM
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
08-04-2009 11:51 AM
HI,
Use tab name as CAWN and see
IF LCAT-FIELDNAME = 'ROUGH_SIZE'.
LCAT-REF_TABNAME = 'CAWN'.
LCAT-REF_FIELDNAME = 'ATWRT'.
ENDIF.
Regards,
Nagaraj
08-04-2009 11:53 AM
08-04-2009 11:54 AM
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
08-04-2009 11:55 AM
08-04-2009 12:06 PM
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
08-04-2009 12:27 PM
IF LCAT-FIELDNAME = 'ROUGH_SIZE'.
LCAT-REF_TABNAME = 'AUSP'.
LCAT-REF_FIELDNAME = 'ATWRT'.
ENDIF.
APPEND LCAT.
08-04-2009 12:28 PM
Hi ,
use this code
IF LCAT-FIELDNAME = 'ROUGH_SIZE'.
LCAT-REF_TABNAME = 'AUSP'.
LCAT-REF_FIELDNAME = 'ATWRT'.
ENDIF.
APPEND LCAT.
thanks,
ajay
08-04-2009 1:05 PM