Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

loop in smartform

Former Member
0 Likes
505

I created a smartform with one page. The next page is itself.

I import an internal table t_purinv into this form. And one record will fill the fields in only one page. If t_purinv has 4 records , there should be 4 pages in one print preview screen.

But I can't create a "LOOP" under the page. How can I see these 4 pages in one preview?

Can any expert help?

3 REPLIES 3
Read only

Former Member
0 Likes
483

next page is used when the current main area is not long enough to print the contents.

in your case, you have to call the smart form 4 times and merge the calls to a single spool.

this can be controlled by the FM parameter 'control_parameters'.

Please refer to:

http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/content.htm

Read only

Former Member
0 Likes
483

Hi,

You will have two options.

1. Restrict the main window size to one line item.

2. In main window while looping the internal table

in table main, at last give an alternative and provide command to trigger the next page.

Regards,

Raju.

Read only

Former Member
0 Likes
483

under the loop you have to call command node(dynamic page break)

for new page.