Application Development and Automation 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: 
Read only

regarding ALV

Former Member
0 Likes
856

Hello Everyone,

My question is regarding the no_out(1) type c field in slis_fieldcat_main0 structure in SLIS pool.

Why using only this particular field only, it is possible to hide the value in the list and not using do_sum(1) type c

field in the above structure, whereas both are defined as the same type and are not associated with any particular operation.

1 ACCEPTED SOLUTION
Read only

amy_king
Active Contributor
0 Likes
821

Hi Dhruv,

These flags are associated with particular operations and have different meanings to the ALV.

  • DO_SUM instructs the ALV to sum values of the column
    • NO_OUT instructs the ALV not to output the column in the initial ALV display.

      The NO_OUT flag instructs the ALV not to display the field in the initial ALV, but the field will still be selectable if the user chooses to change the layout of the ALV with the "Change Layout..." button. If you want the field to be both hidden and not selectable in Change Layout, set the TECH flag for the field to true. This makes the field a technical-only field.

      Data dictionary structure lvc_s_fcat has better self-documentation on these fields if you want to take a look at the short descriptions of fields in that structure.

      Cheers,

      Amy

      4 REPLIES 4
      Read only

      amy_king
      Active Contributor
      0 Likes
      822

      Hi Dhruv,

      These flags are associated with particular operations and have different meanings to the ALV.

      • DO_SUM instructs the ALV to sum values of the column
        • NO_OUT instructs the ALV not to output the column in the initial ALV display.

          The NO_OUT flag instructs the ALV not to display the field in the initial ALV, but the field will still be selectable if the user chooses to change the layout of the ALV with the "Change Layout..." button. If you want the field to be both hidden and not selectable in Change Layout, set the TECH flag for the field to true. This makes the field a technical-only field.

          Data dictionary structure lvc_s_fcat has better self-documentation on these fields if you want to take a look at the short descriptions of fields in that structure.

          Cheers,

          Amy

          Read only

          Former Member
          0 Likes
          821

          Thanks for your prompt reply Amy.

          So the description itself makes it to work or it is something in the back of the program that is coded but not visible?

          Read only

          amy_king
          Active Contributor
          0 Likes
          821

          Hi Dhruv,

          The description of the field is not controlling anything, it is just documentation to let the develop know what the field does. The ALV object uses these flags to configure its display. There is a lot of information on the web for ALV if you'd like to learn more. A few links to get you started...

          Cheers,

          Amy

          Read only

          Former Member
          0 Likes
          821

          Hii

          Former Member

          In Alv List display or grid display , It's always better to display maximum field in alv.If u want any field not to be displayed in the alv then do the following steps

          1>

          METHOD catalog.

              x_fieldcat-tabname   = tablename.

              x_fieldcat-fieldname = fieldname.

              x_fieldcat-scrtext_m = text.

              x_fieldcat-outputlen = len.

              x_fieldcat-hotspot   = hotspot.

              x_fieldcat-no_out    = no_out.

              x_fieldcat-tech      = tech.

              x_fieldcat-do_sum    = sum.

              APPEND x_fieldcat TO t_fieldcat.
              CLEAR x_fieldcat.

          this is the field catalog

          2>

          CALL METHOD l_obj->catalog

          *      EXPORTING

          *        tablename  = 'T_BOOKING'

          *        fieldname  = 'SRNO'          ->Fieldname which will not de displayed in the alv

          *        text       = 'TOTAL PRICE'

          *        len        = 15

          *        no_out     = 'X'           - > put this to 'X'

          *        tech       = 'X'               -> put this to 'X'

          So in order to Completly not be displayed in alv

          put thse two fileds flag as 'X'.

          Regards

          Syed