cancel
Showing results for 
Search instead for 
Did you mean: 

Table of Contents in Smartforms

Former Member
0 Kudos

Hi,

Iam creating a smartform which is printing N no.of pages. this form output looks like a text book(something like English text books in our schools where it has book description in first page and table of contents in next pages and total subject in the consequent pages).

example:

Contents

BC - ABAP Programming....................................17

Introduction to ABAP.......................................... 19

The R/3 Basis System: Overview............................................................ 20

Position of the Basis System Within the R/3 System............................................................. 21

Application Servers ............................................ 27

Work Processes ............................................... 32

Overview of the Components of Application Programs ......................................................... 37

is it possible to include this contents in smartform. where we have to find text and respective page numbers dynamically.

i have included all my text data in main window.

Full points for the useful answers.

Thanks,

Sree.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

yes, I think thats possible. But in that case you have to build the table of contents at the end. Because you would be requiring the page numbers.

As you go on printing the pages, you maintain an internal table for storing the table of contents with their page numbers. Right at the end you print your table of contents.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If i am not wrong the content page your are writing should be expected first page but to write corresponding page numbers initially with out writing data the system also does not know. so we have to write all the pages first and come back to first page and write the corresponding first page is the solution which is little bit difficult. So just try in other way better declare content page as last page and set indicators for every corresponding content text page numbers and write those page indicators in last page. I think you will take printouts so we can manage those as first pages.

Hope this will give some idea.

Regards,

Aswini.

Former Member
0 Kudos

Hi,

1)first get the all the data(rows) in one internal table in the initialization tab of global data or get through the interface parameters of smartform(we have to get the data from print program).

2) Create a table in the main window using this internal table.

3) cerate a text in this table and write the lines intihs thext.

4) create another window to display page numbers.

in this window write create text inthis text &sfsy-pages& of &sfsy-formpages(3ZC)&

Regards.

Jagadeesh.