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

Print Based Forms Page wise Sub total

AniketB
Explorer
0 Likes
746

Hello Everyone,

We are addressing a peculiar requirement in Form Printing where we need to first print details of a document(which will occupy multiple pages), then after End of this we need to Print Page Wise Totals as line items as a page wise summary which will start after the details page printing is over.My question is , is it possible to gather page wise totals in an internal table inside the forms? If this is possible in print based forms then our problem is solved.Else if there are any better options kindly share.

Thanks in Advance.

Regards,

AB

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Hi Aniket,

It is possible in SMARTFORMS.

In the loop process Program lines and create a 2 fields table for your total table

Page  type c length 5,

Total   type p length 16 decimals 2.

In program lines in your loop.

Concatenate 'P' SFSY-PAGE(ZC) into wa-page.

move the amount in total field

use Collect wa int total_tab.

This will give you a table with page totals

Print it at the end.

Let me know if any doubts

Hi Aniket,

It is possible in SMARTFORMS.

In the loop process Program lines and create a 2 fields table for your total table

Page  type c length 5,

Total   type p length 16 decimals 2.

In program lines in your loop.

Concatenate 'P' SFSY-PAGE(ZC) into wa-page.

move the amount in total field

use Collect wa int total_tab.

This will give you a table with page totals

Print it at the end.

Let me know if any doubts

3 REPLIES 3
Read only

Former Member
0 Likes
710

Hi Aniket,

It is possible in SMARTFORMS.

In the loop process Program lines and create a 2 fields table for your total table

Page  type c length 5,

Total   type p length 16 decimals 2.

In program lines in your loop.

Concatenate 'P' SFSY-PAGE(ZC) into wa-page.

move the amount in total field

use Collect wa int total_tab.

This will give you a table with page totals

Print it at the end.

Let me know if any doubts

Read only

0 Likes
709

Thanks Yakub for your quick reply, but we are looking for the same functionality in Print Based PDF forms(Adobe Forms).

Can this be achieved in Adobe Forms?

Read only

0 Likes
709

Hi Aniket,

Here is a tutorial for the exact requirement of yours.

http://saptechnical.com/Tutorials/AdobeForms/Totals/page1.htm

Cheers.