make sure field that you want to display have a search help
at your code, make this definition was fill
this is the subroutine:
FORM f_fieldcats4 USING fu_fname
fu_reftb
fu_reffname
fu_text
fu_len
fu_sum
fu_curr
fu_spot
fu_out
fu_uom
fu_edit
fu_key
fu_cek
fu_fix
fu_type.
DATA : lt_fieldcat TYPE slis_fieldcat_alv.
lt_fieldcat-fieldname = fu_fname.
lt_fieldcat-ref_tabname = fu_reftb.
lt_fieldcat-ref_fieldname = fu_reffname.
lt_fieldcat-seltext_l = lt_fieldcat-seltext_m =
lt_fieldcat-seltext_s = fu_text.
lt_fieldcat-reptext_ddic = fu_text.
lt_fieldcat-outputlen = fu_len.
lt_fieldcat-do_sum = fu_sum.
lt_fieldcat-cfieldname = fu_curr.
lt_fieldcat-hotspot = fu_spot.
lt_fieldcat-no_out = fu_out.
lt_fieldcat-qfieldname = fu_uom.
lt_fieldcat-edit = fu_edit.
lt_fieldcat-input = fu_edit.
lt_fieldcat-key = fu_key.
lt_fieldcat-checkbox = fu_cek.
lt_fieldcat-fix_column = fu_fix.
lt_fieldcat-datatype = fu_type.
APPEND lt_fieldcat TO t_fieldcat.
CLEAR: lt_fieldcat.
ENDFORM. " F_FIELDCATS4
0 comments:
Post a Comment