Application Development and Automation 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: 
Read only

Edit function with 'LVC_FIELDCATALOG_MERGE'

Former Member
0 Likes
1,134

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

2 REPLIES 2
Read only

Former Member
0 Likes
716

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

Read only

0 Likes
716

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.