<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROTECT command in script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/protect-command-in-script/m-p/3336930#M799815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. 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. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PROTECT&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDPROTECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text lines to be protected are enclosed between the two commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ENDPROTECT command without a preceding PROTECT command has no effect.&lt;/P&gt;&lt;P&gt;If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.&lt;/P&gt;&lt;P&gt;PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.&lt;/P&gt;&lt;P&gt;If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope dis helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Jan 2008 06:36:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-27T06:36:32Z</dc:date>
    <item>
      <title>PROTECT command in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protect-command-in-script/m-p/3336929#M799814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing reservation sheet, when i print the reservation the line items are printing different page.&lt;/P&gt;&lt;P&gt;I used the PROTECT command like this but still it is printing different page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E     ELE1&lt;/P&gt;&lt;P&gt;/:       PROTECT&lt;/P&gt;&lt;P&gt;/M1     itab-rspos,,itab-matnr,,itab-erfmg&lt;/P&gt;&lt;P&gt;/:      ENDPROTECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one plese tell me what was the wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2008 06:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protect-command-in-script/m-p/3336929#M799814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-27T06:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROTECT command in script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protect-command-in-script/m-p/3336930#M799815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. 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. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PROTECT&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;/: ENDPROTECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text lines to be protected are enclosed between the two commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ENDPROTECT command without a preceding PROTECT command has no effect.&lt;/P&gt;&lt;P&gt;If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.&lt;/P&gt;&lt;P&gt;PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.&lt;/P&gt;&lt;P&gt;If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope dis helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jan 2008 06:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protect-command-in-script/m-p/3336930#M799815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-27T06:36:32Z</dc:date>
    </item>
  </channel>
</rss>

