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: 

reuse_alv_grid_display data truncating

former_member767623
Participant
0 Kudos

I developed the ALV report, when i am displaying the data is truncating . As i decalred the mara_itab with another required fileds and v_text  with datatype C.

Data  : v_text(500).

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

      EXPORTING

        I_CALLBACK_PROGRAM      = REPNAME

        IT_FIELDCAT             = IT_FCAT[]

      TABLES

        T_OUTTAB                = MARA_ITAB.(Here v_text filed contaning 189 char(full data) found with debug)

    IF SY-SUBRC <> 0.

      WRITE: 'SY-SUBRC: ', SY-SUBRC, 'REUSE_ALV_LIST_DISPLAY'.

    ENDIF.

I found with debugging is that the Internal Table MARA_ITAB  field v_text contaning full data of 189 characters, But when i execting the output containing only 128 characters remaining data is truncating, left of the fields data is coming in proper way( those fields data like matkl,mtart etc not more than 50 char).

If the v_text contaning below 128 characters data fully displaying.

plz help and thanks in advance.

2 REPLIES 2

Former Member
0 Kudos

initially it is showing according to the summing the data size allocated in data dictionary later it is taking as text,which will delete the blank spaces and show the size of sum of fields space which are occupied with data 

0 Kudos

Read Note 857823 - ALV grid: Strings with a maximum of 128 characters

First perform some search at scn with keywords similar to ALV grid 128

This question is actually a FAQ, read first Rules of Engagement.

Regards,

Raymond