cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms:Each Document Need to display in one page

Former Member
0 Kudos

Hi All,

Here my requirement is I've 4 documents and each document have 3 line items.Now i need to display each document in one page .

i.e smartform has to come for three pages.which command i need to use. I tried to use COMMAND in smartform,after looping of internal table but one page extra is coming.

Please advise.

Thank you,

ANu.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

before using COMMAND line use below statement

DESCRIBE TABLE GT_ITAB LINES gv_lines.

after that use your Table or LOOP

again here create program lines under loop or table

gv_tabix = sy-tabix + gv_tabix

in the COMMAND line CONDITIONS put condtion like

gv_tabix LE gv_lines.

then you wont get extra page...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anitha,

I think you can set condition for COMMAND node does not trigger when internal table goes to last record.

In initialization of smartforms, get total of lines of internal table then check the COMMAND node will triger when sy-tabix of line printing < total lines.

Regards,