08-01-2007 8:12 PM
In field catalog what does no_out do?
what would fieldcat-no_out = space do and
what would fieldcat-no_out = 'X' do
because in my program what ever value I give to no_out, the fields are added in hidden fields
08-01-2007 8:14 PM
Hi Megan,
fieldcat-no_out = 'X' means Do not display columns
If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
Thanks,
Vinay
08-01-2007 8:14 PM
Hi Megan,
fieldcat-no_out = 'X' means Do not display columns
If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
Thanks,
Vinay
08-01-2007 8:26 PM
See if you are also setting tech = 'X' as this will completely hide the field from the user and not even show up for user to choose from the list when changing the layout.
08-01-2007 9:52 PM
But fildcat-no_out = space should shown the column in the report, right?
In my case it does not but shows it in the grid so I can add it
08-01-2007 9:52 PM
But fildcat-no_out = space should show the column in the report, right?
In my case it does not but shows it in the grid so I can add it
08-01-2007 9:57 PM
08-01-2007 10:38 PM
DEFINE macro_fill_fieldcat.
add : 1 to g_cnt_col_pos.
move : g_cnt_col_pos to fieldcat-col_pos,
&1 to fieldcat-fieldname,
'BESTAND' to fieldcat-tabname,
&2 to fieldcat-ref_tabname,
&3 to fieldcat-no_out.
if not fieldcat-seltext_l is initial.
move : fieldcat-seltext_l to fieldcat-seltext_m,
fieldcat-seltext_l to fieldcat-seltext_s.
endif.
append fieldcat.
clear fieldcat.
END-OF-DEFINITION.
CONSTANTS : c_no_out(01) TYPE c VALUE 'X',
c_out(01) TYPE c VALUE space.
macro_fill_fieldcat 'SPART' 'MARA' c_out.
macro_fill_fieldcat 'PRDHA' 'MARA' c_out.
macro_fill_fieldcat 'VCODE' 'QAVE' c_out.
Now the SPART, PRDHA and VCODE Should show auto in the report. But they dont, I can add them later using grid