2007 Sep 06 1:32 PM
Hello,
everytime I work with the function LVC_Fieldcatalag_merge and try to edit a field, the field is only 8 digits long.
The field 'AG_IST' is defined as a char10 field, but in the edit mask it's only possible to fill in 8 digits.
Any idea where the problem can be?
i.e.:
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'YVERB536_0100'
CHANGING
ct_fieldcat = it_fieldcatalog.
LOOP AT it_fieldcatalog ASSIGNING <fieldcatalog>.
CASE <fieldcatalog>-fieldname.
ENDCASE.
ENDLOOP.
loop at it_fieldcatalog into ls_fcat.
if ls_fcat-fieldname eq 'AG_IST'.
ls_fcat-edit = 'X'.
modify it_fieldcatalog from ls_fcat.
endif.
endloop.
Thanks
Nicole
Hello,
everytime I work with the function LVC_Fieldcatalag_merge and try to edit a field, the field is only 8 digits long.
The field 'AG_IST' is defined as a char10 field, but in the edit mask it's only possible to fill in 8 digits.
Any idea where the problem can be?
i.e.:
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'YVERB536_0100'
CHANGING
ct_fieldcat = it_fieldcatalog.
LOOP AT it_fieldcatalog ASSIGNING <fieldcatalog>.
CASE <fieldcatalog>-fieldname.
ENDCASE.
ENDLOOP.
loop at it_fieldcatalog into ls_fcat.
if ls_fcat-fieldname eq 'AG_IST'.
ls_fcat-edit = 'X'.
modify it_fieldcatalog from ls_fcat.
endif.
endloop.
Thanks
Nicole
2007 Sep 06 1:43 PM
Hi,
may be the output length is 8 change it and try.
loop at it_fieldcatalog into ls_fcat.
if ls_fcat-fieldname eq 'AG_IST'.
ls_fcat-edit = 'X'.<b>
ls_fcat-outputlen = 10.</b>
modify it_fieldcatalog from ls_fcat.
endif.
endloop.
or
sometimes even though the output length is 10 ,you can see only 8 characters based on your column text so try to input 10 characters and see.to check that scroll left arrow in that editable cell.
regards
suman
2007 Sep 06 1:51 PM
Hi,
unfortanly both is not the solution.
The title of the colum is longer then 10 digits and the outputlen also, but still only possible to fill in 8 chars. :O(
loop at it_fieldcatalog into ls_fcat.
if ls_fcat-fieldname eq 'MESSAGE'.
ls_fcat-COLTEXT = 'Nachrichtenvorschau'.
ls_fcat-edit = 'X'.
ls_fcat-OUTPUTLEN = '10'.
ls_fcat-INTLEN = '10'.
modify it_fieldcatalog from ls_fcat.
endif.
endloop.