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

INTERACTIVE ALV list number

Hi,

Can any one help me how to find the no of list in Interactive ALV..

When i get the last list, then i need to do some other things..

Regards.

Mahesh.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 17, 2005 at 05:42 PM

    Hi Use REUSE_ALV_LIST_LAYOUT_INFO_GET

    in ES_LIST_SCROLL table u can

    get the list sy-lsind.

    try this

    regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

    • **-ALV list Display

      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

      EXPORTING

      I_CALLBACK_PROGRAM = SY-REPID

      I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'

      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

      IS_LAYOUT = X_LAYOUT

      IT_FIELDCAT = IT_FIELDCAT

      IT_EVENTS = IT_EVENTS

      TABLES

      T_OUTTAB = IT_FINAL

      EXCEPTIONS

      PROGRAM_ERROR = 1

      OTHERS = 2.

      IF SY-SUBRC <> 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      u need to write form for the pf-status

      &----


      *& Form PF_STATUS_SET

      &----


      • PF Satatus for first List

      ----


      FORM PF_STATUS_SET USING P_EXTAB TYPE SLIS_T_EXTAB.

      SET PF-STATUS 'STANDARD' EXCLUDING P_EXTAB.

      ENDFORM. "PF_STATUS_SET

      but what ever PF-status u are setting try copy from se41

      and change fcodes of back,cancel,save,exit.

      and try implement ur own logic to handle

      and more over u need to do the same for the rest of the lists also.

      regards

      vijay

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.