Skip to Content
avatar image
Former Member

sapscript

Hi folks,

I need help to define the the following logic:

I have designed the sapscript form to calculate remittance amounts on a monthly basis. At the end of the form I need to display the total amount getting remitted. I have calculated it in the print program. I have defined that field at the FOOTER window on the LAST page.

I believe this works, if the number of records coming from the print program goes beyond the first page, what logic should I need to incorporate if the number of records does not go beyond the first page ? what should i do to display the total amount in the first page itself in such case? How should i take care of it?

Do I need to modify the form or the print program for it?

Any thoughts or ideas shall be very helpful.

Thanks,

SK

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 16, 2007 at 03:08 PM

    Why do you need a LAST page in this case?

    At the end of your first page (or MAIN) have a text element where you check if the page is the last page, if yes then print the total.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The code needed a small tweak,

      &PAGE(C)& EQ &SAPSCRIPT-FORMPAGES(C)& in the condition statement, it worked.

      Thanks a lot for the help.

      SK

  • avatar image
    Former Member
    Aug 16, 2007 at 03:13 PM

    HI.

    dont take a footer window. instead put it in your main window... it will print at the last.

    Thanks

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded