on 10-26-2006 9:29 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.