08-10-2012 7:49 AM
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.
08-10-2012 7:58 AM
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
08-10-2012 8:09 AM
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