cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

Hi,

I am using a standard print program medruck. in that it is calling an element

item_header_f twice.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = item_header_f

EXCEPTIONS

OTHERS = 01.

CLEAR SY-SUBRC.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = item_header_f

TYPE = 'TOP'

EXCEPTIONS

OTHERS = 01.

CLEAR SY-SUBRC.

In layout main i defined the element 'item_header_f' as

/E item_header_f

only the above statement.

i am getting error like 'Element Protect Window Main is not defined' in the

second call of the above write form.

Regards,

Ratna

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ratna,

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = item_header_f

EXCEPTIONS

OTHERS = 01.

CLEAR SY-SUBRC.

<b>here u have not mentioned the parameter

WINDOW = 'MAIN'</b>

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = item_header_f

WINDOW = 'MAIN'

EXCEPTIONS

OTHERS = 01.

CLEAR SY-SUBRC.