cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms not Triggering next page when main window has template with loop

Former Member
0 Kudos

Hello SAP Gurus,

I need your help in smartforms, actually main window is not triggering next page when template is filled up with items. Here is details how I have created smartforms.

First page-

subwindows....

Main

-> Template->loop at interanl table->Program lines(for condition check)->texts

there are fews points I would like to add here:

1. Reason for using template is, layout has three columns and based on conditions I need to show items in specific columns.

2. when any column of Template is full with items it should trigger next page, but it is not happening. when I added command inside loop then I got error that cell number N row Y not avaliable. It seems next page didn't consider template.

3. If I use tables then data was not displaying correctly, like if second column is filled for first case, for another case if first column should fill up then data was not populating at the start of column it was displaying just below of second colum data, in the first coulum. means first line of first coulum display blank. so can't use tables.

4. If I put Template under loop then for each data, smartforms triggers new page and templete is filling up with only one record at a time. that is also wrong.

I hope you all understand my problem. Please let me know if there is any other method or I am doing somthing wrong.

Thanks in Adv.

Gaurav.

Edited by: Gaurav Sharan on Nov 26, 2009 1:24 PM

Edited by: Gaurav Sharan on Nov 29, 2009 7:45 PM

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Kudos

You could just use a table, but you must fill all 3 columns of each line at a time: for that, you must prepare an internal table to represent exactly what you will print, then you loop at this internal table, and that's done.

Former Member
0 Kudos

Hi SANDRA,

Thanks for replying. Actually problem is that all three column data are coming from a single table and it is difficult to prepare a table with all data of a column in a row. Anyway.. I am trying to code that way. I was hoping if any other option available without changing code then it would have been better.

Thanks,

Gaurav.

NAeda
Contributor
0 Kudos

Hi Gaurav,

See Template is not dynamic, it is having fixed dimensions, so it will not trigger the next page.

better to use table and design the line types as per your requirement .

Use condition tab to print the text as per your requirement.

Rgds

Aeda

Edited by: Aeda N on Dec 2, 2009 10:06 AM

Former Member
0 Kudos

Thank you all,

Actually I was thinking, if any other way could be handle without using tables and changing codes. Now I got answer.

Thanks once again.

Cheers!

Gaurav.

Answers (0)