cancel
Showing results for 
Search instead for 
Did you mean: 

script related error

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First you need to call the function modules in the below order.

OPEN_FORM.

START_FORM. " Incase of changing the start page

WRITE_FORM.

END_FORM. " If you use START_FORM

CLOSE_FORM

If you want to pass multiple number of records then WRITE_FORM should be kept in loop - endloop of the internal table.

Regards,

Satya