Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a 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.

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.