Application Development 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: 

regarding script

Former Member
0 Kudos

Hi

good evening....

suppose i have 5 pages of documentation as standard text elements.i don't want to print all the pages.I want to print only 3 line of data in each page.

At last page i want to print all the 5 pages documentation.how to code to this requirement?

regards,

k.swaminath reddy

2 REPLIES 2

Former Member
0 Kudos

Hi

Put the condition for the Pages which are to be printed in last page

/: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&

/ ...WRITE THE PAGES TEXT that should be printed only in 5th page

/: ENDIF

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Hi,

If you want to print only 3 lines and do not want to chage the Standard text, then create a 3 line Variable winodw and call this Standard text, then it will print only the first 3 lines,

or else, you can create one more standard text for those 3 lines, and call this text to pritn the 3 lines

After that if you want to print all the pages, then you can check the below command to print the text in the last page

IF &PAGE& eq &SAPSCRIPT-FORMPAGES&
" call the Standard text
ENDIF.

Regards

Sudheer