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

Script : info from 2nd page .

Former Member
0 Likes
857

Hi,

I have script with two pages . I am dumping internal table data into the main window . But when the page number is greater than 1 I need to display some addtionla info at the top of the main window in a box before I dump the table data .Can anyone please guide me on how we can do this ?

Regards,

Vijay .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
833

Hi Vijay,

Use TOP...ENDTOP to trigger at the top of main window and have a condition on page number (&SY-PAGNO&) to get from second window onwards.

Try with this code:

/: IF &SY-PAGNO& > 1.

/: TOP

/: BOX COMMNAND

/: WRITE SOMETHING IN BOX

/: ENDTOP

/: ENDIF.

Thanks,

Vinay

Hi,

I have script with two pages . I am dumping internal table data into the main window . But when the page number is greater than 1 I need to display some addtionla info at the top of the main window in a box before I dump the table data .Can anyone please guide me on how we can do this ?

Regards,

Vijay .

6 REPLIES 6
Read only

Former Member
0 Likes
833

On page 2 create a CONST window before your main window. Within the new window you can draw your box and print the data.

Read only

0 Likes
833

Hi Matt ,

Thanks for your quick reply . In that case any window above the main window has to reduced in size to do what you say . I am trying to see if it is possibe to do without doing such kind of things .

Regards,

Vijay .

Read only

0 Likes
833

If you wanted to keep all the windows above Main the same size and insert a new window on page 2, then you would have to reduce the size of Main.

If you are trying to insert your new box within Main, then I'm not sure if its possible.

Maybe someone else will come up with a solution for you.

Good luck.

Read only

0 Likes
833

Hi ,

Vinay's solution solved my problem .

Thanks to all .

Regards,

Vijay .

Read only

Former Member
0 Likes
833

Hi,

in main window write

/: if &sy-pagno& > 1.

/: BOX YPOS '1.0' CM WIDTH '128.0' CH HEIGHT '4.0' CM FRAME 10 TW

display text

/: endif.

Regards

amole

Read only

Former Member
0 Likes
834

Hi Vijay,

Use TOP...ENDTOP to trigger at the top of main window and have a condition on page number (&SY-PAGNO&) to get from second window onwards.

Try with this code:

/: IF &SY-PAGNO& > 1.

/: TOP

/: BOX COMMNAND

/: WRITE SOMETHING IN BOX

/: ENDTOP

/: ENDIF.

Thanks,

Vinay