Skip to Content
avatar image
Former Member

How to avoid windows in SAP Script?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 21, 2007 at 09:27 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2007 at 08:08 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

  • avatar image
    Former Member
    May 22, 2007 at 12:48 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    May 23, 2007 at 06:29 AM

    Sorry, I get stuck now.

    You debugged your form if the condition is set correctly?

    No more ideas at the moment.

    Timo.

    Add comment
    10|10000 characters needed characters exceeded