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: 

field catalog

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Can you post the code where you fill the field catalog?

Former Member
0 Kudos
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