cancel
Showing results for 
Search instead for 
Did you mean: 

How to display each record on a new page on Smartforms layout

Former Member
0 Kudos

Hi,

I need to know how "each time a new record is displayed..it should be displayed on a new page in Smartforms". How much ever I try using the COMMAND inside the LOOP, it is always printing the records in the loop continiously in a single page with the remaining records moving to the next page only once the first page is full. But what i need is to print first record in the first page, second record in the second page...

Please let me know the exact steps how to use the COMMAND or any other options to acheive this.

Thanks!

Edited by: sap123 on Nov 2, 2008 11:55 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

create a command just before the main windows display and in its general attributes check the check box go to new page and in its conditions tab..set Falg = X.

now inbetween the loop of ut table or templet, crete program lines and write the code as below.

data : lv_lines type i.

describe table i_vbak lines lv_lines.

clear flag.

if sy-tabix LT lv_lines.

flag = 'X'.

endif.

remember that these program lines must be after command...

Try this,

Former Member
0 Kudos

Thanks !

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

While writing the records in the output, write new-page command after the variables of the records, where you are writing those in the output like.

<P1> < All the variables of the output>

/: NEW_PAGE

Hope this will give you some idea,

Regards.

Aswini.

former_member181995
Active Contributor
0 Kudos

See this just few hours back thread on same topic.