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

SAPScript doubt

Hi,

I am working os SAPSCript form.

In main window I am using two text elements.

/E: TOTAL1

.

.

.

/E: TOTAL2

.

.

.

On one condtion total1 should get printed and on other total2.

So in print program do I have to call WRITE_FORM two times for this main window as follows:

IF .........

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TOTAL1'

FUNCTION = 'SET'

TYPE = 'TOP'

WINDOW = 'MAIN'

EXCEPTIONS

OTHERS = 8

ELSE.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TOTAL2'

FUNCTION = 'SET'

TYPE = 'TOP'

WINDOW = 'MAIN'

EXCEPTIONS

OTHERS = 8

ENDIF.

I also want make sure what I have understood is correct, that /E: is used to divide various text elements when we want to print them using certain conditions.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 01, 2005 at 06:41 PM

    The way that you are doing it is the right way. The /E is for elements. You trigger these elements to print in the MAIN window.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2005 at 06:43 PM

    Hi Tushar,

    What you have done and understand is correct. What ever you write under the text element will be executed when you call that text element. The content of one text element will end when you start a new one. You can call the text elements based on conditions.

    Thanks

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

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.