Skip to Content
author's profile photo
Former Member

How to print ( * ) s for all the fields at the end of a list.

Hi all,

Please let me know the logic of printing astricks between end of page and end of list for last page in order to avoid user to edit even after printing.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Oct 04, 2005 at 07:04 AM

    Hi,

    You want to print astricks in every page between end-of-page and end-of list or at last-page.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      try s.th like that:

      REPORT zforum56 LINE-SIZE 132 LINE-COUNT 65.
      
      TABLES t001.
      DATA pagno TYPE sy-pagno.
      
      SELECT        * FROM t001.
        WRITE: /  t001-bukrs.
      ENDSELECT.
      *list end
      pagno = sy-pagno.
      WHILE pagno = sy-pagno.
        DO sy-linsz TIMES.
          WRITE :  '*' NO-GAP.
        ENDDO.
        NEW-LINE.
      ENDWHILE.

      Andreas

  • author's profile photo
    Former Member
    Oct 04, 2005 at 07:21 AM

    If I understand correctly you want to fill the last page with **** after te last item on the list?

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 04, 2005 at 07:49 AM

    Hi,

    report Report_name no standard page heading

    line-size 114

    line-count 55(5).

    .................

    ..................

    end-of-page.

    uline.

    write: '*************************************'.

    uline.

    Please check with this.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 04, 2005 at 07:55 AM

    hai,

    do the following things.

    always remember to use the

    end-of-page will be executed for every last line of page what you set in line-count.

    end-of-selection: will be the last event to be executed in the report use it when you want to print something at the end if the list

    report temp no standard page heading

    line-size 90

    line-count 55(2).

    end-of-page.

    uline.

    write: '*************************************'.

    uline.

    start-of-selection

    end-of-selection.

    uline(80).

    write: '*************************************'.

    uline(80).

    Please check with this, if any doubts come back.

    cherrs

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Check this code, works fine 😊

      -


      REPORT Z_TEST line-count 50 .

      types: begin of itab,

      fill(10) type c,

      end of itab.

      data nr_fill_lines type I.

      data: itab type table of itab,

      wa_itab type itab.

      wa_itab = 'test'.

      do 60 times.

      append wa_itab to itab.

      enddo.

      loop at itab into wa_itab.

      write / wa_itab.

      endloop.

      nr_fill_lines = sy-linct - sy-linno.

      do nr_fill_lines times.

      write /'**********************************'.

      enddo.