cancel
Showing results for 
Search instead for 
Did you mean: 

condition at Page Level

Former Member
0 Kudos

Hi all,

i am doing a smartform.

i want to set a condition like once the condition satisfies then print otherwise not print.

since i am using standard program and modifing the standard smartform, what u did was,

i have declared a flag and i set to X , if the condition satisfies and this i put in every individul window level, under the condition tab.

my question is , can we set a condition for page level ?, so, if the condition satisfies then page will get executed other page will not get executed ?

Thanks

KR.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi KR,

In the global definition --> initialization tab -->

if w_page = 1.
control_parameters-startpage = '%PAGE1'.
else.
control_parameters-startpage = '%PAGE2'.
ENDIF.

Regards,

Sravanthi

Former Member
0 Kudos

Hi All,

Thank you very much for the inputs. Since i am using the SAP Standard Program , i could not touch the code. so, is there any other way that i can proceed further ?

Thanks

KR

Former Member
0 Kudos

what's wrong with copy of the standard smartform?

Former Member
0 Kudos

Hi KR.

The initialization-tab in the global definitions is inside the smartform.

All information to decide what startpage has to be printed first is in it.

So you do not have to change the standard program for this.

Besides as someone mentioned. What is wrong with a copy of the standard program and making changes in it.

Gr., Frank

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

check this link,

[;

Regards,

Ansari.

Former Member
0 Kudos

Hi ,

I am talking about smartforms:

Take care, there are the following restrictions in SMARTFORMS

There are no outputconditions for pages.

The first page is mandatory (otherwise it dums).

and as advantage of smartforms:

You can with COMMAND force to go to a specific page.

With these 3 rules you must try to achieve it.

Gr., Frank

Former Member
0 Kudos

hi.

i think by putting conditions on the page level u can just check the page break .