02-24-2010 3:34 AM
Hi ,
I want to display more than 128 charecters in ALV display .
As ALV cell limiation is 128 .
please suggest some solution .
Thanks ,
kamalakar
02-24-2010 3:42 AM
Hi,
Simple way is to break your string into a groups of 128 characters and in ALV report put this colums next to each other.
This may solve ur problem.
Rani.
02-24-2010 3:50 AM
Hi Kamalakar,
<li>Where did you see ALV cell limitation is 128 chars. No its wrong. ALV List output width limitation is 1023 chars.
<li>So there is one field in the fieldcatalog called OUTPUTLEN, and set your cell limitation based on the above ALV list width.
Thanks
Venkat.O
wa_fieldcat-fieldname = 'MAKTX'.
wa_fieldcat-tabname = 'IT_DATA.
wa_fieldcat-seltext_m = 'Material description'.
wa_fieldcat-outputlen = '150'.
append wa_fieldcat to it_fieldcat.
clear wa_fieldcat.
02-24-2010 7:08 AM
02-24-2010 8:27 AM
Hi venkat ,
i already used this .
wa_fieldcat-outputlen is already SET to 1250
still not working
02-24-2010 9:49 AM
Hi Kamalakar,
<li>Try this program. It works fine.
Thanks
Venkat.O
REPORT zvenkat_alv_list.
DATA:BEGIN OF i_mard OCCURS 0,
sno TYPE i,
text TYPE c length 250,
END OF i_mard.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat LIKE LINE OF it_fieldcat,
it_events TYPE slis_t_event,
wa_events LIKE LINE OF it_events,
wa_layout TYPE slis_layout_alv.
DATA :i_header TYPE slis_t_listheader,
w_header LIKE LINE OF i_header,
l_date1 TYPE datum,
l_date2 TYPE datum.
START-OF-SELECTION.
DO 10 TIMES.
i_mard-sno = sy-index.
i_mard-text = 'With this release of SAP NetWeaver Composition Environment, we deliver a significantly improved Business Process Management and Business Rules Management functionality, new features for service adaptation and composition, an enhanced'.
APPEND i_mard.
CLEAR i_mard.
ENDDO.
DEFINE fieldcat.
wa_fieldcat-fieldname = &1.
wa_fieldcat-tabname = &2.
wa_fieldcat-seltext_m = &3.
wa_fieldcat-outputlen = &4.
append wa_fieldcat to it_fieldcat.
clear wa_fieldcat.
END-OF-DEFINITION.
fieldcat: "Field Int Tab Text
'SNO' 'I_MARD' 'Serial No' '',
'TEXT' 'I_MARD' 'Text' '250'.
DATA :program LIKE sy-repid.
program = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = program
it_fieldcat = it_fieldcat
TABLES
t_outtab = i_mard.
02-26-2010 2:33 AM
Thanks venkat .
this is working in ALV list iam using alv grid iam not able to get it
so i displayed extra string in next row with other fields balnk
02-26-2010 9:06 AM
Kindly check ..............
wa_fieldcat-fieldname = 'MAKTX'.
wa_fieldcat-tabname = 'IT_DATA.
wa_fieldcat-seltext_m = 'Material description'.
wa_fieldcat-outputlen = '150'.
append wa_fieldcat to it_fieldcat.
clear wa_fieldcat.
03-01-2010 12:35 PM
thanks venkat for your inputs
I already kept atlast i given him out with next row keeping aal other feilds blank.they are OK with this solution .
thanks,
kamalakar