Skip to Content
author's profile photo Former Member
Former Member

how to use protect and protect

how to use protect and endprotect for two different element.

iam using one element for 'tax' and one for 'item total'

i wnt to print two elements in one page only.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2006 at 01:21 PM

    the protect and endprotect is not working for two diiferent elements

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      What does 'Elements' mean for u?

      Text Elements?

      You can try to manage it in print program:

      CALL FUNCTION 'CONTROL_FORM'

      EXPORTING

      COMMAND = 'PROTECT'.

      CALL FUNCTION 'WRITE_FORM'

      EXPORTING

      ELEMENT = 'ELEMENT1'.

      CALL FUNCTION 'WRITE_FORM'

      EXPORTING

      ELEMENT = 'ELEMENT2'.

      CALL FUNCTION 'WRITE_FORM'

      EXPORTING

      ELEMENT = 'ELEMENTN'.

      CALL FUNCTION 'CONTROL_FORM'

      EXPORTING

      COMMAND = 'ENDPROTECT'.

      Max

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2006 at 01:07 PM

    Hi

    /: PROTECT

    • &TAX&

    • &TOTAL&

    /: ENDPROTECT

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2006 at 01:36 PM

    element /E tax

    /E total

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      So you can write in your print program:

      CALL FUNCTION 'CONTROL_FORM'

      EXPORTING

      COMMAND = 'PROTECT'.

      CALL FUNCTION 'WRITE_FORM'

      EXPORTING

      ELEMENT = 'TAX'.

      CALL FUNCTION 'WRITE_FORM'

      EXPORTING

      ELEMENT = 'TOTAL'.

      CALL FUNCTION 'CONTROL_FORM'

      EXPORTING

      COMMAND = 'ENDPROTECT'.

      Max

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.