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

Page header

Former Member
0 Likes
428

Hi everbody,

here is a simple code below. I i don't use the write statement in the header part it writes out all the results. If I use it, I only get 1 row. Why is it that?? Why I can't use my page header?????

TOP-OF-PAGE.

write: 3 'Vendor Nr.', 30 'Name', 50 'Postal code', 60 'City', 75 'Street' .

uline.

START-OF-SELECTION.

select * from lfa1.

write: lfa1-lifnr under 'Vendor Nr.', lfa1-name1 under 'Name', lfa1-pstlz under 'Postal code',

lfa1-ort01 under 'City', lfa1-stras under 'Street'.

endselect.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
409

hi

try this code. its working. it wil solve ur problem

tables : lfa1.

TOP-OF-PAGE.

write: 3 'Vendor Nr.', 30 'Name', 50 'Postal code', 60 'City', 75 'Street' .

uline.

START-OF-SELECTION.

select * from lfa1.

write: / lfa1-lifnr under 'Vendor Nr.', lfa1-name1 under 'Name',

lfa1-pstlz under 'Postal code',

lfa1-ort01 under 'City', lfa1-stras under 'Street'.

endselect.

thanks

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
409

if you would like to use top-of-page, use also REPORT .. LINE-COUNT ...

and if you use TOP-OF-PAGE & START-OF-SELECTION also use END-OF-PAGE.

Fred

Read only

Former Member
0 Likes
410

hi

try this code. its working. it wil solve ur problem

tables : lfa1.

TOP-OF-PAGE.

write: 3 'Vendor Nr.', 30 'Name', 50 'Postal code', 60 'City', 75 'Street' .

uline.

START-OF-SELECTION.

select * from lfa1.

write: / lfa1-lifnr under 'Vendor Nr.', lfa1-name1 under 'Name',

lfa1-pstlz under 'Postal code',

lfa1-ort01 under 'City', lfa1-stras under 'Street'.

endselect.

thanks

Read only

Former Member
0 Likes
409

Thanks the help.