Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

script query

Former Member
0 Likes
504

Hi all,

I am working on scripts.I have 2 pages called first and second pages.

In the footer of every page i have some text

say 'abc'.

But in the last page footer in addition to abc, i need something else too say 'abc' 'def'.

can you guys tell me how to draw a box too.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
469

hi kajol,

the last page footer in addition to abc, i need something else too say 'abc' 'def'.

in the form

/: if &nextpage& = 0.

  • abc def

/: endif.

box command

/: BOX XPOS 10 CH WIDTH 0 CM FRAME 10 TW

http://www.thespot4sap.com/Articles/SAPscript_commands.asp

Message was edited by: Priya

3 REPLIES 3
Read only

Former Member
0 Likes
470

hi kajol,

the last page footer in addition to abc, i need something else too say 'abc' 'def'.

in the form

/: if &nextpage& = 0.

  • abc def

/: endif.

box command

/: BOX XPOS 10 CH WIDTH 0 CM FRAME 10 TW

http://www.thespot4sap.com/Articles/SAPscript_commands.asp

Message was edited by: Priya

Read only

Former Member
0 Likes
469

Hi,

Print Footer notes only on the last page

Command to used in your sapscripts :-

/: IF &NEXTPAGE& EQ 0

  • 'abc' 'def'

whatever footer you want.

/: ENDIF

regards,

keerthi.

Read only

Former Member
0 Likes
469

HI Kajol,

You can write this condition in the footer window :

if &nextpage& EQ 0.

def.

else.

abc.

endif.

You can also write as :

if &page& EQ &formpages&.

def.

else.

abc.

endif.

All these variablke will be stored at runtime in the structure called sapscript . View this via SE11.

To draw a box for the window : View the BOX command :

/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

Ex:

/: BOX 0 cm 0 cm 0 cm 1 cm FRAME 10 TW .

Also refr to this documentation to get a complete idea about sapscript and its concepts .

http://help.sap.com/saphelp_47x200/helpdata/en/d1/8032bf454211d189710000e8322d00/frameset.htm

Regards,

Varun .