cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble viewing the print preview of sapscript

FranklinAsis
Explorer
0 Kudos

Hi experts,

I am currently developing a driver program that calls 13 different sapscript forms (which are also customized - has n existing standards). so basically, the whole program and the forms are all from scratch.

I've already executed the call function open, write and close forms, but everytime i test the program in the QAS, (the part where you can choose the print preview and the output device)

and press the print preview button, a dialog box appears telling me:

WRITE_FORM is invalid, OPEN_FORM is missing.

But i clearly stated that in my program.

Can anyone tell me how am i suppose to write the call functions that will let me see the print preview?

Also, at this moment, i'm not passing anything yet from the program to the form, i just want to check if the form is being called.

Thanks,

Frank

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Order of calling OPEN_FORM,WRITE_FORM,CLOSE_FORM

is CALL FUNCTION 'OPEN_FORM'.

LOOP AT ITAB.

CALL FUNCTION 'WRITE_FORM' .

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

You know this order.Now as you are calling more than 1 form

we should call every form between

CALL FUNCTION 'OPEN_FORM'.

CALL FUNCTION 'START_FORM'.

- - - - - - - - - -

LOOP AT ITAB.

CALL FUNCTION 'WRITE_FORM' .

ENDLOOP.

- - - - - - -- - - -

CALL FUNCTION 'END_FORM'.

CALL FUNCTION 'CLOSE_FORM'.

regards

dilip

Former Member
0 Kudos

Hi Franklin,

Order of calling OPEN_FORM,WRITE_FORM,CLOSE_FORM

is CALL FUNCTION 'OPEN_FORM'.

LOOP AT ITAB.

CALL FUNCTION 'WRITE_FORM' .

ENDLOOP.

CALL FUNCTION 'CLOSE_FORM'.

You know this order.Now as you are calling more than 1 form

we should call every form between

CALL FUNCTION 'OPEN_FORM'.

CALL FUNCTION 'START_FORM'.

- - - - - - - - - - -

LOOP AT ITAB.

CALL FUNCTION 'WRITE_FORM' .

ENDLOOP.

- - - - - - - -- - - -

CALL FUNCTION 'END_FORM'.

CALL FUNCTION 'CLOSE_FORM'.

Try using this.

Regards

Lakshman