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

output write statement heading

Former Member
0 Likes
2,558

I have a write statement as follows:

FORMAT COLOR 1 ON.

WRITE: /3 'Order Number', 25 'Item Number'.

FORMAT COLOR 1 OFF.

On the output, it is followed by a very long list of order nums and item nums. When I move the cursor down to see the full list, I still want the above heading to appear on the screen but the values can keep moving(that means even if I scroll down, the heading should not move up).

Can you please tell me any keywords I need to add to the above write statement inorder to produce this effect?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,323

hi nuren,

write ur code in the event TOP-OF-PAGE.

<b>TOP-OF-PAGE.

FORMAT COLOR 1 ON.

WRITE: /3 'Order Number', 25 'Item Number'.

FORMAT COLOR 1 OFF.</b>

Message was edited by: Priya

6 REPLIES 6
Read only

Former Member
0 Likes
1,324

hi nuren,

write ur code in the event TOP-OF-PAGE.

<b>TOP-OF-PAGE.

FORMAT COLOR 1 ON.

WRITE: /3 'Order Number', 25 'Item Number'.

FORMAT COLOR 1 OFF.</b>

Message was edited by: Priya

Read only

0 Likes
1,323

All you need to do is put that code under the TOP-OF-PAGE event in your program.


report zrich_0001.

data: ivbap type table of vbap with header line.

start-of-selection.

  select * into table ivbap from vbap
         up to 100 rows.
  loop at ivbap.
    write:/3 ivbap-vbeln, at 25 ivbap-posnr.
  endloop.


top-of-page.

  format color 1 on.
  write: /3 'Order Number', 25 'Item Number'.
  format color 1 off.

Regards,

Rich Heilman

Read only

0 Likes
1,323

hi Nuren,

Put the code in <b>TOP-OF-PAGE</b> event.

TOP-OF-PAGE

FORMAT COLOR 1 ON.

WRITE: /3 'Order Number', 25 'Item Number'.

FORMAT COLOR 1 OFF.

Regards,

santosh

Read only

0 Likes
1,323

Nice trick, Priya! I sure hope you didn't do that intensionally.

Regards,

Rich Heilman

Read only

0 Likes
1,323

HI RICH,

IT WAS NOT INTENSIONALLY DONE....

FIRST I WAS NOT SURE OF THE POST SO I HAD DELETED IT BUT LATER I HAD CHECKED AND GAVE THE ANSWER...

IF U WANT TAKE THE WHOLE POINTS..

Read only

0 Likes
1,323

I didn't think that it was intensional, just checking though.

I've seen in the past where someone has posted a "Hi there", just to get first in line, then come back with a solution a couple minutes later after more have posted with correct answers.

In your case, it could have been seen as above, but I believe you when you say it was not intensional.

I'm not worried about the points, just want this forum to be an <u><b>honest</b></u> one. Cool?

Regards,

Rich Heilman