2008 Jun 28 2:08 PM
HI experts
REPORT demo LINE-SIZE 40 LINE-COUNT 8(2) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.If we place RESERVE in END-OF-PAGE then we are not getting a proper output.
Please look into it .
Thanks & Regards,
Bhumika
2008 Jun 28 2:22 PM
Pl. test this modified code.
REPORT zdemo LINE-SIZE 40 LINE-COUNT 10(4) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
*RESERVE 3 LINES. << Comment out this line
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.
Without RESERVE statement u will get the proper output.
Regards,
Joy.
Edited by: Joyjit Ghosh on Jun 28, 2008 3:24 PM
HI experts
REPORT demo LINE-SIZE 40 LINE-COUNT 8(2) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.If we place RESERVE in END-OF-PAGE then we are not getting a proper output.
Please look into it .
Thanks & Regards,
Bhumika
2008 Jun 28 2:12 PM
hi the problem is due to this LINE-COUNT 8(2)..
do like this..
REPORT demo LINE-SIZE 40 LINE-COUNT 9(3) no standard page
heading.
START-OF-SELECTION.
DO 6 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.
2008 Jun 28 2:17 PM
hi venkat..
if u see the output ..the uline comes just next to line 1,
which is not desired.
I want it to a full line
Please check that out..
Regards,
Bhumika
2008 Jun 28 2:35 PM
hi comment reserve 3 lines.
REPORT demo LINE-SIZE 40 LINE-COUNT 10(3) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline .
WRITE: /1 'LINE 1',
/1 'LINE 2',
/1 'LINE 3'.
2008 Jun 28 2:19 PM
Bhumika,
first see at actual effect of reserve:
Effect
This statement creates a page break if there is not enough space left on the current list page between the last output and the page end or page footer, as specified in n. A data object of type i is expected for n. No page break is triggered if the value of n is smaller than or equal to 0.
The page break triggers the list event END-OF-PAGE regardless of whether or not a page footer was defined in the statement introducing the program.
*In addition, the statement RESERVE influences the behaviour of the statement BACK. *
Note
If the page length is greater than the value of n, you can define line blocks with the statement RESERVE that can only be displayed closed on one side.
Amit.
2008 Jun 28 2:22 PM
Pl. test this modified code.
REPORT zdemo LINE-SIZE 40 LINE-COUNT 10(4) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
*RESERVE 3 LINES. << Comment out this line
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.
Without RESERVE statement u will get the proper output.
Regards,
Joy.
Edited by: Joyjit Ghosh on Jun 28, 2008 3:24 PM
2008 Jun 28 2:23 PM
Hi Bhumika Mahawar,
Please see the below code...
RESERVE 3 LINES. is commented here..
REPORT demo LINE-SIZE 40 LINE-COUNT 8(4) no standard page
heading. " here 8 is total no of line in one page and 4 is reserved for footer (END-OF-PAGE event) so u need to put the value of footer lines as per the lines u r specifying in END-OF-PAGE event...
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
*RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.Try to see the results by using diff diff valuse of LINE-COUNT AND FOOTER 8(4) 9 (3) 5(2) etc...
and at last Try for 10(4) u will get something which u r looking for...
why 10 here is : 4(do 4 times) + 2(do 2 times) + 4 (Uline + LINE1 +LINE2 + LINE3) = 10
and
why 4 here is : Uline + LINE1 +LINE2 + LINE3 = 4
Then u will come to know exact thing...
Its worth to give a try...
Hope it will solve your problem...
Thanks & Regards
ilesh 24x7..
2008 Jun 28 5:13 PM
Hi Bhumika,
Please use the below code.It will workfine.
REPORT demo LINE-SIZE 40 LINE-COUNT 10(4) no standard page
heading.
START-OF-SELECTION.
DO 4 TIMES.
WRITE / sy-index.
ENDDO.
DO 2 TIMES.
WRITE / sy-index.
ENDDO.
END-OF-PAGE.
uline.
RESERVE 3 LINES.
WRITE: / 'LINE 1',
/ 'LINE 2',
/ 'LINE 3'.
2008 Jun 30 5:05 AM