Generating spool request
Hi Experts,
My rquirement is to generate spool request without getting the output displayed on the screen.
<fs_outtab> is the dynamic internal table containing data. It will have several fields.
I want to send this data to spool so that it can be seen when the background job runs.
But I do not want the output to be displayed on the screen.
<< Removed >> Please don't forward links as it cannot be opened in my system.
Thanks.
Edited by: Rob Burbank on Jun 25, 2010 11:17 AM
See try to make an alv grid diaplay program for the internal table.( like this)
form fill_catalogue .
wa_fieldcatalog-fieldname = 'WERKS'.
wa_fieldcatalog-seltext_m = 'Plant'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'LGORT'.
wa_fieldcatalog-seltext_m = 'St.Loc'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'SHKZG'.
wa_fieldcatalog-seltext_m = 'Iss/Rec'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'BUDAT'.
wa_fieldcatalog-seltext_m = 'Posting Date'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'CHALAN'.
wa_fieldcatalog-seltext_m = 'Document No'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'BOLNR'.
wa_fieldcatalog-seltext_m = 'Bill of Lading'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'BRGEW'.
wa_fieldcatalog-seltext_m = 'Gross Wt.'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'NTGEW_CH'.
wa_fieldcatalog-seltext_m = 'Net Chargeable Wt.'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'SHIP_PARTY'.
wa_fieldcatalog-seltext_m = 'Customer/Vendor/Plant'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
wa_fieldcatalog-fieldname = 'SAL_GRP'.
wa_fieldcatalog-seltext_m = 'Sales Group'.
wa_fieldcatalog-tabname = 'IT_FINAL'.
wa_fieldcatalog-emphasize = 'X'.
append wa_fieldcatalog to fieldcatalog.
clear wa_fieldcatalog.
endform. "fill_catalogue
*& Form display
text
form display .
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = sy-repid
it_fieldcat = fieldcatalog[]
tables
t_outtab = it_final
exceptions
program_error = 1
others = 2.
Then you must be accepting some parameters fromthe screen. just take the values from the selection screen
press F9, and proceed as your requirement is.
endform. "display
Similar Messages
-
Is there any FM to generate spool request for error log of a background job
Hi,
I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log or how can this be done? Kindly provide sample code if possible.
Thanks.
Nimish Dongare.Hi Nimish,
How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
If u don mind, can u give me ur email id to communicate.
Thanks,
Shreekant -
Long time for generating spool request for smartforms
Hi,
I'm have designed a smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
The Code i used is below
CALL FUNCTION lv_fname
EXPORTING
p_belnr = p_belnr
p_bukrs = p_bukrs
p_gjahr = p_gjahr
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Please help me out to sort this issue.
Thanks,
Ramesh
Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AMHi Rameshkumar,
you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
Regards
Clemens -
How To Generate Spool request for a SAP-Script form
How To Generate Spool request for a SAP-Script form
Hai Rahaman,
After getting the print preview of the SCRIPT.
Click On PRINT.
Buttom of the page one spool request will be generated by system.
Go to SP01.
You Can Find SPOOL Reqest Number.
Regards.
Eshwar. -
Generate spool request and PDF
Hello Friends,
I have the below requirement in Scripts.
I need to generate spool request and also download the form as pdf simultaneously.
I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
Regards.
Krishna.Copy and Paste following code in a Z program type executable:
REPORT ZRSTXPDFT4 LINE-SIZE 80.
Read spool job contents (OTF or ABAP list) and convert
to PDF, download PDF
B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-015.
SELECTION-SCREEN SKIP.
PARAMETERS:
SPOOLNO LIKE TSP01-RQIDENT.
SELECTION-SCREEN SKIP.
PARAMETERS : DOWNLOAD AS CHECKBOX DEFAULT 'X',
P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\file.pdf' NO-DISPLAY."#EC NOTEXT
SELECTION-SCREEN END OF BLOCK B.
DATA OTF LIKE ITCOO OCCURS 100 WITH HEADER LINE.
DATA CANCEL.
DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.
DATA: NUMBYTES TYPE I,
ARC_IDX LIKE TOA_DARA,
PDFSPOOLID LIKE TSP01-RQIDENT,
JOBNAME LIKE TBTCJOB-JOBNAME,
JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
IS_OTF.
DATA: CLIENT LIKE TST01-DCLIENT,
NAME LIKE TST01-DNAME,
OBJTYPE LIKE RSTSTYPE-TYPE,
TYPE LIKE RSTSTYPE-TYPE.
TABLES: TSP01.
DATA : RETFIELD TYPE DFIES-FIELDNAME.
DATA : SPOOL TYPE HELP_INFO-DYNPROFLD.
DATA : BEGIN OF ITAB OCCURS 0,
SPOOL TYPE TSP01-RQIDENT,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SPOOLNO.
RETFIELD = SPOOLNO.
SPOOL = 'SPOOLNO'.
SELECT RQIDENT FROM TSP01 INTO TABLE ITAB."#EC CI_NOWHERE
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = RETFIELD
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = SPOOL
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = SY-CPROG
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = ITAB[]
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
START-OF-SELECTION.
SELECT SINGLE * FROM TSP01 WHERE RQIDENT = SPOOLNO.
IF SY-SUBRC <> 0.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
ENDIF.
CLIENT = TSP01-RQCLIENT.
NAME = TSP01-RQO1NAME.
CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
EXPORTING
AUTHORITY = 'SP01'
CLIENT = CLIENT
NAME = NAME
PART = 1
IMPORTING
CHARCO =
CREATER =
CREDATE =
DELDATE =
MAX_CREDATE =
MAX_DELDATE =
NON_UNIQ =
NOOF_PARTS =
RECTYP =
SIZE =
STOTYP =
TYPE = TYPE
OBJTYPE = OBJTYPE
EXCEPTIONS
FB_ERROR = 1
FB_RSTS_OTHER = 2
NO_OBJECT = 3
NO_PERMISSION = 4.
IF OBJTYPE(3) = 'OTF'.
IS_OTF = 'X'.
ELSE.
IS_OTF = SPACE.
ENDIF.
IF IS_OTF = 'X'.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOLNO
NO_DIALOG = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = NUMBYTES
PDF_SPOOLID = PDFSPOOLID
OTF_PAGECOUNT =
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = PDF
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CASE SY-SUBRC.
WHEN 0.
PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
'Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich'(001).
WHEN 1.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Kein OTF- und kein ABAP-Spoolauftrag'(002).
EXIT.
WHEN 2.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
WHEN 3.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Keine Berechtigung zum Lesen Spoolauftrag'(004).
EXIT.
WHEN OTHERS.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF'(005).
EXIT.
ENDCASE.
ELSE.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOLNO
NO_DIALOG = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
PDF_BYTECOUNT = NUMBYTES
PDF_SPOOLID = PDFSPOOLID
LIST_PAGECOUNT =
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CASE SY-SUBRC.
WHEN 0.
PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich'(006).
WHEN 1.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Kein OTF- und kein ABAP-Spoolauftrag'(002).
EXIT.
WHEN 2.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Spoolauftrag existiert nicht'(003).
EXIT.
WHEN 3.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Keine Berechtigung zum Lesen Spoolauftrag'(004).
EXIT.
WHEN OTHERS.
PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
'Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF'(007).
EXIT.
ENDCASE.
ENDIF.
download PDF file ***********
CHECK DOWNLOAD = 'X'.
IF NOT ( JOBNAME IS INITIAL ).
PERFORM BD_TEXTBOX_VAR2_MSG(RSTXPDFT) USING 80
'Konvertierung per Hintergrundjob'(008)
JOBNAME
JOBCOUNT.
EXIT.
ENDIF.
PERFORM DOWNLOAD_W_EXT(RSTXPDFT) TABLES PDF
USING P_FILE
'.pdf'
'BIN'
NUMBYTES
CANCEL.
IF CANCEL = SPACE.
DATA: S(80).
S = NUMBYTES. CONDENSE S.
CONCATENATE S 'Bytes heruntergeladen in Datei'(009)
INTO S SEPARATED BY SPACE.
PERFORM BD_TEXTBOX_VAR1_MSG(RSTXPDFT) USING 80
S
P_FILE.
ENDIF.
Regards,
Jeet K Bhatt -
Generate spool request from an invoice
Hi,
I'd like to know is there any function module to generate an spool request from an invoice document generate previously by VF01 (VF04) SAP transaction code.
I'd like to generate on demand a spool request over an invoice previously generated by SAP
Anyone knows if it is possible?
ThanksThe billing process included the spool generation runs perfectly by stantard SAP funciontality.
But I'd like to generate a spool request whenever I want for an invoice previously generated and printed.
You know that for space requirements the spool request are deleted periodically, but I want to generate a spool request for an invoice, which spool request was generated and deleted. This behaviouir is reclaimed for a system process so, it's not possible to regenerated the spool request using the funcionality incluided in SAP by VF02, VF31 transactions code.
I need a function module or something like that, so import and invoice document number and export and spool request.
Thanks in advance, -
Generate Spool request.
Hi everybody.
I've got a doubt on spool requests.
My doubt is the following:
Does the WRITE order generate any spool request?
For example, if i have a report and i write down something on the screen output.
Thanks in advance.Write command write lines on output list but it doesn't generate spool. For output one has to give the print command.
Spool is generally used for printing layouts and output is converted into printable format .
anya -
Urgent: Generate spool request no.
Hi gurus,
I have to develop a report which has a pop up box for selection criteria based on which the records are displayed. The list has button 'send' which when clicked the output should be converted to an pdf and mailed.I know how to convert the output to pdf and mailing .
My problem is since the list is dispalyed(report not executed in background) its not generating a spool request no.and therefore i cannot proceed further.How do I generate a spool no??
Is there anyway in which i create a spool no and then asssign it to that list output??or any alternate method??
Kindly help.
Helpful solutions will be rewarded graciously!!!
Regards,
Niky.Hei,
this will also work in the same way,
suppose i_mara have five fields.
Ex:
Types: begin of t_mara,
matnr type matnr,
meins type meins,
maktl type maktl,
ERSDA type ERSDA,
ername type ername,
end of t_mara.
data: i_mara type table of t_mara,
wa_mara like line of i_mara.
DATA: v_dest LIKE tsp01-rqdest,
v_handle LIKE sy-tabix,
v_spool_id LIKE tsp01-rqident,
v_rc TYPE c,
v_errmessage(100) TYPE c,
v_text(70) TYPE c.
START-OF-SELECTION.
SELECT matnr FROM mara INTO TABLE i_mara.
CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
EXPORTING
dest = 'LOCL'
* LAYOUT =
* NAME =
* SUFFIX1 =
* SUFFIX2 =
* COPIES =
* PRIO =
* IMMEDIATE_PRINT =
* AUTO_DELETE =
* TITLELINE =
* RECEIVER =
* DIVISION =
* AUTHORITY =
* POSNAME =
* ACTTIME =
* LIFETIME = '8'
* APPEND =
* COVERPAGE =
* CODEPAGE =
* DOCTYPE =
IMPORTING
handle = v_handle
spoolid = gd_spool_nr
rc = v_rc
errmessage = v_errmessage.
LOOP AT i_mara into wa_mara.
CONCATENATE i_mara-matnr i_mara-meins i_mara-maktl
i_mara-ERSDA i_mara-ERname INTO v_text SEPARATED BY space.
CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
EXPORTING
handle = v_handle
text = v_text
* LENGTH =
* CODEPAGE =
* TRUNCATE =
IMPORTING
rc = v_rc
errmessage = v_errmessage
EXCEPTIONS
handle_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDLOOP.
CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
EXPORTING
handle = v_handle
IMPORTING
rc = v_rc
errmessage = v_errmessage
EXCEPTIONS
handle_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0. -
How to generate spool request in sap script
Hi Experts !!
I had customized RFFCOUS_C -- > Include RFFORI01 for printing check and payment advise.
Now if we run standard print program, spool will be generated first
and then we can see the print prieview accordingly.
But after my customization, after seeing print prieview when am clicking print button , then only spool is getting generated....
i had checked everything...but not able to solve the issue.
Please help.
Regards
Saurabh goelHi,
Just use below logic for script
itcpo-tddest = p_print. " Printer name
itcpo-tdnewid = 'X'.
itcpo-tdimmed = 'X'.
itcpo-tdcopies = '1'.
call function 'OPEN_FORM'
exporting
device = 'PRINTER'
dialog = ' '
form = 'ZAUTO_REPLPRINT'
language = sy-langu
options = itcpo
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438#q-2
Regards,
Shiva(reward if helpful). -
Spool request not generated in smartforms printing
Hii all,
I have smartform, which was printing properly in QA server and few days back when i tried to get print from Production Server, it is not generating spool request. and in QA also it is not having same as on date.
is there anythng to check from ABAP side or there is a problem of Basis.?
kindly give soln for points .
- Maharshihi Maharshi,
Gimme some what clear picture abt ur problem.
What exactly the problem in QA server.
I mean when it is working properly and when it is not?
and what Function Modules u have used ..?
and i wanna know is there any other print forms are working or not. if the other are working, it is not BASIS problem.
Regards,
Naveen -
New Spool Request for each purchase order
Hi all,
Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
It is goind inside the same pool.
I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
Kindly adivce me how to generate new spool evertime when new PO is created.
Regards,
Rahul.Hi,
Generated Spool request number is in table TSP01.
Retrieve that number and pass to function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.
SO_DOCUMENT_SEND_API1
This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
Regards,
Supriya. -
Hi friends,
i have three programs Y, Y1& Y2.
in 'Y' program i have a submit statement
SUBMIT 'Y1' TO SAP-SPOOL
AND RETURN
WITH SELECTION-TABLE SELTAB
IMMEDIATELY ' '
SAP COVER PAGE ' '
COVER TEXT 'xxxx - Auto Payment Summary'.
in 'Y1' program i have a submit statement
SUBMIT 'Y2' TO SAP-SPOOL
AND RETURN
WITH SELECTION-TABLE SELTAB
IMMEDIATELY ' '
SAP COVER PAGE ' '
COVER TEXT 'YYYY - Auto Payment Checksum'
SUBMIT (PAYPROG) WITH SELECTION-TABLE SELTAB
WITH PAYDET = PAYDET
EXPORTING LIST TO MEMORY
AND RETURN.
SUBMIT (WTXPROG) WITH SELECTION-TABLE SELTAB
EXPORTING LIST TO MEMORY
AND RETURN.
if i need to skip the first spool request and the file should not be generatedfor first spool is it possible, how please reply soon.
advance thanks to all.Just refer:
HOw to generate spool request for alv report -
Cleaning spool requests - report RSPO1041
Hi experts,
We're using SRM 5.5 and we've scheduled the reports
- BBP_GET_STATUS_2 ( every 2 minutes)
- CLEAN_REQREQ_UP
As a consequence, in the SPOOL we are having many requests.
In order to delete the spool requests, we have one job for the report RSPO1041, which is defined to delete spool requests from report bbp_get_status_2. In addition, we have 2 more jobs to clean the spool, using the same report RSPO1041, but with a generic variant.
However, those jobs are not being successfully cleaning the spool, as the spool requests are not being deleted.
So, my question is, is there any reason for the report bbp_get_status_2 generate spool requests?
And if it is really necessary, is there any other way to clean the spool? Or there is any other reason to the RSPO1041 is not cleaning the spool requests as it should?
Many thanks.
Best regards,
Andreia Nascimento- BBP_GET_STATUS_2 ( every 2 minutes)
- CLEAN_REQREQ_UP
Normally CLEAN_REQREQ_UP doesn't generate any spools, BBP_GET_STATUS_2 does and it does have the reason to generate spool as you would want a comprehensive report on the synchronization between SRM and R/3 documents.
In order to delete the spool requests, we have one job for the report RSPO1041, which is defined to delete spool requests from report bbp_get_status_2. In addition, we have 2 more jobs to clean the spool, using the same report RSPO1041, but with a generic variant.
Why having multiple jobs for the same purpose? I would just schedule one job that manage the cleaning of spools with a desired variant for report RSPO1041. And there should not be a reason for it not to be cleaning up accordingly, unless the job itself is not running into the status "finished". Having multiple jobs involving report RSPO1041 with different variants also increases the complexity for your tracking of its effectiveness. -
Spool Request Not Created for Dunning Printing
Hi,
We are running Dunning Program and Printing dunning Letters, system automatically printing Dunning letter and finishing the printing job, not generating any Spool Request.
For testing purpose, we re-generated dunning letters through from DUNNING History, there system Generating Spool request.
Any guess, do we missing something to generate Spool request in Dunning printing through normal process, we are using Zform.
Regars...RajaDear,
If it is Z program then please debug the same with the help of ABAper and check if the data is picked or not also you can check with your Basis Consultant.
Br,Vivek -
Generate spool req number for report output list
Hi,
How to generate spool request number for report output list while executing the report.Please provide if you have any sample code.
Thanks and Regards,
BSR.HI srinivas,
welcome to sdn.
Exporting the Contents of a Spool Request
Use
You want to export the content of a spool request in one of the following ways:
· As a text file to the SAP GUI working directory
· Unconverted or as a table, RTF, or HTML to a directory of your choice
· As a PDF file to a directory of your choice
Procedure
Follow the procedure below:
Exporting to the SAP GUI Working Directory
If you are exporting large quantities of data, downloading the spool request as a text file to the SAP GUI working directory is a good solution.
Choose Spool Request ® Forward® Export as Text.
The entire text is stored in your SAP GUI working directory in ASCII format.
A file of this type is named using the following pattern:
.txt
Example: ABC0000004327.txt
You require appropriate authorization for this function from your administrator.
Exporting Unconverted or as a table, RTF, or HTML to a Directory of Your Choice
With this method of exporting a spool request, the content of the spool request is first displayed, and you then download the content in the format of your choice to a directory of your choice.
1. Select the spool request to be exported and choose Display Contents.
2. In the case of SAPscript/Smart Forms documents, activate list display by choosing Goto.
3. Choose System ® List ® Save ® Local File.
4. Choose one of the available formats and confirm your choice.
5. Choose a directory and save the spool request.
By default, only the first 10 pages of a spool request are saved in a file. You can increase the number of pages to be saved by choosing Goto ® Display Requests ® Settings and making the desired entries in the Display Area group box.
Exporting as a PDF File
You want to export the contents of a spool request as a PDF file to a directory of your choice, and print the file as required. The PDF file contains the print data in the format in which it would be output by the printer.
The following procedure is irrelevant for the printing of PDF-based forms, since a PDF file is already returned with this method. See also Displaying and Printing PDF-Based Forms.
You also require authorization from your administrator to run this report.
The PDF file is generated as follows with report RSTXPDFT4:
1. Generate a spool request from the document to be printed.
2. In transaction SE38, start report rstxpdft4.
3. In the displayed window, enter the spool request number and the directory in which the PDF file is to be stored.
Leave the Download PDF File option selected.
Choose Execute.
4. In the next window, you can confirm or change the path in which the file is be stored.
Save your entries.
5. The system displays a log from which you can see whether the report was successfully performed.
You can then open the file from the directory and print it as required.
Restrictions for Exporting as a PDF File
· The PDF conversion only supports true bar codes for Smart Forms, which were generated with the new bar code technology as of SAP NetWeaver 04. In all other cases, the bar code is only simulated.
· PDF conversion, especially of ABAP lists, is slower and is therefore not suitable for mass printing. However, you can speed up the conversion to PDF using the FASTLISTCONV option in report RSTXPDF3.
· The font selection for ABAP lists is predefined in the PDF converter and cannot be changed.
For more information about constraints, see SAP Note 323736 in the SAP Service Marketplace
see this links
http://help.sap.com/saphelp_40b/helpdata/en/d9/4a98f351ea11d189570000e829fbbd/content.htm
http://web.mit.edu/SAPR3/docs/webdocs/reports/rpRFprint.html
regards
shankar
reward me if usefull
Maybe you are looking for
-
IPod nano 3rd generation showing up in ITunes but will not synch
I created new playlists in iTunes about 2 months ago and they synched to my Nano with no problems. I created a new playlist yesterday, plugged in the Nano via a USB and I can't get iTunes to synch with Nano. So the current playlists on it do not sh
-
Recovery Partition Drive Letter
Hello, I will be adding a drive from my old computer to my new Pavilion Desktop. The drive from my old computer is already named 'D' and I would prefer to keep the drive letter the same so I don't have to change existing file references. Can I renam
-
Good PDF Printer/Writer?
I am looking for a good Mac PDF printer/writer. One of the main features I need is when I save a PDF file, if the file name already exists I have the option to replace the file or append the pages from the current file to the start or end of the othe
-
Importing AppleWorks Documents from 9.2.2?
Hello, I hope I'm not missing something simple, but I upgraded from 9.2.2 to 10.4.11, and am trying to import AppleWorks documents over to Tiger. How does one do that? Also, are there any bugs or compatibility quirks I should look out for? Thanks for
-
Can you search inside Numbers?
Before buying Numbers for iOS, I was wondering what kind of search features it has. I was thinking of the possibility of using it as sort of a mini database that syncs notes between my Mac, iPhone and iPad, without paying monthly for a cloud service