cancel
Showing results for 
Search instead for 
Did you mean: 

Page breaks in TABLE

former_member207019
Participant
0 Kudos

Dear All,

Can we trigger page breaks while printing table of data. Here I need to trigger new page from a table. For instance, I have a scenario like this,

IITAB contains 25 lines with 5 Feilds(ie. F1,F2,F3,F4,F5). I am displaying this data using table.Now i need to trigger a new page when ever value changes in F5. So is it possible to perform in table display. If possible, How to perform it.

Thanks in Advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I would use logic like:

loop at tab.

. . .

if tab-keyfield ne lv_last_key.

if sy-tabix gt 1.

new-page.

endif.

lv_last_key =tab-keyfield.

endif.

. . .

Former Member
0 Kudos

I think you are talking about Smartform.

In that case you cannot perform 'protect' inside a TABLE.

Instead use a Loop .

and then u can put in your logic.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi friend,

We can do page protection functionality inside table of main window using Folders option. Follow the below steps,

1. Assume rows are created inside table in a main window, with corresponding line types.

2. Create a folder named PROTECT inside table, for example in Main area of table.

3. Just drag and drop your Row(s) into folder PROTECT and simply click page protection check box of the folder PROTECT.

4. This will help you to add the required functionality using Folders option in smartform.

If you still face any other problem kindly reply to this post.

Cheers...

Former Member
0 Kudos

Hi,

REPORT <REPORT Name> NO STANDARD PAGE HEADING LINE-SIZE 1023 LINE COUNT 5.

Use Line count in the report header for Page Breaks.

if you dont know the lines in internal table try this way..

loop at itab.

if itab-f5 ne <old f5 value>.

new-page.

endif.

endloop.

Regards,

Prabhduas

former_member207019
Participant
0 Kudos

Hi thank you for your reply,

I am using standard invoice program, so i cant write any thing program level, I need to perform this at form level. So how to perform this........