Sapscript to spool
in driver prgram of my sapscript, i need to generate a spool request (automatically in driver program) and then convert this Spool to PDF (tat i can do by using FM abapspoolpdf)..but how to go for the first requirement???
try to do like that..
data : begin of zz_itcpp.
include structure itcpp.
data : end of zz_itcpp.
"CALL FUNCTION 'CLOSE_FORM'
Importing
Result = zz_itcpp
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
zz_spool_no = zz_itcpp-TDSPOOLID.
Similar Messages
-
Sapscript output(Spool) to PDF problem when viewed
We have a number of documents which are output in Russian using the Cyrillic courier font within our Uincode SAP system. They look fine on the spool when viewed, print okay, and all look fine when converted to a PDF file (using RSTXPDFT4) and viewed via Adobe PDF viewer (vers 9.1.20), except one form, the invoice, which will not display properly in Adobe, showing square blocks with crosses through them when viewed. The strange thing is that when this same PDF is viewed via Sumatra (Open source PDF viewer) it looks perfect, but will not display via the Adobe PDF viewer, even though all the other delivery/dispatch docuemnts (all Sapscript) print and view fine via the Adobe PDF viewer.
I guess I could suggest that we just use Sumatra from now on, but that is not really the answer when you have a multinational company which has Adobe already installed on all hardware as default.
Has anyone come across this problem before. I was wondering if there could be anything in Sapscript that might have caused this as this is a copy of SAP standard Russian Invoice Sapscript (J_3RVINVOICE)?
I'm going to check OSS to see if there's a fault with the PDF convertion program (RSTXPDFT4) but I would like to hear from anyone that may have encountered the same problem.
Regards
GaryHi Gary
How the issue is resolved, please let me know. Since i am also facing same issue.
Thanks
M G Shankar -
Sapscript get spool when the delivery printed
Hi all,
i need such a thing:
the user gets print out from printer and also wee need to send the same delivery items via email.
We want to send the email while printing occurs.
here i i need to get the spool id of sapscript and this convert this spool to pdf.
How can i do that? especially how can i get the spool id, when you get print from printer no spool created or what?
thanksHi,
The user gets print out from printer and also wee need to send the same delivery items via email.
For this maintain condition record and configure sost settings
We want to send the email while printing occurs.
Here check for any exit available or develop a custom program.
here i i need to get the spool id of sapscript and this convert this spool to pdf.
Check the table nast,tsp01.
How can i do that? especially how can i get the spool id, when you get print from printer no spool created or what?
<< Moderator message - Cut and paste response without attribution from http://help.sap.com/saphelp_nwpi711/helpdata/en/82/a9234289305133e10000000a155106/content.htm removed. Plagiarism is not allowed in SCN >>
Regards,
Madhu.
Edited by: Rob Burbank on Jan 4, 2012 11:15 AM -
Hi all,
i need to send to sapscript form to spool.
any suggestion to do this ?
Regards,
LukeHi
During script call send print parameters and it will be sent to spool accordingly.
After getting the print preview of the SCRIPT.
Click On PRINT.
then one spool request will be generated by system.
Go to SP01.
You Can Find SPOOL Reqest Number
Edited by: Lavanya K on Aug 13, 2008 9:54 AM -
hi
in sapscript function:
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = device
language = sy-langu "language
form = 'Z_SHOPPING_LIST'
OPTIONS = itcpo
dialog = ' '.
how to set: just to send spool not print out.
thank you very much!hi !
who can give me a idea!
just let sap form generate in spool ,so can view use SP02 don't print immediate! -
Sales order (Sapscript) to Spool.
Dear all,
Has anybody know any Function module that i can printout the sales order into Spool? The form should be sapscript.
It will develop a program and let user input the sales order number then it will print out the sales order into spool automatically.
Please kindly advise
As i searh the forums, i can't find such case for it
Regards,
LukeHi all,
I want to user input the Sales order number and print out the sales order forms into SPool.
Regards,
Luke -
SapScript output spool to a POST script file
We generate billing invoice output using custom
program/Sap script. Subsequently we release the invoice print out from
the print spool to create a post script file from the print spool by configuring command set "G" in
transaction u201CSPADu201D. This processis is working fine in R/3
However, when we migrated the same functionality to ECC, we are finding
that the file created containing only garbage data.
Anyone has encountered this issue and have suggestions to resolve this.
Thanks
PalaniHi Gary
How the issue is resolved, please let me know. Since i am also facing same issue.
Thanks
M G Shankar -
How to convert SAP script to pdf format and send mail? What do we need to do in print program and configuration we need to achive?
ThanksHi,
U can contro the print options
With the function modules PRINT_TEXT and OPEN_FORM, you can set output formatting and print control using the parameter OPTIONS. The data you pass to this parameter must have the structure ITCPO. The fields of this structure come from the areas SAPscript, the spool, and SAPcomm. Some of these fields can be changed by the user on the selection screen, if you requested it using the parameter DIALOG with the above function modules. The print program evaluates these changes using the corresponding fields of the parameter RESULT.
check the structures ITCPP & ITCPO
TDDEST where u can give the prineter name
in that u have TDIMMED pass this AS 'X'.
and u can results as desired. -
Does Jetform has its own design interface or THE jetforms command can be included in SAP SCRIPT too ???
I dont know what the problem is :
I have a SAPSCRIPT ( pointed to by the output type ) and when i open i see alll these commands ( of jetforms ^) .
People are telling that they are no more using the Jetform and there is no jetform printer ...then how is the outpiut coming out ?
The output type points to this SAPSCRIPT ( that has ^ commands in it )
Can a nyone throw some lt on this ?Jetforms server uses sapscript output spool file as input an merges the data with the layout designed in jetfform designer and sends to the printer.
When jetforms are used, no formatting is required in sapscript, it should contain all the fields that are required on the form.
What is the output spool look like in SP01 when you are printing? is it exactly like what's being printed?
If jetforms are used, it's different from what you see on paper.
Regards
Sridhar -
How to get SapScript and Smartform printed in one spool request?
Hello experts,
I want to print the production order package in one spool request.
Print program consists of Smartform and SapScript.
First page is in landscape format with barcode(Smartform) and the rest is in portrait format(Sapscript).
In SAP documentation is written that it is possible for several Smartforms to be printed in one spool request.
Is it possible for 1 Smartform and 1 SapScript called from a single program to be printed in one spool request?
I have tested it with calling first the Smartform control-no_close= 'X' without success.
Can anyone tell me if this is possible and how?
Thank you.
Kind regards,
DanijelaHi
In the driver program .
*"Selection screen elements............................................
SELECTION-SCREEN BEGIN OF BLOCK block WITH FRAME.
PARAMETERS:
p_script RADIOBUTTON GROUP rad1,
p_smartform RADIOBUTTON GROUP rad1,
SELECTION-SCREEN END OF BLOCK block.
*"Selection screen elements............................................
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
PARAMETERS:
p_single RADIOBUTTON GROUP rad2, " All the spool request
p_ind RADIOBUTTON GROUP rad2.
SELECTION-SCREEN END OF BLOCK block1. " Single spool request
If p_script EQ 'x'.
w_form = 'Y_SCRIPT'.
Elseif p_smartfom EQ 'X'.
w_form = 'Y_SMARTFORM'.
ENDIF.
call function 'SSF_FUNCTION_MODULE_NAME'.
Call function 'SSFCOMP_OPEN'.
w_control-no_open = ' '.
w_control-no_close = ' '.
*"Single spool request..................................................
IF p_single EQ 'X'.
w_control-no_open = 'X'.
w_control-no_close = 'X'.
ELSE.
*"Individual spool request.............................................
IF w_flag NE '1'.
w_control-no_open = 'X'.
w_control-no_close = ' '.
w_flag = 1.
CALL FUNCTION ' '-----> smartform function module.
CALL FUNCTION 'SSFCOMP_CLOSE'.
Regards,
Sravanthi -
Convert a SAPScript spooled file to PDF
I have an urgent request to build a front-end interface to map the parameters to SAP Standard object RFOAVIS_FPAYM. This is the driver program for Remit (Payment) Advice Notes using SAPScript. I need to create a way to submit RFOAVIS_FPAYM and Return back to the calling program after the Remit Note has been created in the SAP spooler. Then I need to read the spooled file and pass the parameters to the FM CONVERT_OTF_2_PDF to create a PDF version and email the PDF via SAPConnect.
Has anyone done something similar? I am looking for help in capturing the newly created SAPScript form in the spooler and passing the correct parameters to FM CONVERT_OTF_2_PDF so that I will convert the correct output..Take a look at these two Process BTEs, Business Transaction Events.
00002040 Autom. pmnt transactns: Output of pmnt advice note
00002050 Autom. pmnt transactns: Output of pmnt advice note
Look at them from Tcode BF05 . They can be created from the Customizing Tcode SPRO.
The help document for BTEs in Tcode SPRO is really quite good.
Bruce
The documentation:
Business Transaction Events
This activity describes how you can connect additional components (such as in the form of function modules developed yourself or a product from an external software provider) to the standard R/3 System.
There are two types of interface available in the General Ledger Accounting (FI-GL), Accounts Receivable and Accounts Payable (FI-AR/FI-AP), and Sales and Distribution (SD) components for this:
1. Publish & Subscribe interfaces (also called "informing interfaces" in the following)
These should inform you about particular events (such as a document being entered) in the SAP standard application and make the data generated as a result available to the external software. The external software does not return any data to the standard R/3 System. Examples of such events in the R/3 System are:
Master record was created, changed, or blocked
Document was entered, parked, changed, or reversed
Items were cleared or reset
Additional processing can be caused in the additional component on the basis of these events and data:
Starting a workflow
Generating or changing additional data
Requesting correspondence
2. Process interfaces (also referred to as "process" in the following)
Process interfaces are used to submit business processes to a different control which cannot be realized with the standard system, that is process interfaces replace standard processes.
Here you can structure determination of individual field contents or of specific reactions to process flows individually. It is possible to connect different external developments to the standard R/3 System. The additional developments are generally carried out using the ABAP/4 Development Workbench.
This way you can, for example, influence the control of payment transactions. Selection of payment method, house bank and partner bank can be made using the payment data (currency, amount, and payee) according to a selection logic which you have defined.
Standard settings
Sample modules are delivered in the standard R/3 System which you can copy into your name range and fill them with statements there.
Activities
1. Enter a product using "Settings -> Customer's products". There are generally a large number of function modules belonging to a product which can be called by different program events from within the standard R/3 System. A product can also be an external software component.
If the product is in an external system, enter an RFC destination here. If the product is in the same system, you do not have to enter anything.
Important: Do not forget to activate the product after making the following settings.
2. Establish the interfaces with which the R/3 System provides you.
To do this, choose Environment -> Info system (P/S) or Environment -> Info system (Processes).
Execute the program. You should enter "A" as the attribute type. You see the respective interfaces with which the R/3 System provides you. Note the key of the interface which you require.
You can also select:
By particular SAP application components
By particular events by entering intervals
Which interfaces are used in activated products
Which interfaces are used within a particular country version or within a particular industry
Which interfaces are used within a particular customer product
3. Enter the function module which you have developed yourself. To do this, choose either Goto -> Edit modules within the info system or Settings -> P/S modules or Process modules -> Customer's in the "SAP Business Framework" menu.
Make the following entries:
Key for the interface
The product that you want to use
Function module which belongs to this product.
You can also enter several function modules for a product.
Caution: The function module must be within your name range, that is must begin with the letter Z.
You leave the Ctr and Appl. fields blank unless you want a particular country version or a particular SAP industry-specific component to be enhanced or replaced instead of the standard process flow.
4. Fill the source text of your function module and activate it.
To do this, go again via Environment -> Info system (P/S) or Environment -> Info system (Processes) into the information system and execute the program. Then proceed as follows:
Click twice on the interface you have chosen. If you want, you can look at the interface at this point by choosing Goto -> Interface. Then choose the Back function again afterwards.
Place the cursor on the relevant line and choose Goto -> Function library. You see the sample function module delivered by SAP.
Copy the sample module delivered by SAP and call it the same as the function module entered in step 3.
Fill the source text of the empty function module.
Activate the function module.
Activate the product as described in step 1.
5. Run the R/3 program affected and test whether calling your function module works.
Further notes
The other menu paths are only used for information about additional components delivered by SAP or about software already installed by external software providers. -
Hello gurus, is it possible to create a spool, when seeing and printing the sapscript at run-time?
I am using FM GET_TEXT_PRINT_PARAMETERS but is not creating any spool.
Thanks in advance!Hi,
Try like this:
FORM open_form.
DATA : tmp_answer.
itcpo-tdimmed = 'X' .
perform fill_itcpo.
itcpo-tdgetotf = 'X'.
itcpo-tdpreview = space.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = layout
language = sy-langu
options = itcpo
device = 'PRINTER'
dialog = ' '
options = it_itcpo
EXCEPTIONS
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.
form fill_itcpo .
REFRESH it_itcpo.
CLEAR it_itcpo.
it_itcpo-TDPAGESLCT = SPACE.
it_itcpo-TDCOPIES = SPACE.
it_itcpo-TDDEST = 'LOCL'.
it_itcpo-TDPRINTER = SPACE.
it_itcpo-TDPREVIEW = SPACE.
it_itcpo-TDNOPREV = SPACE.
it_itcpo-TDNOPRINT = SPACE.
it_itcpo-TDNEWID = 'X'.
it_itcpo-TDDATASET = SPACE.
it_itcpo-TDSUFFIX1 = SPACE.
it_itcpo-TDSUFFIX2 = SPACE.
it_itcpo-TDLIFETIME = SPACE.
it_itcpo-TDSCHEDULE = SPACE.
it_itcpo-TDSENDDATE = SPACE.
it_itcpo-TDSENDTIME = SPACE.
it_itcpo-TDTELELAND = SPACE.
it_itcpo-TDTELENUM = SPACE.
it_itcpo-TDTITLE = SPACE.
it_itcpo-TDTEST = SPACE.
it_itcpo-TDPROGRAM = 'Z_1IEWT_CERT_F01'.
it_itcpo-TDSCRNPOS = SPACE.
it_itcpo-TDCOVER = SPACE.
it_itcpo-TDCOVTITLE = SPACE.
it_itcpo-TDRECEIVER = SPACE.
it_itcpo-TDDIVISION = SPACE.
it_itcpo-TDAUTORITY = SPACE.
it_itcpo-TDARMOD = SPACE.
it_itcpo-TDIEXIT = SPACE.
it_itcpo-TDGETOTF = 'X'.
it_itcpo-tdgetotf = space.
it_itcpo-TDFAXUSER = SPACE.
it_itcpo-TDIMMED = 'X'.
it_itcpo-TDDELETE = SPACE.
endform. " fill_itcpo
call function 'CLOSE_FORM'
IMPORTING
RESULT = LS_ITCPP
TABLES
OTFDATA = it_otfdata
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
OTHERS = 4.
if sy-subrc eq 0.
submit rstxpdft4 with spoolno = ls_itcpp-tdspoolid and return.
endif.
Regards,
Bhaskar -
Is there a FM or program to create a postcript file from a SAPScript spool?
Does anyone know of a Function module or ABAP program that will create (an external to SAP) postcript file from a SAP Script spool?
I can create a PDF using program RSTXPDFT4 but I need a physical Postscript file.
I have found this note about postscript:
"use RSPO_PROCESS_DIALOG_JOB to use spooler and device type POSTSCPT to convert OTF to PostScript"
But when I run the function module RSPO_PROCESS_DIALOG_JOB for my SAPScript spool file I get the message: Printjob not found 128
Has anyone solved this problem before?
Thanks,
Bev.I got the same issue: Acrobat won't create pdfs, but keeps asking me for the serial number.
I use Acrobat 10.1.16 (within CS 5.5 Teacher's Edition) on a Windows 7 (64) Notebook.
An update to fix this issue would be great. -
Creating 1 spool for every 1000 sapscripts
Hi Friends ,
I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be set in the beginning and when starting a new set of spool with 1000 forms .
Thanks,
TeresaYou need to count the records and then for every 1000 you have to make a new SPOOL..
LIke:
LOOP AT ITAB.
CNT = CNT + 1.
ITCPO-TDNEWID = ' '.
IF CNT = 1.
ITCPO-TDNEWID = 'X'.
ENDIF.
OPEN_FORM
wtih OPTIONS = ITCPO.
WRITE_FORM
CLOSE_FORM
IF CNT = 1000.
CLEAR CNT.
ENDIF.
ENDLOOP.
Regards,
Naimesh Patel -
Can split sapscripts into 2 spools?
Hi experts,
I have this requirement to printout cheque using sapscripts. However, I can only print a certain number of invoice details in page 1 before the extra invoice details will be overflowed to the next page. The overflowed details page will affect the next cheque number if no extra paper is inserted after the overflowed page and before the next vendor form.
I would like to ask is there any way that I can code so that the first spool will contains all the 1st page vendor form and the second spool will only contains all the overflowing invoice details.
In addition, what might be some of the possible ways for cheque printout?? It is because the design will be bad if restrict the user to a certain number of invoice details per vendor per cheque number, or have to purposely insert extra page for the overflowing invoice details.Click here.
(63413)
Maybe you are looking for
-
I really just need to activate my phone fast and that's why I'm trying to do it online but it just keeps telling me my "MEID" serial number is wrong but that's what my settings is telling me it is. So I'm just really frustrated
-
How do I get back into my iPod when it's locked and I forgot my password
My son has forgotten his password and he's tried it so many times that he's completely locked out of it. It says to connect to iTunes, and we have but it says it cant be connected to his iPod because it is locked with a passcode.How can we get back o
-
Stale Data Error in Last Page of the Table
Hi, we are getting stale data error if we are performing any action in the Last Page of the Table..... It is working fine when we are performing an action on any other page... but when we are performing action on the Last Page of the Table we are enc
-
Hey guys, is there a way to transform an XML to a XLS within ABAP? I created an XML object which describes an excel sheet some tables. This XML object i attached to an email for sending. But the created XML is to big (about 20MB). I'd like to transfo
-
Delete single message from SXMB_MONI
Hi There, I want to delete a single errored message from SXMB_MONI, please help Regards, Nishant