‎2007 Apr 19 9:33 AM
Hi Experts,
I have some problem in SAP Script.
Details:
Ø I have only one Page in my SAP Script i.e. FIRST.
Ø So whatever the components are there in that page has to be continued to second page if the items are more than the Box size.
Ø There are 5 element which will be displayed on the main page. there is one header element and others are say A, B, C, D. now when we are printing it first header is printing. then element A,B,C,D....now the case is if data is coming on one page then its fine. but when any of the elment data means from Aor B or C or D is going to next page i want to print that header with that also. header element is also in loop. we can not hard core it too.
How to solve this problem.
Please help.
Thanks in Advance.
‎2007 Apr 19 9:41 AM
Hi
Use TOP...ENDTOP.. for the Header data. between this write the details of header,
so that it will be printed in the next page when the data goes to second page.
reward if useful
regards,
ANJI
‎2007 Apr 19 9:36 AM
Hi,
Put the header display also in the MAIN window on the page. Then if the data moves on to next page u will also get the header details.
Regards,
Himanshu
‎2007 Apr 19 9:41 AM
‎2007 Apr 19 9:38 AM
Hi
take that <b>header into a secondary window</b>..which will carried to the next pag automatically..
‎2007 Apr 19 9:39 AM
hi..
Read header into another workarea and delete that in table.Use another window in the script in which you declare a text element throough which you can pass header data.
regards,
veeresh
‎2007 Apr 19 9:41 AM
Hi
Use TOP...ENDTOP.. for the Header data. between this write the details of header,
so that it will be printed in the next page when the data goes to second page.
reward if useful
regards,
ANJI
‎2007 Apr 19 9:46 AM
Hi,
Just create a New window for that Header data, and do not put this in side of the LOOP. so once the page is over and goes to next apge this will be printed because it is a Separate window
Regards
Sudheer
‎2007 Apr 19 10:20 AM
HI AZAD,
I M ALSO AGREE WITH ANJI, JUS WRITE HEADING B/W TOP -
ENDTOP.
LIKE THIS...
........1........2........3........4........5......
/* HEADER ITEM
/: TOP
HI MATERIAL NO ,, CREATED BY ,, MATERIAL TYPE
HI &SY-ULINE(50)&
/: ENDTOP
/* LINE_ITEM
/E MATERIAL
LI &ITAB-MATNR&,,,,&ITAB-ERNAM&,,,,&ITAB-MTART&
REGARDS
VIJAY