2006 Nov 29 7:50 PM
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
2006 Nov 29 7:53 PM
Hi,
The ALV will be displayed in the entire screen eventhough if it a single field..I believe you cannot do adjustments..
Thanks,
Naren
2006 Nov 29 7:53 PM
Hi,
The ALV will be displayed in the entire screen eventhough if it a single field..I believe you cannot do adjustments..
Thanks,
Naren
2006 Nov 29 8:06 PM
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
2006 Nov 29 7:53 PM
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.