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

Smartforms - Adding an extra last page

Former Member
0 Likes
1,750

The problem I'm facing here is pretty straight-forward. After the MAIN window of the Smartform has finished, I need to skip to a separate page.

The setup of the Smartform is:

PAGE1 - Next page: PAGE2

PAGE2 - Next page: PAGE2

EXTRA - Next page: EXTRA

In the MAIN window of PAGE1 (and so automatically PAGE2 also) I have put a command line with the option 'Go to new page' checked and pointing to the EXTRA page. This extra page does not have a MAIN window, just standard text fields which are filled based on data transferred to the form.

Also as a condition I've checked the 'Only Afer End of Main Window'.

When I debug, I can find this structure and see what's going on. The condition above is checked by reading the INTSFSY-MAINEND field, which is always empty. It gets filled with an 'X' later on, but that happens ouside the MAIN window.

The only point you can insert an explicit page break is at the MAIN window, so the whole setup seems doomed. However on SDN I've seen posts of people who managed to get it to work like this.

What setting did I miss? Thx in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

Hello Egbert,

i don't know if you actual find an answer. I would explain some things that could help you.

Smart Forms are the same technology like SAP Script, so some Problems are not solved. It is more comfortable, so you don't have to write the FM yourself.

For example:

In Smart Forms is only the Main-Window of the first page processing. So you can define Main-Windows on the following pages, but the Text and other elements you have to define in the Main-Window of the first Page.

So if you define texts and other elements in the main-Window of other pages (not the first page), then it is not shown/processing. Secondary Windows are processed.

For your example:

PAGE1 - Next page: PAGE2

PAGE2 - Next page: PAGE2

EXTRA - Next page: EXTRA

If you have an Main-Window on the page 2 or extra page, so the texts you have to define in the Main-Window of page 1. if page 1 is filled, than page 2 is processing. if in the main-window of page 1 comes a command 'Go to new page' -> Extra, than the following texts and elements of main-window of page 1 are processing in the main-window of page extra.

if you have secondary window on extra page, the texts and elements have to define in the extra page.

you say: 'Also as a condition I've checked the 'Only After End of Main Window'.'

why?! If you define your command at the end of the main-window, than it is only processing at this position.

I hope it helps to find your problem.

regards Maik

1 REPLY 1
Read only

Former Member
0 Likes
1,196

Hello Egbert,

i don't know if you actual find an answer. I would explain some things that could help you.

Smart Forms are the same technology like SAP Script, so some Problems are not solved. It is more comfortable, so you don't have to write the FM yourself.

For example:

In Smart Forms is only the Main-Window of the first page processing. So you can define Main-Windows on the following pages, but the Text and other elements you have to define in the Main-Window of the first Page.

So if you define texts and other elements in the main-Window of other pages (not the first page), then it is not shown/processing. Secondary Windows are processed.

For your example:

PAGE1 - Next page: PAGE2

PAGE2 - Next page: PAGE2

EXTRA - Next page: EXTRA

If you have an Main-Window on the page 2 or extra page, so the texts you have to define in the Main-Window of page 1. if page 1 is filled, than page 2 is processing. if in the main-window of page 1 comes a command 'Go to new page' -> Extra, than the following texts and elements of main-window of page 1 are processing in the main-window of page extra.

if you have secondary window on extra page, the texts and elements have to define in the extra page.

you say: 'Also as a condition I've checked the 'Only After End of Main Window'.'

why?! If you define your command at the end of the main-window, than it is only processing at this position.

I hope it helps to find your problem.

regards Maik