Hi ,
I have added new element in the main window 'AFFI' and activated. The elelent is defined properly i.e. /E .
In driver program I am calling it as -
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'AFFI'
FUNCTION = 'SET'
TYPE = 'BODY'
window = 'MAIN'
IMPORTING
PENDING_LINES =
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
OTHERS = 9
.
IF sy-subrc <> 0.
ENDIF.
While executing it gives error like -
"Element AFFI window Main is not defined for form (name of the form )
Message no ID 427.
Please help.