2006 Oct 02 5:06 PM
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 .
2006 Oct 02 5:33 PM
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 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
2006 Oct 02 5:09 PM
On page 2 create a CONST window before your main window. Within the new window you can draw your box and print the data.
2006 Oct 02 5:11 PM
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 .
2006 Oct 02 5:17 PM
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.
2006 Oct 02 6:25 PM
Hi ,
Vinay's solution solved my problem .
Thanks to all .
Regards,
Vijay .
2006 Oct 02 5:31 PM
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
2006 Oct 02 5:33 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |