‎2006 Sep 04 4:10 PM
Hi,
I have pulled up the required e-mail field from table ADR6 , but the problem is the ADR6-SMTP_ADDR field length is 241 char which is taking too much space in the ALV output may i know how to reduce the actual legnth of field to the required pls..
Thxs,
Vin.
‎2006 Sep 04 4:17 PM
‎2006 Sep 04 4:29 PM
While filling the field catalog fill the field "Outputlength"
Message was edited by: Abhishek Jolly
‎2006 Sep 04 4:45 PM
Hi,
if you are using 'REUSE_ALV_FIELDCATALOG_MERGE' to build the field catelog, then change the field length with below code :
loop at it_fieldcat into x_fieldcat.
if x_fieldcat-fieldname = 'SMTP_ADDR'.
x_fieldcat-OUTPUTLEN = 20.
modify it_fieldcat from x_fieldcat index sy-tabix.
endif.
endloop.if you are building the fieldcatelog in your own way then use below code to change the field length.
it_fieldcat-FIELDNAME = 'SMTP_ADDR'.
it_fieldcat-KEY = 'X'.
it_fieldcat-OUTPUTLEN = '20'.
it_fieldcat-SELTEXT_L = 'E-Mail'.
APPEND it_fieldcat .
CLEAR it_fieldcat .
Regards
Appana
*Reward Points for useful answers