Skip to Content
author's profile photo Former Member
Former Member

hiding a field in ALV

Hi

i have created an ALV with series group 20(domestic) and 21(export).my question is that i need a field NETWRIC when i select the series group 21 in the input field and i dnt need it when i use 20 in series group.i like to know is there any way to hide the field

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 09:08 AM

    hi use ..

    if group = 21.

    it_fieldcat-no_out = 'X'.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:36 AM

    HI,

    when u prepare a manual field catalog only u can go for the hiding a field, when ever u r using the group 21 use conditional statement in it use no_out field as 'X' then u will be reciving the desire output

    byee

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:44 AM

    Hi,

    try no_out = 'X' or tech = 'X' for permanent hiding.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 10:50 AM

    Hi,

    You can do as below :

    Once your fieldcatalog is build.

    
    loop at gt_fieldcat into gs_fieldcat.
    
    if  group = 'X'.
    if gs_fieldcat-fieldname = 'NETWRIC'.
      gs_fieldcat-no_out = 'X'.
      gs_fieldcat-tech = 'X'. "Using this column will not be displayed in change layout also.
    modify gt_fieldcat from gs_fieldcat.
    clear : gt_fieldcat, gs_fieldcat.
    endif.
    endif.
    
    endloop.
    

    Thanks,

    Sriram Ponna.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.