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

field catalog restriction with the selection screen input

Hi,

I am doing ALV grid report.In that I am facing problem,fieldcat has to display according to the input given in the selection screen.

my selection screen value is s_gstrp+4(2) that is month given inthe input.

     PERFORM FIELD_CATALOG TABLES IT_FIELDCAT
       USING: 'IT_COL_PLAF' 'PWWRK' 'X' 'Plant' ' ',
             'IT_COL_PLAF' 'MATNR' ' ' 'Material' ' ',
             'IT_COL_PLAF' 'MAKTX' ' ' 'Material description' ' ',
             'IT_COL_PLAF' 'MEINS' ' ' 'Unit' ' '.
      PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                 'IT_COL_PLAF' 'GSMNG_01' ' ' 'Jan-Qty' ' '.

      PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                 'IT_COL_PLAF' 'GSMNG_02' ' ' 'Feb-Qty' ' '.

        PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
                 'IT_COL_PLAF' 'GSMNG_03' ' ' 'Mar-Qty' ' '.

   
      PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
          'IT_COL_PLAF' 'GSMNG_04' ' ' 'Apr-Qty' ' '.

         PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
          'IT_COL_PLAF' 'GSMNG_05' ' ' 'May-Qty' ' '.

          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
          'IT_COL_PLAF' 'GSMNG_06' ' ' 'Jun-Qty' ' '.

        PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
          'IT_COL_PLAF' 'GSMNG_07' ' ' 'Jul-Qty' ' '.

        PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
         'IT_COL_PLAF' 'GSMNG_08' ' ' 'Aug-Qty' ' '.

          PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
          'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.

         PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
         'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.

         PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
         'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.

        PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:
        'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.

if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.

then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.

Suggest some ideas.

regards,

Bathri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 10, 2009 at 05:54 AM

    hi,

    Use

    if month ge 09 .

    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:

    'IT_COL_PLAF' 'GSMNG_09' ' ' 'Sep-Qty' ' '.

    endif.

    if month ge 10.

    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:

    'IT_COL_PLAF' 'GSMNG_10' ' ' 'Oct-Qty' ' '.

    endif.

    if month ge 11.

    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:

    'IT_COL_PLAF' 'GSMNG_11' ' ' 'Nov-Qty' ' '.

    endif.

    if month ge 12.

    PERFORM FIELD_CATALOG TABLES IT_FIELDCAT USING:

    'IT_COL_PLAF' 'GSMNG_12' ' ' 'Dec-Qty' ' '.

    endif.

    if month given in select-option : sep to dec ie,1.09.2009 to 31.12.2009.

    then my field cat has to display,sep qty,oct,qty,nov qty,dec,qty.

    If if you give month in selection screen you will get relevant month details .

    Regards

    Nandan.N

    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.