cancel
Showing results for 
Search instead for 
Did you mean: 

write_form in sapscript

Former Member
0 Kudos

hi all,

i m getting an error while calling a form in sapscript from se38.

the error is "WRITE_FORM is invalid, START_FORM is missing".

my write form code is as follows...

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'MAIN1'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

thnks n regards,

Mukesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

try once to write write_form in between star_form and end_form function modules.

did you write ur script name in the open_form function module, if not write form name in open_form.

regds:

rajesh.k

Edited by: nacl nacl on Feb 7, 2009 4:57 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

before using WRITE_FORM, you have open and close form by using function module OPEN_FORM and CLOSE_FORM.

Hope this gives you some hint to solve your problem.

Thanks........

Former Member
0 Kudos

Hi,

Did you declare any text element ?

Make sure u give the text element same in element of function module

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'MAIN1' ( give text element )

FUNCTION = 'SET' ( give append )

TYPE = 'BODY' ( comment it )

WINDOW = 'MAIN'

try this.

Former Member
0 Kudos

thnks mam

Former Member
0 Kudos

hi,

Make sure the write_form is being executed on Opened or a started form.

In your case it might be that you closed a previous form and trying to write without actually opening the form

Thanks

Sharath