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: 

Scripts : code for protect and end protect

Former Member
0 Kudos

Hi seniors, i want know the how will we write the code for using "protect and end protect" statement in scripts and smartforms.

plz reply me soon.

thnks.

3 REPLIES 3

Former Member
0 Kudos

check the code in any standard SAPScript and see how it is used

Former Member
0 Kudos

Hi Raja,

Protect and endprotect keeps the block of text in the same page.

SAPscript provides the PROTECT .. ENDPROTECT command pair to allow you to define the areas to be protected against a page break on an individual basis. If you enclose the text to be protected in these commands, then SAPscript will ensure that each line of this text is printed together on the same page.

Cheers!!

Balu

Former Member
0 Kudos

Hi,

There is no Protect...EndProtect in Smartform, but the functionality of Page Protection do exists.....Check the given below thread for the same

SapScript Syntax:

/: PROTECT

:

:

/: ENDPROTECT