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 problem

Former Member
0 Likes
895

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
862

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

7 REPLIES 7
Read only

Former Member
0 Likes
862

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

Read only

0 Likes
862

i didnt get you himanshu.

Read only

Former Member
0 Likes
862

Hi

take that <b>header into a secondary window</b>..which will carried to the next pag automatically..

Read only

former_member673464
Active Contributor
0 Likes
862

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

Read only

Former Member
0 Likes
863

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

Read only

Former Member
0 Likes
862

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

Read only

Former Member
0 Likes
862

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