Skip to Content
avatar image
Former Member

how to add totals for each page in main window

hi

i have problem in scripts

how to add total in first page ending and carry it to second page , at the end of second page again adding total and so on until last page.

very urgent

regards

ratna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 14, 2006 at 05:09 AM

    HI,

    you can write them in footer window of the script. and for adding create the variables for the totals and add them in the loop for the values.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hai,

      did u finished the issue or not..

      1) declare one footer window

      2) &total& this should be computed in the print program

      it will compute the total from ach page and previous page also

      keep in touch

      bye

      rams

  • avatar image
    Former Member
    Nov 14, 2006 at 05:12 AM

    Hi

    By using BOTTOM and END-BOTTOM you can do it.

    Regards

    Surya.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 14, 2006 at 05:24 AM

    Hi,

    Check these

    http://help.sap.com/saphelp_40b/helpdata/en/d1/8035c3454211d189710000e8322d00/content.htm

    http://membres.lycos.fr/jolyeric/SAP/Note_de_Cours_Ben/Sapscript/SAPscript_Control_Commands.doc

    try to use the command 'summing' along with one text symbol .Keep the if condtion when page changes at that time u dispay the total as ur keeping the total in text symbol it can be dispayed in the next page

    or this is round about way

    loop at <table>.

    call write_form.

    endloop.

    here u declare a variable 'c' and increment it by 1 in each loop. Then u chgeck if the program has started printing second page then u can print the number of records before printing the next page.

    eg :

    data : c type c value '0'.

    loop at <table>.

    c = c + 1.

    call write_form.

    endloop.

    in form:

    check when the next page is being printed, then u can print the number

    of lines 'c'.

    Feel free to revert back.

    --Ragu

    Add comment
    10|10000 characters needed characters exceeded