cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid windows in SAP Script?

Former Member
0 Kudos

Hi,

I'm using medruck form and the page sequence in my form is First - Back,

Back - Next, Next - Back. Back has only one window called purchase.

For one of my condition my o/p has got alternate blank pages. But if I change the page sequence to First - Next, Next - Next then it works fine.

I feel I need to skip Back window. How to do this I'm not sure?

Thanks in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Sorry, I get stuck now.

You debugged your form if the condition is set correctly?

No more ideas at the moment.

Timo.

Former Member
0 Kudos

Hi Chesat.

If I got you right, you don't want the control going to the BACK page.

So you have to change the next page before this point, that means in the FIRST page.

You should place the command in the last element printed in main window on the FIRST/NEXT page.

Timo.

Former Member
0 Kudos

Timo,

U have got me right but still No luck......I tried placing the code even in the last window of the first page which is order confirmation window. and it behaves the same.

Former Member
0 Kudos

Actually it should work to suppress the BACK-page.

You made sure that the command /: NEW-PAGE is in a window-element of FIRST <b>and</b> NEXT, so the page will skip from both windows to NEXT instead of BACK.

Also you checked (maybe in debugging the script) that your condition is fulfilled.

If so I'm sorry, no other solution at the moment.

Timo.

Former Member
0 Kudos

Hi Timo,

Thanks for ur replies but I have put the code in Purchase window of the back page. bcoz after first page is executed control goes to back page. So I have put ur solution there. Now from ur reply it looks like I have to put it somewhere else not sure where exactly. Bcoz first page has got many windows and shud I put it in the last window of the first page?

Former Member
0 Kudos

Hi.

If your condition to supress BACK-window is fullfilled, you should trigger the order /: NEW-PAGE [pagename].

So in the form it should look like (at the end of the page-element when you know if you have to supress the BACK-page)

/: IF <condition> EQ TRUE.
/: NEW-PAGE NEXT
/: ENDIF

If the condition is not true the name of the next page will be determined trough your settings in the form.

Hope that helps,

Timo.

Former Member
0 Kudos

Answer sounds very relevant but didn't work. Any other solutions?