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

Problem in Smartform

Former Member
0 Likes
907

Hi all,

I have two pages to print in Smartform.

In 1st page i need to print only 15 items. For that i took a counter in table loop and set a flag = x when the counter = 15.

In the main area I set a command when flag = x go to newpage(secondpage).

But it is not working.

Pls tell me is there any thing else to pass along with the flag in the command.

Pls tell me is there any other logic to achieve the above requirement.

Thanks in advance,

Regards,

Priya.

11 REPLIES 11
Read only

Former Member
0 Likes
889

Hello Gurus!

Any clue?

Read only

Former Member
0 Likes
889

Hi priya..

just try with COMMAND-LINES option..

there you can put condition for NEW-PAGEs or any Other conditions(for restricting ) also can apply

there..

Thanks ,

GSANA

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
889

Hello Priya,

What's your issue with this logic, seems perfect to me ?

BR,

Suhas

Read only

Former Member
0 Likes
889

Hi,

There is no need of that flag variable...each loop passing increase the counter ...as counter = counter + 1....then only you set in the command that

when counter = 15 go to new page(second page)...

Arunima

Read only

Former Member
0 Likes
889

Sorry for repeat posting

Edited by: Arunima Rudra on Dec 24, 2008 12:18 PM

Read only

Former Member
0 Likes
889

Sorry for repeat posting

Edited by: Arunima Rudra on Dec 24, 2008 12:19 PM

Read only

Former Member
0 Likes
889

Sorry for repeat posting

Edited by: Arunima Rudra on Dec 24, 2008 12:19 PM

Read only

0 Likes
889

Its ok arunima,

I tried the same what u have told, directly passing counter in command.

Now the output itself not printing.

If i pass sy-tabix <> X in command along with the counter then output is displaying but the command is not working.

Any idea?

Regards,

Priya

Read only

0 Likes
889

hi,

u can create two pages,

In the first page main window>table>data--> give 1 to 15 in the row,

then pass the remaning records to another internal table and use that internal table for the second page.

so always 15 records will be printed in the first page and the remaining records will be printed in the second page.

regards

vijay.R

Read only

0 Likes
889

Hi all ,

Is there any thing to pass to COMMAND like sy-tabix along with other flags.

Pls let me know.

If i pass sy-tabix NE 1 then only the output is displaying other wise the output is not displaying.

But sy-tabix is 1 so the command is not triggering.

Pls help me out.

Thanks.

Priya

Read only

0 Likes
889

Could you pls be more clear.

How to pass remaining records to another internal table.