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: 

Question with ALV and output look

Former Member
0 Kudos
136

I have an internal table with just one field. I am using reuse alv grid display function module for displaying output of that field. On the output, the ALV is occupying the entire screen even though when it is only one field !!!

Can you tell me what adjustment can I make here so that the output comes appropriately and accordingly for one field?

This is my fieldcatalog definition and ALV coding:

REFRESH t_fieldcatalog.

x_fieldcatalog-fieldname = 'ORDER'.

x_fieldcatalog-seltext_l = 'Order No.'.

x_fieldcatalog-tabname = 'IT_ORDERS'.

x_fieldcatalog-col_pos = 1.

  • s_fieldcatalog-outputlen = 30.

  • s_fieldcatalog-fix_column = 'X'.

x_fieldcatalog-hotspot = 'X'.

APPEND x_fieldcatalog TO t_fieldcatalog.

CLEAR x_fieldcatalog.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = temp_repid

it_fieldcat = t_fieldcatalog[]

TABLES

t_outtab = it_orders.

Thanks a lot,

Krishen

1 ACCEPTED SOLUTION

Former Member
0 Kudos
109

Hi,

The ALV will be displayed in the entire screen eventhough if it a single field..I believe you cannot do adjustments..

Thanks,

Naren

3 REPLIES 3

Former Member
0 Kudos
110

Hi,

The ALV will be displayed in the entire screen eventhough if it a single field..I believe you cannot do adjustments..

Thanks,

Naren

0 Kudos
109

Hi,

If you don't want the alv control to occupied the whole screen, you must create a dynpro and use a custom container or docking container to specify the area in which you want the alv to appear.

Regards,

Eric

venkata_ramisetti
Active Contributor
0 Kudos
109

Hi,

You have to set this in the fieldcatlog table.

x_fieldcatalog-outputlen = 10 . "Enter the length you want to show in the output

Output options for a column

outputlen (column width)

Value range: 0 (initial), n

For fields with reference to the Data Dictionary you can leave this parameter set to initial.

For fields without reference to the Data Dictionary (program fields) you must set the parameter to the desired field output length on the list (column width).

initial = The column width is derived from the output length of the referenced field (domain) in the Data Dictionary.

n = The column width is n characters.