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

displaying alv and normal report in same screen

hi experts,

i want to display a alv report and normal report in the same screen one below the other .is it possible,if so please guide me how to do that.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 03, 2008 at 05:16 AM

    HI Praveen,

    It is not possible to print normal and alv list in the same list .

    if u want to display to or more lists is in the same list display

    u can use REUSE_BLOCK_LIST_DISPLAY.......

    U can append any no of lists in the same list display using..

    the sequence of function modules...

    'REUSE_ALV_BLOCK_LIST_INIT' ( To initiate the blocked list)

    'REUSE_ALV_BLOCK_LIST_APPEND' (Use this as many times as u want the number of lists to display)

    'REUSE_ALV_BLOCK_LIST_DISPLAY' ( To display the blocked list).

    Reward if helpful

    Jagadish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 03, 2008 at 06:05 AM

    Hi Praveen,

    It is not possible to display noraml and alv,you can display two alv together.......

    by FM

    'REUSE_ALV_BLOCK_LIST_DISPLAY'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 03, 2008 at 04:52 AM

    i have an idea of blocked alv in which we can display 2 or more alv....but my req is one alv and other is normal...help me out

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 03, 2008 at 04:53 AM

    In that case U have to use REUSE_ALV_LIST_DISPLAY. and also u have to take one variable for line count. now if the lincount variable will be same as ur dbcount value then after that u can use to display ur second report.

    If satisfied give points.................

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 03, 2008 at 06:16 AM

    Praveen Kumar, You can create Normal and ALV together. Proceed the following way . 1. Create ALV out using REUSE_ALV_LIST_DISPLAY. 2.Build events table with END_OF_LIST event. declare events table like this.

    data :
    i_events  type slis_t_event,
    w_events  like line of i_events.
    Build events table .
    w_events-name = 'END_OF_LIST' .
    w_events-form   = 'END_OF_LIST' .
    append w_events to i_events.
    clear w_events.
    3. pass this events table through REUSE_ALV_LIST_DISPLAY.
    data :l_program type sy-repid.
      l_program = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program          = l_program
          it_events                   = i_events
          it_fieldcat                 = i_fieldcat
        tables
          t_outtab                    = i_pa0001.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    4. Use just WRITE statement to output your Normal report. It works.
    form end_of_list.
    
      data: inc_colnum type i.
      uline .
      inc_colnum = sy-linsz - 60.
      write: / 'Report: ', sy-repid(18).
      write at 30(inc_colnum) sy-title centered.
      inc_colnum = sy-linsz - 20.
      write: at inc_colnum 'Page: ', (11) sy-pagno right-justified.
      write: / 'Client: ', sy-mandt.
      inc_colnum = sy-linsz - 20.
      write: at inc_colnum 'Date: ', sy-datum.
      write: / 'User  : ', sy-uname.
      inc_colnum = sy-linsz - 60.
      case clicked .
        when 'ALV1'.
          write at 30(inc_colnum) 'Normal ALV' centered.
        when 'ALV2'.
          write at 30(inc_colnum) 'Blocked ALV' centered.
        when 'ALV3'.
          write at 30(inc_colnum) 'Hierarchical ALV' centered.
        when 'ALV4'.
          write at 30(inc_colnum) 'Blocked Hier. ALV' centered.
      endcase.
      inc_colnum = sy-linsz - 20.
      write: at inc_colnum 'Time: ', (10) sy-uzeit right-justified.
      uline .
    endform.
    I hope that it solves your problem. Regards, Venkat.O

    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.