cancel
Showing results for 
Search instead for 
Did you mean: 

Page-Break with Sort-Criteria in SMARTFORMS

Former Member
0 Kudos

Hello,

A complex list contains hierarchic data, that is printed by using the Sort-Criteria in the TABLE Item.

The Problem, the page-break splits the Header form the Body.

The Header is printed on as last line on the page, the Body starts at the next page.

Example:

Delivery-Note 123456 (defined as Sort-Criteria)

     Pos: 001 Matnr: m321654 Materialtext                                 Quantity Weight   -->  (All data in one Table-line)

             EAN Nr: 323251411

             Order Nr : 25141 (optional)

             Customer Material (Optional)

There are several Options to set a page-protection

I'm testing:

- set the Body in a Folder  with Page-protection, that works, but for the Body only, the Headline was printed as single line an the end of the page.

  It is not possible to include a sort-criteria in a Folder

- Set Page-protection of Sort-Criteria - no reaction

- Set page-protection on linetype (of the Table Definition)  - works for the body-lines not for the Sort-Criteria.

Do anybody has an idea how to make sure, that the Headline (Sort-Criteria) is not printed as seperate line an the end of the page and seperated form the Body.

It's no solution not to use the sort-criteria, I have several lists with sometimes several hierarchie-items.

Thanks for your help.


Accepted Solutions (0)

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

Why don't you put your sort-criteria also into the body of the table and set a flag for the first run to know when you have to print it. Get it done that way offers you the ioption you already mentioned with an folder

Or you do it with an "old-fashioned" loop and use tabulators and stuff like that.

In my opinion I would prefer the first suggestion.

~Florian

Former Member
0 Kudos

Hello Florian,

thank you for your Answer.

Does it mean, it's not possible?

For me it's not a good solution, beacuse I'm working with the sort-criteria in many cases.

It's a nice feature, it helps to structure the printout in an easy way.

I don't like to miss this feature.

In SAP-Script there is a command "RESERVE" that I whis to have in SMARTFORMS.

Do you know how I can get the information how many lines / percent etc. is occupied or free in the page?

I think about to append SMARTFORMS with enhancement-point to make the information available.

Do you know what SMARTFORMS function-module can give this information to me?

Thanks for you answer.

Dirk Hofman

Florian
Active Contributor
0 Kudos

As far as I know it isn't possible to do it via sort-criteria.

To get more information about the left space on a site or soemthing like that you need o do it via a dirty-assign.

In my opinion you shouldn't get a foot on that path, because the Adobe-forms offer you all that stuff you want to do and a lot more. I know, there are some invest to do (ADS-Server) before starting but that will be the better solution in a wide range.

And the cool thing, Print-forms are already included in the license you got

~Florian

PS: If you really want to go the way let me know and I try to assist you as long as I can.