2007 Oct 25 11:34 AM
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
2007 Oct 25 11:39 AM
Hello Amit
You could try to call lr_columns-><b>SET_OPTIMIZE</b>( IF_SALV_C_BOOL_SAP~TRUE ).
Regards
Uwe
2007 Oct 25 12:26 PM
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
2007 Oct 25 12:45 PM
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
2007 Oct 25 1:02 PM
Hello Amit
You may give another try to method lr_column-><b>SET_OUTPUT_LENGTH</b>.
Regards,
Uwe
2007 Oct 25 3:43 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |