on 08-13-2011 5:16 PM
Hi Guys,
I want to fax an existing spool request. It was created as a normal printout.
I do the following :
1. Read out existing spool request with FM 'RSPO_RETURN_SPOOLJOB'
=> Spooldata is passed back in table parameter BUFFER type SOLI ( = Char, 255)
2. Bring format (=Char, 255) into OTF (= Char,2+Char,70)
3. Call FM 'CONVERT_OTF_AND_FAX'
=> This function has a tables parameter OTF type ITCOO ( = TDPRINTCOM (C,2) / TDPRINTPAR (C, 70)
Everything seems to work fine, I can see this sending request in transaction SOST, however a fax is not received. An inside look (debugging) didn't bring any errors. Maybe the faxoptions (structure ITCPP) are not correct:
FAXOPTION - structure ITCPP
- TDCOPIES = 1
- TDDEST = FD03 (<- This Output destination was used when the printout was created)
- TDNEWID = X
- TDTELELAND = DE
- TDTELENUM = 06228924559 (<- Faxnumber)
- TDTITLE = Fax - Title
- TDSPOOLID = 95515 (<- Spool ID)
- TDDEVICE = TELEFAX
- FAXFORMAT = ASC
Kind regards,
Thomas
Edited by: Thomas Mueller on Aug 15, 2011 6:48 PM
The FM CANNOT be used to convert an existing spool request (which was created for a certain output device, e.g. a printer) but it converts a spool request which was created for a fax output into the correct format for function SO_OBJECT_SEND.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
How is the status of your message in sost?
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It's not the faxformat in ITCPO.
What I figured out by comparing my program with another program (printout of balance sheets) is that this other program is able to fax or to print but not at the same execution. When you execute the balance sheet program in order to fax, the sapscript formular is created with the printer POSTSCPT (driver: POST) and code page 1117. When you execute it for printouts another printer can be choosen and the code page is 1110.
Could this be the problem of not beeing able to fax an existing spool (sapscript) request? Or is there a way to convert the OTFDATA from code page 1110 to 1117?
Cheers,
Thomas
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.