cancel
Showing results for 
Search instead for 
Did you mean: 

Pages Sequence in Smartforms

Former Member
0 Kudos

Hello Masters,

I am new in SAP ABAP , i need your help , i am creating a Smartform for Appointment letter, there are 3 pages in the smartforms , each of the 3 pages has 3 main windows(main windows are empty) work has been done on other secondary windows, by right clicking windows and inside that in attributes i have given page 1 -> page 2 and very happily i am getting both the 2 pages in my output , bu the problem arises when i create the page 3 ,in the page 2 i have again given the attributes inside the command go to next page and selected page 3 in the page 2 window but i am not getting the third page , i dont understand when i have applied the same logic with page 1 --> page 2 , why i am not getting page 2 --> page 3, why its not going on to the page 3.in page 3 i have given it to page 1 and also tried page 3 itself but nothing is working for me , i need a big time help from u masters .

Regrads

Nishant

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Why are using the COMMAND Element to call the Next Page, Instead you can specify the next page in the PAGE->General Attributes->Next Page.

Former Member
0 Kudos

I was using it in general pages also as well as in command attributes also , thats how i was able to reach from page 1 -> page 2 , earlier i was using a general page move only and it was not working , when i created command in main windows and there i selected pages movement in attributes then only i was able to C page 1 -> page 2 , i tried everything with page 2 - page 3 but i can C only page 1 and page 2 in my output but not page 3

Former Member
0 Kudos

Hi Nishant,

sorry i pointed to wrong thread.

please follow.

Remember the command will not get called from page 2 to page 3 unless and untill there is data that need to be printed .

Just read the thread carefully and you can apply same solution in your case.

Thanks

Dhiraj.

Former Member
0 Kudos

There is data in all the 3 pages in there secondary window respectively , i have not put any data in any of the main windows in all the 3 pages but only i have created command . in there i have check on "go to new page" and next page number , i have also done the same thing in general description of the pages bcoz of this only i was able to see my second page included with the first in the output but when i applied the same logic with page 2 -> page 3 , i cant c my 3rd page.

Former Member
0 Kudos

Hi Nishant,

Its not enough to have data in secondary windows.

The page break command will triger explicitely if there is data to be written in main window.

You have done it from page1 to page 2 using command.

but in page 2 no main winow is triggerd so next command is not trigeerd and page 3 is not trggerd.

hope you are getting what i mean to say.

So you have to follow the logic i given in earlier thread.

hope this will help.

dhiraj,

Former Member
0 Kudos

Hi Nishant,

since you all static data that need to be printed .

Please try following in main window.

in first page use command to jump second page.

put one blank text element after this command.

now put another command to jump to third page.

It will print three pages

hope this will help

Dhiraj.

Former Member
0 Kudos

After Struggling for two days i finally reached my solution, what i did is in my 1st page i use a command inside my main window(main window is empty, data is in other secondary windows) in which i have given a command (inside flow logic) , where i have given in attributes Go to new page "second page" , and in my other 2 pages where i was giving same command in the other 2 page's main windows , i removed those main windows from those 2 pages and simply in general attributes of the page i linked page 2 to page 3 , but when i tested it to remove the command from page 1 main window it was showing only page 1 , so i guess we need command only once for the 1st page and for the rest of the pages you dont need any commands , thankyou every one for helping me with issue specially Dhiraj !

Former Member
0 Kudos

Hi,

Please refer following link.

Thanks.

Dhiraj.