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

Sorting and Hiding of column in ALV Grid

i have the requirement to sort my report in ALV

the reqt. is like this

Parameter Code  Parameter  Section  Value
  1               P2         S1       50
                             S2       55
  2               P1         S5       30
                             S6       40
  3               P3         S7       60
                             S8       80  

i have to sort it by parameter code i use the fm of alv of sorting this works fine, but my requirement is that i don't want to display Parameter code in the output, if i do so then the report is sorted on the basis of parameter

i.e P1 then P2 and then P3, can any one tell me is there is a way to hide the Parameter Code.

i hope i have clear mye requirement.

thanx

abhishek suppal

 
 
 

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 24, 2005 at 05:47 AM

    Hi,

    In the fieldcatalog just set

    for parametercode

    <b>fcat-NO_OUT = 'X'</b>.

    It will get sorted bit it wont be displayed.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2005 at 06:10 AM

    Hi,

    SORT ITAB BY PARAMETER_CODE.

    In the:

    FORM F9002_MODIFY_FIELD_CAT TABLES P_FIELDCAT STRUCTURE LVC_S_FCAT.
    
      FIELD-SYMBOLS : <LFS_FIELDCAT> TYPE LVC_S_FCAT.
    
      LOOP AT P_FIELDCAT ASSIGNING <LFS_FIELDCAT>.
    
        CASE <LFS_FIELDCAT>-FIELDNAME.
    
          WHEN 'PARAM_CODE'.
    <b>        <LFS_FIELDCAT>-NO_OUT  = 'X'.</b>
        ENDCASE.
    
      ENDLOOP.
    
    ENDFORM.

    Regards,

    Anjali

    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.