cancel
Showing results for 
Search instead for 
Did you mean: 

How can i select next page in smartforms?

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

martin_voros
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

amit_khare
Active Contributor
0 Kudos

You canexplicitely write following code in MAIN window.

if <condition>

NEW-PAGE

endif .

Regards,

Amit