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

How to hide fields in Hierarchical display whn using CL_SALV_HIERQSEQ_TABL

Hi all,

I am using class CL_SALV_HIERQSEQ_TABLE for hierarchical display.Can i hide the fields in slave(child) which are there in binding .

As my requirement is not to display same fields again in child records.

Any inputs to this will be helpful .

Thanks and Regards,

Taranam

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 11, 2007 at 05:46 PM

    Sure, if you look at the examples, which start with SALV, like the one that I mentioned in your other post, you can see how to do it. I think you can either set as technical, or you can use the SET_VISIBLE method.

    *... *** SLAVE Settings ***
      try.
          lr_columns = gr_hierseq->get_columns( 2 ).
        catch cx_salv_not_found.
      endtry.
    
    *... §4.1 set exception column
      try.
          lr_column ?= lr_columns->get_column( 'EXCEPTION' ).
          lr_column->set_technical( ).
        catch cx_salv_not_found.                            "#EC NO_HANDLER
      endtry.

    or

    
    
    *... *** SLAVE Settings ***
      try.
          lr_columns = gr_hierseq->get_columns( 2 ).
        catch cx_salv_not_found.
      endtry.
    
    *... §4.1 set exception column
      try.
          lr_column ?= lr_columns->get_column( 'EXCEPTION' ).
          lr_column->set_visible( ). 
        catch cx_salv_not_found.                            "#EC NO_HANDLER
      endtry.
    
    

    Regards,

    RIch Heilman

    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.