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

problem with column headings in OOPS

Former Member
0 Likes
808

hi friends,

i am working on a lav list display program and im using the class cl_salv_table to display my itab

now i have given specific field heading to certain fields

DATA: lr_columns TYPE REF TO cl_salv_columns,

lo_columns TYPE REF TO cl_salv_columns_table,

lo_column TYPE REF TO cl_salv_column.

lr_columns = alv->get_columns( ).

lo_columns = alv->get_columns( ).

lo_column = lo_columns->get_column( 'SETS' ).

lo_column->set_technical( '' ).

lo_column->set_medium_text( 'sets shipped' ).

my problem is for column SETS i cant give short text since 'sets shipped' doesnt fit in,also if i use medium text that is not reflected in the output until i stretch the column.

wat do to 2 get the heading without strecthing the column

hi friends,

i am working on a lav list display program and im using the class cl_salv_table to display my itab

now i have given specific field heading to certain fields

DATA: lr_columns TYPE REF TO cl_salv_columns,

lo_columns TYPE REF TO cl_salv_columns_table,

lo_column TYPE REF TO cl_salv_column.

lr_columns = alv->get_columns( ).

lo_columns = alv->get_columns( ).

lo_column = lo_columns->get_column( 'SETS' ).

lo_column->set_technical( '' ).

lo_column->set_medium_text( 'sets shipped' ).

my problem is for column SETS i cant give short text since 'sets shipped' doesnt fit in,also if i use medium text that is not reflected in the output until i stretch the column.

wat do to 2 get the heading without strecthing the column

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
774

Hello Amit

You could try to call lr_columns-><b>SET_OPTIMIZE</b>( IF_SALV_C_BOOL_SAP~TRUE ).

Regards

Uwe

Read only

0 Likes
774

i have done that already,i have optimized the width of the coloumn.

i have also removed the technical name, pls guide me on what to do

Read only

0 Likes
774

i had declared the SETS field as mseg-menge, now i have delcared it as character 10, and so it is working, but still there should be some other way to do this

Read only

0 Likes
774

Hello Amit

You may give another try to method lr_column-><b>SET_OUTPUT_LENGTH</b>.

Regards,

Uwe

Read only

0 Likes
774

no thats is not working......

thanks for all ur help