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

Protect command

Former Member
0 Likes
497

hi!

some one told me that If I want to display the paragraph at one place i mean with out any page break then first use control_form for protect then u r required element then end protect.

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

command = 'PROTECT'.

call function 'WRITE_FORM'

exporting

window = 'MAIN'

element = 'ITEM_LINE'

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

command = 'ENDPROTECT'.

*********************************************************

How much the above method is useful?

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
455

Hi,

Yes you are correct PROTECT and ENDPROTECT will allow to display the data without any page breaks whaterver written in between PROTECT and ENDPROTECT.

reward points if it is helpful.

Regards,

Sangeetha.A

Read only

Former Member
0 Likes
455

Hi

The Use Of PROTECT....ENDPROTECT is to avoid page breaks..The whole data in between this will come in one page..

Reward All Helpfull Answers...........

Read only

Former Member
0 Likes
455

hi khan,

use of PROTECT and ENDPROTECT is for avoiding the page breaks.

i.e when ever u wanna display some imp informatio continuously and imagine a situation where u are at the end of page then the information is splitted into two parts and displayed in two different pages.

to avoid these kind of situations we use protect and end protect , which will ensure the information to be displayed continously with out any page breaks.

if helpful reward some points.

with regards,

suresh babu aluri.