Application Development and Automation 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: 
Read only

ALV display

Former Member
0 Likes
504

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?

4 REPLIES 4
Read only

Former Member
0 Likes
465

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.

Read only

Former Member
0 Likes
465

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.

Read only

Former Member
0 Likes
465

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???

Read only

0 Likes
465

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.