cancel
Showing results for 
Search instead for 
Did you mean: 

help me .ERROR message : Handle not valid for open spool request.

Former Member
0 Kudos

hi friends ,

I am in a beginner in SAP ,so i request you to help me in providing solutions to my problem

my problem: while i am trying to execute my SAPSCRIPT without the dialog screen i mean "print window screen" am getting the error as

"Handle not valid for open spool request"

actually my coding looks like

_________________________________________________________

DATA : WA_OPTIONS LIKE ITCPO.

WA_OPTIONS-TDPREVIEW = 'x'.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

DIALOG = ' '

OPTIONS = WA_OPTIONS

FORM = 'Z243_KA_SS_10CC'

LANGUAGE = SY-LANGU

CALL FUNCTION 'WRITE_FORM'

EXPORTING

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'WINDOW1'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ITEM'

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TOTAL '

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'WINDOW5'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'TOTAL '

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'WINDOW6'.

CALL FUNCTION 'CLOSE_FORM'.

_________________________________________________________

is anything i want to change setting in my SE71?

all your reponses are appreciated.

Thanks,

shan

Message was edited by: SHAN PALAN

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please check if you still encounter the same problem when you change the below statement:

WA_OPTIONS-TDPREVIEW = 'x'.

as

WA_OPTIONS-TDPREVIEW = '<b>X</b>'.

Kind Regards

Eswar

Former Member
0 Kudos

ya its working ,thanks a lot.

thanks,

shan

Former Member
0 Kudos

Hi Experts,

I'm having the same issue but it occurs randomly. We're not able to replicate the issue. Could you please explain the logic behind the statement below?

WA_OPTIONS-TDPREVIEW = 'x'.

as

WA_OPTIONS-TDPREVIEW = '<b>X</b>'.

Florian
Active Contributor
0 Kudos

Hi JAck,

this doesn't change anything. It is a CHAR1 in the domain. So there might be exact two valid values

ABAP_TRUE and ABAP_FALSE.

If you face the problem from time to time, did you check the user-parameters? Might be there is something wrong.

Next suggestion: Enhancement anywhere?

You need to share more details if you want more than just suggestions

What form, what Transaction, how often does that happen, are there specific users, a specific printer and so on...

~Florian

Answers (0)