cancel
Showing results for 
Search instead for 
Did you mean: 

how to truncate additional blank page at last in smart forms

Former Member
0 Kudos

Hi all

i have a table in smartforms through which i print header and main area and i have a command in which i checked the checked box for new page. through which it goes to next page with each new pernr. it is working very well but adding an additional blank page at the end . how can i control it ?

Regards

ammad

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

For the total number of pernr's just use DESCRIBE table ( give the table name which contains the PERNRs ).

Then use the condition whether the current pernr count is kess than the total pernr count.

Regards,

Ram

Former Member
0 Kudos

in MAIN window befor loop create the program lines in that

DESCRIBE TABLE gt_lips LINES gv_lines.

gv_tabix = sy-tabix + gv_tabix.

in COMMAND node condtions tab GV_TABIX LE GV_LINES

put the above condtion we can stop the blank page..

Former Member
0 Kudos

Hi,

I believe the new page command is in the end of the table node and inside the table node.

Please control the new page trigerring by using a condition when the current number of the pernr is less than the total number of pernr's in the table ( by using program lines ).

Regards,

Ram

Former Member
0 Kudos

hey Ram

thanks for the help.

i did as at new pernr addd one to t_pernr. it will give me total number of pernr in program line. tell me one thing how can i check either the other veriable is less that t_pernr or not coz i m unable to add program line in table.

Regards

ammad