cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting customized Windows to a single page

Former Member
0 Kudos

Hi,

How do I restrict newly added windows for only the first page in sap scripts?

Regards,

Kiran

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If your sapscript has more than 1 page you can simply put your window only in the first page.

you also can add a condition to your window to print only at the first page.

something like:

/: IF &PAGE(C)& EQ '1'.

.....

.....here your what is normal inyour window

.....

/: endif

Former Member
0 Kudos

Hi Bernsen,

I just did exactly the same but it is printing the window again in the second page where I have only one page in my form.

/: IF &PAGE(C)& EQ '1'.

/: ADDRESS PARAGRAPH AS

/: Name

...

...

/: ENDADDRESS.

/: ENDIF.

Regards,

Kiran

Former Member
0 Kudos

Hi,

try this. ( Remove single quotes and . after commands)

/: IF &PAGE& EQ 1

/: ADDRESS PARAGRAPH AS

/: Name

...

...

/: ENDADDRESS

/: ENDIF

Former Member
0 Kudos

hi Kiran,

i am really supprised that the window is printed more times.

This means the value of &PAGE& must be 1 at page 1 but also 1 at page 2.

maybe you can print the value of page in that window to see what is the value of page

with a command like

  • aa&PAGE(C)&bb

I have put the aa and bb around it to see if there are spaces around.

i hope to see at page 1 aa1bb

and at page 2 aa2bb

let me know.

Gr., Frank