Skip to Content
0
Former Member
Aug 01, 2005 at 06:35 PM

SAPScript doubt

15 Views

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.