Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SapScript error ?

Former Member
0 Likes
909

I have a some  code. When i using preview button i get this error "START_FORM WRITE_FORM invalid because it is missing"

when i looking using debug  rstxc-tdclose value will get 'X' this is reason of error. How Can i fixed this ?

Node :Code transaction :VA22

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
731

Hi

That means you've no error if you print the document?

Max

3 REPLIES 3
Read only

Former Member
0 Likes
732

Hi

That means you've no error if you print the document?

Max

Read only

0 Likes
731

here is the error line                                 code part in function write_form.

Read only

0 Likes
731

Hi

it seems you've close your form and call it again or call a new one without to open it.

I don't kbow how your print program is, but you should have a flow like this:

OPEN_FORM

WRITE_FORM

CLOSE_FORM

If you need to print several form in the same spool request, it needs to use START_FORM and END_FORM, so the flow become like this:

OPEN_FORM

START_FORM

WRITE_FORM

END_FORM:

CLOSE_FORM

Max