Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

classical reports

Former Member
0 Likes
699

in classical reports, how to freeze the columns & how to work with my report in any resolution

4 REPLIES 4
Read only

Former Member
0 Likes
599

to freeze columns look at the command set-left scroll boundary..

Read only

Former Member
0 Likes
599

Hi,

set-left scroll boundary will freeze the boundary depending on the no. of fields you want to freeze.

Read only

Former Member
0 Likes
599

Defining Where the User Can Scroll on a Page

You can restrict the area of a page that can be scrolled horizontally by the user with the scrollbars or from within the program. You can also combine the following two techniques.

Excluding Lines from Horizontal Scrolling

To exclude a line (for example, a header or comment line) from horizontal scrolling, define the line feed for that line as follows:

Syntax

NEW-LINE NO-SCROLLING.

The line following the statement cannot be scrolled horizontally. However, it can be scrolled vertically.

To undo the above statement, use:

Syntax

NEW-LINE SCROLLING.

This statement only makes sense if no line was output after NEW-LINE NO-SCROLLING.

REPORT sapmztst NO STANDARD PAGE HEADING

LINE-COUNT 3 LINE-SIZE 140.

START-OF-SELECTION.

DO 3 TIMES.

WRITE: / 'SY-INDEX:'.

DO 10 TIMES.

WRITE sy-index.

ENDDO.

ENDDO.

NEW-LINE NO-SCROLLING.

ULINE AT 20(20).

NEW-LINE NO-SCROLLING.

WRITE AT 20 '| **** Fixed! **** |'.

NEW-LINE NO-SCROLLING.

ULINE AT 20(20).

DO 3 TIMES.

WRITE: / 'SY-INDEX:'.

DO 10 TIMES.

WRITE sy-index.

ENDDO.

ENDDO.

Left Boundary for Horizontal Scrolling

To determine the left boundary of the horizontally scrollable area, use:

Syntax

SET LEFT SCROLL-BOUNDARY [COLUMN <col>].

If you do not use the COLUMN option, the left boundary of the scrollable area of the current page is set to the current output position; if you use the COLUMN option, the left boundary is set to position <col>. Now, only the part to the right of this area can be scrolled horizontally.

The above statement applies to the entire current page, and only to it. You must repeat the statement for each new page, otherwise the system uses the default value (left list margin).

To set the same scrollable area for all pages of a list, you can execute the statement, for example, at the TOP-OF-PAGE event.

REPORT sapmztst NO STANDARD PAGE HEADING

LINE-COUNT 3 LINE-SIZE 140.

START-OF-SELECTION.

DO 3 TIMES.

WRITE: /10 'SY-INDEX:'.

DO 10 TIMES.

WRITE sy-index.

ENDDO.

ENDDO.

SET LEFT SCROLL-BOUNDARY COLUMN 20.

DO 3 TIMES.

WRITE: / 'SY-INDEX:'.

DO 10 TIMES.

WRITE sy-index.

ENDDO.

ENDDO.

SET LEFT SCROLL-BOUNDARY COLUMN 10.

Read only

Former Member
0 Likes
599

Check the demo program : demo_list_scroll_boundary in se38.

Regards,

Ravi