Skip to Content

Prerequisites for using ALV reports

Hi,

We have some of our standard transaction for instance LT23, which seems to have been programmed to be used and viewed with ALV layout. However, this is not the case, it just print using the old list layout.

Are the prerequisites for running ALV report; if so I would like to know them. SAP GUI is 7.20 and the theme is SAP Signature.

Any input is appreciated.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2011 at 10:21 AM

    Hi

    I don't know if I've really understood what you mean, but the only prerequisite is the program is developed in order to use the ALV

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Peter C. Sandgaard

      Hi

      If you want to use the GRID instead of LIST, yes I don't know if it's a good idea but you can do only that

      That means you need to change the function module L_TO_LIST_DISPLAY, but the ALV is called in form CALL_ALV, so you can create an enhancement in order to call the GRID instead of LIST.

      The call should be the same, because the 2 functions (GRID and LIST) have the same interface, so instead of

      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = SAV_SY_REPID
                I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
      *         I_CALLBACK_USER_COMMAND  = ' '
      *         I_STRUCTURE_NAME         =
                IS_LAYOUT                = LAYOUT
                IT_FIELDCAT              = XFIELD
      *         IT_EXCLUDING             =
                IT_SPECIAL_GROUPS        = XSP_GROUP[]
      *         IT_SORT                  =
      *         IT_FILTER                =
      *         IS_SEL_HIDE              =
                I_DEFAULT                = 'X'
                I_SAVE                   = 'A'
                IS_VARIANT               = VARIANT
                IT_EVENTS                = XEVENT
      * >>>>>>>>>> begin of insertion HP_318150 >>>>>>>>>>
                i_buffer_active          = 'X'
      * <<<<<<<<<< end   of insertion HP_318150 <<<<<<<<<<
      *         IT_EVENT_EXIT            =
      *         IS_PRINT                 =
                I_SCREEN_START_COLUMN    = I_SCREEN_START_COLUMN
                I_SCREEN_START_LINE      = I_SCREEN_START_LINE
                I_SCREEN_END_COLUMN      = I_SCREEN_END_COLUMN
                I_SCREEN_END_LINE        = I_SCREEN_END_LINE
      *    IMPORTING
      *         E_EXIT_CAUSED_BY_CALLER  =
             TABLES
                  T_OUTTAB                 = T_TO_LIST_PLUS
             EXCEPTIONS
                  PROGRAM_ERROR            = 1
                  OTHERS                   = 2.
      
        IF SY-SUBRC NE 0.
          MESSAGE E706(L1) WITH 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.
      *   Interner Fehler ist aufgetreten (FB &)
        ENDIF. 

      ....you can insert:

      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = SAV_SY_REPID
                I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
      *         I_CALLBACK_USER_COMMAND  = ' '
      *         I_STRUCTURE_NAME         =
                IS_LAYOUT                = LAYOUT
                IT_FIELDCAT              = XFIELD
      *         IT_EXCLUDING             =
                IT_SPECIAL_GROUPS        = XSP_GROUP[]
      *         IT_SORT                  =
      *         IT_FILTER                =
      *         IS_SEL_HIDE              =
                I_DEFAULT                = 'X'
                I_SAVE                   = 'A'
                IS_VARIANT               = VARIANT
                IT_EVENTS                = XEVENT
      * >>>>>>>>>> begin of insertion HP_318150 >>>>>>>>>>
                i_buffer_active          = 'X'
      * <<<<<<<<<< end   of insertion HP_318150 <<<<<<<<<<
      *         IT_EVENT_EXIT            =
      *         IS_PRINT                 =
                I_SCREEN_START_COLUMN    = I_SCREEN_START_COLUMN
                I_SCREEN_START_LINE      = I_SCREEN_START_LINE
                I_SCREEN_END_COLUMN      = I_SCREEN_END_COLUMN
                I_SCREEN_END_LINE        = I_SCREEN_END_LINE
      *    IMPORTING
      *         E_EXIT_CAUSED_BY_CALLER  =
             TABLES
                  T_OUTTAB                 = T_TO_LIST_PLUS
             EXCEPTIONS
                  PROGRAM_ERROR            = 1
                  OTHERS                   = 2.
      
        IF SY-SUBRC NE 0.
          MESSAGE E706(L1) WITH 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.
      *   Interner Fehler ist aufgetreten (FB &)
        ENDIF. 

      Max

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.