‎2008 Mar 26 2:14 PM
I am looking at one SAP ECC6 system and the ALV grids columns are minimised so that you can not make out the data in the columns. You then need to adjust the widthc of each column. I'm looking at standard transactions such as MD04. Is there a system setting or user setting that controls this, as usually the columns are optimised to fit the data?
‎2008 Mar 26 2:17 PM
Hi,
Just check it out in the function pool SLIS the following.
TYPES: BEGIN OF SLIS_FIELDCAT_ALV_SPEC,
KEY_SEL(1) TYPE C, " field not obligatory
NO_SUM(1) TYPE C, " do not sum up
SP_GROUP(4) TYPE C, " group specification
REPREP(1) TYPE C, " selection for rep/rep
INPUT(1) TYPE C, " input
EDIT(1) TYPE C, " internal use only
HOTSPOT(1) TYPE C, " hotspot
END OF SLIS_FIELDCAT_ALV_SPEC.
TYPES: BEGIN OF SLIS_FIELDCAT_ALV.
INCLUDE TYPE SLIS_FIELDCAT_MAIN.
INCLUDE TYPE SLIS_FIELDCAT_ALV_SPEC.
TYPES: END OF SLIS_FIELDCAT_ALV.
Regards,
Sankar.
‎2008 Mar 26 2:28 PM
In Alv we use the outputlen to maintain the feild length in the alv output.
This we maintain in the fieldcatalog.
f_fldcat-outputlen = 10.
‎2008 Mar 26 2:39 PM
This is a SAP standard transaction and in one ECC6 system the table columns are optimised but in another system they are not. I was just wondering if there is a setting somewhere that controls this, and I've just debugged the trans and found that its actually using a table control and not an ALV grid???
‎2008 Mar 26 2:47 PM
In a table control, you can set the defaul widths in the screen painter by adjusting the widths.
Additoinally, you can alter the attributes with LOOP AT SCREEN and for those fields (SCREEN-NAME = 'YOURFIELDNAME' set SCREEN-LENGTH = yourwidth.