cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform goto page command node not working

Former Member
0 Kudos

Hi All,

I am having issue with using goto page command in smartforms.  I am very much expert in developing smartforms and worked on lot of forms with similar kind of requirement but not sure if I am doing something wrong or is the functionality changed in SAP EHP6. But I am sure I have done all kind of research  but could not find the solution.  And I have already done lot of search on the SDN  for my issue but  no luck.  Even I did not see any thread facing similar issue.

I know few people have posted on how to use NEW-PAGE or how to print Terms and conditions  or have some other issue to trigger last page. But those are all irrelevant.

The issue is:

I have to print terms and conditions in the last page of the PO output.  I have created 2 pages 1) FIRST 2) TERMS

The next page for First page is First  since item data to be flowed  on to next page if the does not fit into first page.

In the main window footer , I have created command and  in the goto page I have given TERMS as next page and selected condition as "Only after end of main window". Alternatively tried with manual condition as GV_LINES(will be Incremented for item output)  = GV_TOT_LINES (Total number of item records).

I have tried to moving thecommand node to different places under the main window like to the footer node  , main area node  and even tried after table node .

I also made sure, Main windows sizes are correct and alternatively tried with out Main window in the TERMS page.

The weird thing is that, when I use command node after table node in the main window, it is triggering 'FIRST' page but not TERMS page. But when I keep different width  of main windoe, the smartform is being activated but when in the print it is  going to dump . That means that it is trying to print 'TERMS page but due to different width of main window, it is throwing dump. And When I keep same width, it is triggering FIRST page but not TERMS. I am really scared what is happening inside the code.

Please do not give suggestions like to search on SDN. Because I have already done lot of search on this.

And please do not give same alternative options which I have done already.

I also observed that on EHP6 , activating smartform is taking lot of time.

I do have alternative solution to print the Terms and conditions page but I really wanted to  know if I have missed something.

I am providing alternative solution here. May be somebody may face similar issue in future and this may help.

The alternative solution is that, I can development separate smartform for Terms and condition and  call has to be made immediately after the main form in the print program . To print on the same spool, work with interface control parameter like no_open , no_close .

Thanks in advance.

Regards,

Nageswar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nageswara,

were you able to find some workaround or still facing the issue ?

Thanks

Vivek

Former Member
0 Kudos

Hi Vivek,

Thank you for  reply.

I have alternative solution for this.  Just read last 4 lines in the post. But I have been wondering, why this go to command is not working. I  was tired  with trying  lot of options. Like moving command node here and there, removing and keeping main window,  I have tried everything, but it was not working.

The alternative solution works only if you could able to change your print program . Otherwise , we will have to find some solution with smartforms.

Regards,

Nageswar