cancel
Showing results for 
Search instead for 
Did you mean: 

Asign Next-page Dynamically in SAP SCRIPT

Former Member
0 Kudos

Hi,

I have 3 pages FIRST,NEXt,T&C in my sapscript. My requirement is for particular Sales org only i have to call T&C page after First & Next page.. Otherwise it shd print only first & next page.

Can anyone suggest with eg if possible how it can be done.

Its urgent please

Reward points will be given . Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can pass the page name where ever you want. Use the function start_form and pass the page name. But the start_form is ended by end_form.

Reward.

Former Member
0 Kudos

Hi,

The simplest would be in the pgm set the flag depending on your conditions to print the last page.

e.g.

DATA w_print_last_page(1).

If Condition.....the w_print_last_page = 'Y'.

Else

w_print_last_page = 'N'.

Endif.

& in all windows of the last page just put the condition:

/:IF &w_print_last_page& = 'Y'.

Print whatever you want to print.

/:ENDIF

I hope this helps,

Regards

Raju Chitale

Former Member
0 Kudos

hi,

1.USe new-page <page-number> in layout,where you need to call T&c page.

2.In driver pg only write:

if sales org EQ X(number).

call start_form with specific page.

endif.

regards,

shiva.

Former Member
0 Kudos

Hi Shiva,

Thnks for ur reply. Can u please tell me that if want T&C on back of firxt page then where shd i write the code.

And u have told <new-page> -pageno. wht wud be the page no of my T&C page