cancel
Showing results for 
Search instead for 
Did you mean: 

script

Former Member
0 Kudos

Hi all,

i hav a form in which am using Header Main and Footer windows.

My requirement is to print the footer in the same page, if there are only some line items in main window ( for ex 3).

In case, If there are around 25 line items the main window, it should be etended to the next page, and after that the footer should

be printed . can any body advice ..

Regards

sandeep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI..,

in the main program u can do this...

<b>call function 'OPEN_FORM'.

LOOP at t_data.

...........

passing variables to scripts.....

..........

if sy-tabix eq 25.

call function 'CONTROL_FORM'

command = 'NEW-PAGE'.

endif.

ENDLOOP.

call function 'WRITE_FORM'

window = 'FOOTER'.

callfunction 'CLOSE_FORM'.

</b>

plz do remember to close the thread,,, when ur problem is solved !!

reward if it helps u...

sai ramesh

Answers (1)

Answers (1)

former_member533584
Contributor
0 Kudos

hi,

I think u want to print the details of bottom in end of the last page.

if yes

IF &NEXTPAGE& eq 0.

endif.