cancel
Showing results for 
Search instead for 
Did you mean: 

Subtotal on every page for a FICA payment advice form in Print workbench

0 Kudos

Hi,

I have an application form in Print workbench for printing FICA checks.Now payment advice is also part of the same form and the script is used in application form.

My requirement is that at the end of page sub-total of the line items of that page should be displayed as carryforward.

I tried with 'SUMMING' command but it din't work.

Is there any other way using exits in Printworkbench to get subtotals.If so please help me in doing so.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member644562
Participant
0 Kudos

Hi,

If you have kept the line items in the 'Main Table' of the 'Main Window' then you should keep the subtotal or the total fields in the footer window of the main table.

or else you can keep them in a separate window beneath the main window and you need to mark the check box showing display at the end of main window. I think it will resolve ur prob

Former Member
0 Kudos

hi

Use Perform in your script.

Perform sum in program sub_rtn_pool using &var& changing &sum$

Write one subroutine pool to write ur form

Write ur code in thr

form sum TABLES it_input STRUCTURE itcsy

it_output STRUCTURE itcsy.

READ TABLE it_input INDEX 1.

var = it_input-value.

sum = sum + var.

READ TABLE it_output INDEX 1.

MOVE sum TO it_output-value

modify it_output index 1.

endform

Edited by: Anil Mane on Jul 3, 2008 10:24 AM

Former Member
0 Kudos

I think u hav to handle it in subroutine pool.......summing command will not work there