cancel
Showing results for 
Search instead for 
Did you mean: 

sap script form

former_member207019
Participant
0 Kudos

Dear Friend,

I got this error, and i searched for it in the forum,I could find out some solutions , but they were not useful for me, Error : "Element window MAIN is not defined for form". For this I checked Main window element name and print program element name. Both are same. So could you please help me.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just uncomment all th ecxeptions in write_form

problem will solve.

Answers (2)

Answers (2)

venkateswarareddy_medam
Active Participant
0 Kudos

Hi,

use the Caps in the single codes.

eg:element = 'CAPS".

regards,

Venkat.

Former Member
0 Kudos

Hi,

I m not sure that you are maintaining like this

Form Painter

/E TEST

Program

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TEST'

  • FUNCTION = 'SET'

  • TYPE = 'BODY'

WINDOW = 'MAIN'.

if you are maintaining I think it should not be an error or are you calling any multiple elements with one FM, if not call for each element and try to debug and get the error line to analyse.

Regards,

Anil