cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid splitting of item lines of a LOOP on two pages in a Smart Form

Former Member
0 Kudos

Hello all,

I am printing an Invoice using a Smart Form. The form used for development is a Z copy of a standard form ' LB_BIL_INVOICE'. But the print program is the standard one 'RLB_INVOICE'.

The invoice contains items. The Smart Form displays these items. Each item contains different number of lines (3,4,5, etc.) The number of lines in an item is determined dynamically at runtime.

The requirement is to print all the lines of a particular item together. That is, suppose an item contains 4 lines,and on the current page if there is space for 2 lines only, then it should not happen that 2 lines of that item are printed on one page and the other 2 on next page.

If all the 4 lines of an item cannot be printed on one page, then all the 4 lines of an item should be printed together on the next page where there is space.

Is there any possible solution for this?

FYI, the items are printed by LOOPing in a an internal table. The table used in the Smart Form is the standard table of the standard form: 'TABLEITEM'.

Please help.

Points will be awarded generously.

Thanks.

Harshada.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi harshada,

Use the folders option, put the code for the line items and its text element in a FOLDER option present under the window option in the smartform.

This will definitely resolve ur issue.

REWARD POINTS IF USEFUL

Former Member
0 Kudos

Hi Ankit,

Each line of the item has a different line type. When you put the table in the FOLDER, the 'Page Protection' option gets disabled, not allowing you to tick it.

The FOLDER option does not work. Do you know of any other solution?

Regards,

Harshada

Answers (0)