Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dividing Genrated PDF no of pages into two parts

Dear Friends,

I have requirement in which i need to divide total number output pdf pages into two parts.

E.g. If there are 10 pages Then 10 / 2 = 5

Before generation of pdf file from smartform it automatically divide by 2 and then show these files.

How to do this?

Thanks & Regards,

Ravi Grover

Former Member
Former Member replied

Hi Rob,

when you call the function module of the smartform you have the output parameter:


It is the number of pages of the smartform.

Then... you can call the funtion module of smartform two times :

1rst with the input field OUTPUT_OPTIONS-TDPAGESLCT from 1 to number of pages / 2

2nd with the input field OUTPUT_OPTIONS-TDPAGESLCT from number of pages / 2 to number of pages

And generate both pdf.


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question