Application Development 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: 

Problem with Secondary window in smartforms

Former Member
0 Kudos

Hi Experts,

I have an issue with smartforms while looping internal table.

Here is the scenario:

I have two records in my internal table. For each record, I need to print two pages

For example: In internal table records like..

TEST1

TEST2

First for TEST1, it supposed to print two pages and then for TEST2, it supposed to print two pages from third page onwards.

I have designed my smartform with two pages named as.. FIRST and SECOND

In the FIRST page, I created one window type is MAIN window.

In the MAIN window...Template1 has designed.

At the end of Template, I used command option to go to SECOND page.

In the SECOND page, I created one window type is Seconary window.

In the Seconadry window...Template2 has designed.

==========

With this design, smartform is working is displaying two pages irrespective of the internal table records.

Option1:

When I used LOOP in between MAIN Window and Template1. No output displayed.

Option2:

When I tried to change the Secondary window as MAIN window, only second record TEST2 is displaying.

Option3:

So, I removed LOOP and written some program lines based on iteration.

For that, it supposed to go to FIRST page,as soon as SECOND page printing for the record TEST1.

and then second record TEST2 starts from third page and should print two pages for second record TEST2 and so on.

When I am trying to use command to go to FIRST page in the sceondary window of SECOND page, it's not allowing.

I am getting error message like.."No new page allowed in secondary window".

====

Could you please suggest solution for this..

basically... If the internal table has two records, For each record, it should print two pages.

Thanks in Advance

Raghu

3 REPLIES 3

Former Member
0 Kudos

could you process differently from your driver...loop at table, pass structure values to SmartForm, essentially calling your form for each row in the internal table?

0 Kudos

I getting internal table from interface. It has two records.

Basically.., If the internal table has more than one record, For each record, it should print two pages.

0 Kudos

Can anybody tell max height of the MAIN window and SECONDARY window in Centi Meters.