Skip to Content
author's profile photo Former Member
Former Member

How can i select next page in smartforms?

Hi experts.

Please help me..^^

i have 3 pages in a smartform.

if plant = '1000'. A page -> B page
else               A page -> C page

or

if plant data exist. A page -> B page
else               A page only

how to do this?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Apr 30, 2008 at 12:03 AM

    You canexplicitely write following code in MAIN window.

    if <condition>

    NEW-PAGE

    endif .

    Regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 30, 2008 at 12:48 AM

    Hi,

    you can add two commands into your form: one for GOTO PAGE B and second one for GOTO PAGE C. Then same as for each node in smartform, you can add conditions to each command (tab Conditions).

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      how to input the last page on Page C?

      Page C is secondary window. so input the next page.

      Page C's Next page is Page A or Page B.

      Page A -> Page B -> Page C(I want to this is last page But can't because secondary window) -> Page A

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2008 at 06:47 AM

    Hi,

    if you have 3 pages in a smartform do this

    DATA:L_NAME(17) TYPE C VALUE '%HEADER-FIRSTPAGE'.

    FIELD-SYMBOLS: <FIELD>.

    if plant = '1000'. A page -> B page

    ASSIGN (L_NAME) TO <FIELD>.

    IF SY-SUBRC EQ 0.

    <FIELD> = 'PAGEA'.

    ENDIF.

    ENDIF.

    else A page -> C page

    ASSIGN (L_NAME) TO <FIELD>.

    IF SY-SUBRC EQ 0.

    <FIELD> = 'PAGEC'.

    ENDIF.

    ENDIF.

    Thanks,

    Nethaji.

    Edited by: Nethaji babu on Apr 30, 2008 8:47 AM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.