Application Development 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: 

increasing the length of the cell

Former Member
0 Kudos

hi folks

i have some text to be printed and want to increase the outputlenght of the cell to accomodate the text.

i am assigning value to the field "outputlen " to 40 but im not getting that text.

can anyone tell me how can i increase the length of the cell.i want to increase the length for all the cells.

thanks in advance

5 REPLIES 5

Former Member
0 Kudos

Hi,

Do you need to increase the width of cell in the output excel or...?

sujeet2918
Active Contributor
0 Kudos

Hello Moorthy,

Please use :

fieldcatalog-outputlen = 40.

fieldcatalog-seltext_m = 'Hello '

Have a Nice Day.

Regards,

Sujeet

former_member203305
Active Contributor
0 Kudos

Hi,

u need to check the length of the fields that u want to print out. After u know the length of them,then u can pass it to the fieldcat of the ALV.

and if it doesnt show it again, check if the field contains a value, maybe it is passing in black and the problem is in another part of the program.

Regards

Former Member
0 Kudos

Hi,

Try using the layout feature.

DATA : ls_layout TYPE slis_layout_alv.

ls_layout-colwidth_optimize = 'X'.

Finally pass this layout varaible to ALV FM as like below.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

....is_layout = ls_layout

..........

Regards,

Aravind J M

Former Member
0 Kudos

thanks