How to create a spool?
Hi, some answers would be greatly appreciated.
In an ABAP program there is this internal table full of data, and I have to write its contents into a PDF. The only way it seems is to make a spool and then use CONVERT_ABAPSPOOLJOB_2_PDF function to convert that spool into PDF.
The question is how do I make a spool within the ABAP program?
Thanks!
Hi Welcome to SDN.
Check out the following code sample to create spool withing program.
data: loc_dest like pri_params-pdest .
clear : wf_listname , loc_dest , wf_listtext .
move: 'List name' to wf_listname .
move: 'List header text' to wf_listtext .
select single spld into usr01-spld from usr01 where bname eq sy-uname .
if sy-subrc eq 0 .
move: usr01-spld to loc_dest .
endif .
call function 'GET_PRINT_PARAMETERS'
exporting
destination = loc_dest
copies = wf_copies
list_name = wf_listname
list_text = wf_listtext
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = wf_days
line_size = 200
line_count = 65
layout = 'X_65_200'
sap_cover_page = 'X'
receiver = 'SAP*'
department = ''
no_dialog = 'X'
importing
out_parameters = wf_params
valid = wf_valid.
if wf_valid <> space.
new-page print on parameters wf_params no dialog.
perform write_summary .
new-page print off.
endif .
within the write_summary do a normal write operation.
loop at <itab> .
write:/
endloop .
Hope this is clear.
REgards
Raja
Similar Messages
-
How to get the spool id or how to create a spool id for the report .
hi,
how to get the spool id or how to create a spool id for the report .
this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
my requirement is to download a pdf file from the alv grid list.Hi Raghu,
Execute this program.
REPORT ZTEST_3318 .
tables: usr01.
perform send_report_to_spool.
*& Form send_report_to_spool
text
form send_report_to_spool.
data: loc_dest like pri_params-pdest,
wf_listname type char12,
wf_listtext like PRI_PARAMS-PRTXT,
wf_copies type i,
wf_days type i,
wf_PARAMS LIKE PRI_PARAMS, " achieving file PRI_PARAMS.
wf_valid type c.
clear : wf_listname , loc_dest , wf_listtext .
move: 'AP interface' to wf_listname .
move: 'AP interface' to wf_listtext .
select single spld into usr01-spld from usr01 where bname eq sy-uname .
if sy-subrc eq 0 .
move: usr01-spld to loc_dest .
endif .
call function 'GET_PRINT_PARAMETERS'
EXPORTING
destination = loc_dest
copies = 1
list_name = wf_listname
list_text = wf_listtext
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = 1
line_size = 200
line_count = 65
layout = 'X_65_200'
sap_cover_page = 'X'
receiver = 'SAP*'
department = ''
no_dialog = 'X'
IMPORTING
out_parameters = wf_params
valid = wf_valid.
if wf_valid <> space.
new-page print on parameters wf_params no dialog.
perform write_summary .
new-page print off.
endif .
endform. "send_report_to_spool
*& Form write_summary
text
--> p1 text
<-- p2 text
FORM write_summary .
data: begin of itab occurs 0,
matnr type matnr,
end of itab.
select matnr
from mara
into table itab
up to 10 rows.
loop at itab.
write: / itab-matnr.
endloop.
ENDFORM. " write_summary
This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
After that use that spool for your purpose.
If Useful award point -
Hi all,
Can anybody tell me how to create a spool request for a background job programatically
Regards
Yathish
Message was edited by: Yathish
Rich thanks for your reply,
But there is no write statement in the backbround job. Can u please explain me how to do it in detail
Thanks in advance
Yathish
Yathish GundlupetThat's right, in order for a program to produce a spool request, it either must create a list output using WRITE statements, or it must produce a sapscript or smartform output.
In the first case, a simply WRITE statement at the end of your program will work.
WRITE:/ 'Program has completed successfully'.
Regards,
Rich Heilman -
How to create multiple spool requests at once?
We are setting up alarms in CCMS for when the spool is about to get full.
I want to create several thousand spools automatically to try the alarm settings out and make sure that it works.
This doesn't seem possible to do in SPAD, as only one spool is created, and the maximum to create at a time is 250.
It also seems that it the minimum value that the system takes is 99.000 so I'm not able to lower this value to make an easier percentage alarm test.
I would like to either fake the number of spools so that the alarm is triggered, or if anyone can explain how to create a job that increases the number of spoolrequests so that I can verify the alarm thersholds.
Thanks
TomasHi ..
One thing you can do. Create two separate test program. In one program write simple one write statement and from another program submit the previous prog via job .
do 1000 times.
call function 'JOB_OPEN'
exporting
jobname = l_name "Job Name
importing
jobcount = l_number "Job Number
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
if sy-subrc = 0.
Submit the job in background
submit z2nd_prog
via job l_name number l_number and return.
if sy-subrc = 0.
call function 'JOB_CLOSE'
exporting
jobcount = l_number
jobname = l_name
strtimmed = 'X'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
enddo. -
How to create an spool in online reports
Hi,
We need to create the spool number of a online ALV report.
We are doing it but the print window appears.
How we can do it?
Thank you,
ManelHello Manel,
Keep your logic for printing in a program. (Prog-1)
Create another program (Prog-2) which can pass data to Prog-1.
Call Prog-1 from Prog-2 using SUBMIT command with appropriate Print Parameters.
Further to the SUBMIT <Prog-1> TO SPOOL...AND RETURN statement, capture the Spool Number.
Hope this info helps you resolving the problem.
With Regards
Vijay Gajavalli -
How to create a spool requset for 'z program'.
Hi,
Could anybody please tell me how to generate a spool request for a Z program. and how to check the spool request.
Regards
sathishHi ,
You can check the following code for reference
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM. " get_job_details
*& Form obtain_spool_id
To obtain the spool ID generated
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004 WITH gd_spool_nr.
ELSE.
MESSAGE s005.
ENDIF.
ENDFORM. " obtain_spool_id -
HRForms using Form Builder - how to create one spool
Hi,
I am using HRForms and Adobe (Form Builder) to create the Payslip.
The InfoStars do not contain the Dimension EMPLPOYEE. When I run the report I get one PDF document for each employee. If I want one PDF for all employees or one spool doc, do I have to insert the Dimension into each InfoStar ans also ajust the Adobe Layout?
In the report selections screen I have the option to choose if I want to print per person or all together in one spool. But this doesn't work. I guess the reason is the missing Dimension!?
Anyone experience in this?
Thanks and best regards
ViktoriaHi,
I copied form SAP_PAYSLIP_DE_P. It doesn't work with parameter "Number of Employees per Form (0= All)" = 0. Only with 1. With 1 it creates 1 spool document for each person. I guess that the context of the form and the layout was not created to work for the parameter setting = 0 (all employees in one form).
Regrads,
Viktoria
Hi,
in between I found out that if you enter a big number in this parameter like '999' one spool document is created but within this there are many pdf documents ( 1 / employee). There is still the problem if you want to have 1 pdf for all employees. There is no standard solution yet but I know that there are customer solutions to create 1 document for all employees or at least have 1 spool if you have to split the run ...
Regards
Viktoria
Edited by: Viktoria P. on Jan 29, 2010 11:45 AM -
How to create a spool for the billing document
Hi all
In the ALV report i am getting the
List of billing documents
on the selection of any billinfg document
i wanted to create the spool of the same
is there any way for the same .
please help.Hi
check with the fun module to get the SPOOL ID of the billing doc
RSPO_RW_SPOOLJOB_PARAMS
Reward points if useful
Regards
Anji -
How to create an spool request
Hi guys,
can any one tel me how to write an table content into an spool.
points wil be rewarded
ravi
nullWritten by Anon.
Friday, 26 January 2007
Comprehensive list of function modules and descriptions of what they do.....
ABAP_DOCU_DOWNLOAD
Download ABAP documentation in HTML format.
APPL_LOG_DELETE
With this function module you delete logs in the database according to specified selection conditions
APPL_LOG_DISPLAY
With this function module you can analyze logs in the database.
APPL_LOG_DISPLAY_INTERN
With this function module you can analyze logs in local memory, e.g. when you have only collected log records at runtime and do not want to write to the database.
APPL_LOG_INIT
This function module checks whether the specified object or sub-object exists and deletes all existing associated data in local memory.
APPL_LOG_READ_DB
With this function module you read the log data in the database for an object or sub-object according to specified selection conditions.
APPL_LOG_READ_INTERN
With this function module you read all log data whose log class has at least the specified value, from local memory, for the specified object or sub-object.
APPL_LOG_SET_OBJECT
With this function module, you create a new object or sub-object for writing in local memory. With a flag you can control whether the APPL_LOG_WRITE_... messages are written in local memory or are output on the screen.
APPL_LOG_WRITE_DB
With this function module you write all data for the specified object or sub-object in local memory to the database. If the log for the object or sub-object in question is new, the log number is returned to the calling program.
APPL_LOG_WRITE_HEADER
With this function module, you write the log header data in local memory.
APPL_LOG_WRITE_LOG_PARAMETERS
With this function module, you write the name of the log parameters and the associated values for the specified object or sub-object in local memory. If this function module is called repeatedly for the same object or sub-object, the existing parameters are updated accordingly. If you do not specify an object or sub-object with the call, the most recently used is assumed.
APPL_LOG_WRITE_MESSAGE_PARAMS
With this function module you write a single message, with parameters, in local memory. Otherwise the function module works like APPL_LOG_WRITE_SINGLE_MESSAGE.
APPL_LOG_WRITE_MESSAGES
With this function module you write one or more messages, without parameters, in local memory.
APPL_LOG_WRITE_SINGLE_MESSAGE
With this function module you write a single message, without parameters, in local memory. If no header entry has yet been written for the object or sub-object, it is created. If you do not specify an object or sub-object with the call, the most recently used is assumed.
ARFC_GET_TID
will return the IP address of the terminal in hex.
BAL_CNTL_CREATE
Create Control for log display
BAL_CNTL_FREE
Release Control
BAL_CNTL_REFRESH
Put new data in log display
BAL_DB_DELETE
Delete logs from the database
BAL_DB_DEQUEUE
Unlock log
BAL_DB_ENQUEUE
Lock log
BAL_DB_LOAD
Load logs from the database
BAL_DB_LOAD
Load log(s)
BAL_DB_SAVE
Save logs in the database
BAL_DB_SAVE
Save log(s)
BAL_DB_SAVE_PREPARE
Prepare save
BAL_DB_SEARCH
Find logs in the database
BAL_DSP_LOG_DISPLAY
Display messages in memory
BAL_DSP_LOG_DISPLAY
Display Log
BAL_DSP_LOG_PARAMETERS
Either output extended long text or call a callback routine (based on the data in BAL_S_LOG-PARAMS)
BAL_DSP_LOG_TECHNICAL_DATA
Output all log header data
BAL_DSP_MSG_LONGTEXT
Display message long text
BAL_DSP_MSG_PARAMETERS
Either output extended long text or call a callback routine (based on the data in BAL_S_MSG-PARAMS)
BAL_DSP_MSG_TECHNICAL_DATA
Output technical data of a message such as work area, error number, etc.
BAL_DSP_OUTPUT_FREE
End output
BAL_DSP_OUTPUT_INIT
Initialize output
BAL_DSP_OUTPUT_SET_DATA
Set dataset to be displayed
BAL_DSP_PROFILE_DETLEVEL_GET
Message hierarchy in DETLEVEL
BAL_DSP_PROFILE_NO_TREE_GET
Display without tree (fullscreen)
BAL_DSP_PROFILE_POPUP_GET
Display without tree (popup)
BAL_DSP_PROFILE_SINGLE_LOG_GET
Standard profile (SLG1) for one log
BAL_DSP_PROFILE_STANDARD_GET
Standard profile (SLG1) for a lot of logs
BAL_GLB_AUTHORIZATION_GET
Assign authorization
BAL_GLB_AUTHORIZATION_RESET
Reset authorization
BAL_GLB_CONFIG_GET
Read configuration
BAL_GLB_CONFIG_SET
Set configuration
BAL_GLB_MEMORY_EXPORT
Put function group memory in ABAP-MEMORY
BAL_GLB_MEMORY_IMPORT
Get function group memory from ABAP-MEMORY
BAL_GLB_MEMORY_REFRESH
(Partially) reset global memory
BAL_GLB_MEMORY_REFRESH
(Partially) initialize memory
BAL_GLB_MSG_CURRENT_HANDLE_GET
Get current message handle
BAL_GLB_MSG_DEFAULTS_GET
Get message defaults
BAL_GLB_SEARCH_LOG
Find logs in memory
BAL_GLB_SEARCH_MSG
Find messages in memory
BAL_LOG_CREATE
Create log with header data
BAL_LOG_CREATE
Create log with header data
BAL_LOG_DELETE
Delete log (from database also at Save)
BAL_LOG_EXIST
Check existence of a log in memory
BAL_LOG_HDR_CHANGE
Change log header
BAL_LOG_HDR_CHECK
Check log header data for consistency
BAL_LOG_HDR_READ
Read log header and other data
BAL_LOG_MSG_ADD
Put message in log
BAL_LOG_MSG_ADD
Put message in log
BAL_LOG_MSG_CHANGE
Change message
BAL_LOG_MSG_CHANGE
Change message
BAL_LOG_MSG_CHECK
Check message data for consistency
BAL_LOG_MSG_CUMULATE
Add message cumulated
BAL_LOG_MSG_DELETE
Delete message
BAL_LOG_MSG_DELETE
Delete message
BAL_LOG_MSG_EXIST
Check existence of a message in memory
BAL_LOG_MSG_READ
Read message and other data
BAL_LOG_MSG_REPLACE
Replace last message
BAL_LOG_REFRESH
Delete log from memory
BAL_LOG_REFRESH
Delete log from memory
BAL_MSG_DISPLAY_ABAP
Output message as ABAP-MESSAGE
BAL_OBJECT_SELECT
Read Application Log objects table record
BAL_OBJECT_SUBOBJECT
Check whether object and subobject exist and the combination is allowed
BAL_SUBOBJECT_SELECT
Read subobject table record
BP_EVENT_RAISE
Trigger an event from ABAP/4 program
BP_JOBLOG_READ
Fetch job log executions
CHANGEDOCUMENT_READ_HEADERS
Get the change document header for a sales document, and put the results in an internal table.
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CHANGEDOCUMENT_READ_POSITIONS
Get the details of a change document, and store them in an internal table. This will tell you whether a field was changed, deleted, or updated.
Example:
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
objectclass = 'EINKBELEG'
objectid = l_objectid
username = space
TABLES
i_cdhdr = lt_cdhdr.
LOOP AT lt_cdhdr WHERE udate IN s_aedat.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = lt_cdhdr-changenr
TABLES
editpos = lt_editpos.
LOOP AT lt_editpos WHERE fname = 'LOEKZ'
AND f_new = 'L'.
p_desc = text-r01. " Cancel Contract
ENDLOOP.
ENDLOOP.
CLAF_CLASSIFICATION_OF_OBJECTS
Return all of the characteristics for a material
CLOI_PUT_SIGN_IN_FRONT
Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all character fields), not right justifed as numbers normally are.
CLPB_EXPORT
Export a text table to the clipboard (on presentation server)
CLPB_IMPORT
Import a Text Table from the Clipboard (on presentation server)
COMMIT_TEXT
To load long text into SAP
CONVERSION_EXIT_ALPHA_INPUT
converts any number into a string fill with zeroes, with the number at the extreme right
Example:
input = 123
output = 0000000000000...000000000000123
CONVERSION_EXIT_ALPHA_OUTPUT
converts any number with zeroes right into a simple integer
Example:
input = 00000000000123
output = 123
CONVERT_ABAPSPOOLJOB_2_PDF
convert abap spool output to PDF
CONVERT_OTF
Convert SAP documents (SAPScript) to other types.
Example:
CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
CONVERT_OTFSPOOLJOB_2_PDF
converts a OTF spool to PDF (i.e. Sapscript document)
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba5ef35c111d1829f0000e829fbfe/content.htm -
How to create new spool request in smartforms??????
hi all,
i have to ctreate a new spool request for a smartform...
The driver program for this smartform is a standard program.
when i run the transaction, the spool for standard sap-script gets created but not for my smartform.
the code is something like this:-
wa_ssfcompop-TDDEST = 'LOCL'.
wa_ssfcompop-TDIMMED = space.
wa_ssfcompop-TDNEWID = 'X'.
wa_ssfcompop-TDFINAL = 'X'.
*wa_ssfcompop-XSF = 'X'.
wa_SSFCTRLOP-no_dialog = 'X'.
CALL FUNCTION v_fm_name
EXPORTING
CONTROL_PARAMETERS = wa_SSFCTRLOP
OUTPUT_OPTIONS = wa_ssfcompop
wa_rldri = xrldri
wa_rldrp = xrldrp
wa_rldru = xrldru
wa_t329p = xt329p
wa_resb = xresb
wa_rldrc = xrldrc
wa_vblkk = xvblkk
wa_vblkp = xvblkp
wa_rldrh = xrldrh
wa_rlvek = xrlvek
wa_reftab = xreftab
wa_lthu = xlthu
v_date = v_date
v_time = v_time
v_label = v_label
v_bzeit = v_bzeit
v_name1 = v_name1
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_rldri = xrldri
it_rldrh = xrldrh
it_rldrc = xrldrc
it_vblkk = it_vblkk
it_vblkp = it_vblkp
it_rldrp = it_rldrp
it_rldru = it_rldru
it_t329p = it_t329p
it_resb = it_resb
it_rlvek = it_rlvek
it_reftab = it_reftab
it_lthu = it_lthu
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Help would be greatly appreciated and definitely rewardedhi
good
Use the function module 'GET_PRINT_PARAMETERS'.
sample:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
ARCHIVE_ID = C_CHAR_UNKNOWN
ARCHIVE_INFO = C_CHAR_UNKNOWN
ARCHIVE_MODE = C_CHAR_UNKNOWN
ARCHIVE_TEXT = C_CHAR_UNKNOWN
AR_OBJECT = C_CHAR_UNKNOWN
ARCHIVE_REPORT = C_CHAR_UNKNOWN
AUTHORITY = C_CHAR_UNKNOWN
copies = g_copies
COVER_PAGE = C_CHAR_UNKNOWN
DATA_SET = C_CHAR_UNKNOWN
department = ''
destination = g_destination
expiration = g_days
immediately = ' '
IN_ARCHIVE_PARAMETERS = ' '
IN_PARAMETERS = ' '
layout = 'X_65_200'
line_count = 65
line_size = 200
list_name = g_listname
list_text = g_listtext
MODE = ' '
new_list_id = 'X'
PROTECT_LIST = C_CHAR_UNKNOWN
no_dialog = 'X'
receiver = 'SAP*'
release = ' '
REPORT = C_CHAR_UNKNOWN
sap_cover_page = 'X'
HOST_COVER_PAGE = C_CHAR_UNKNOWN
PRIORITY = C_NUM1_UNKNOWN
SAP_OBJECT = C_CHAR_UNKNOWN
TYPE = C_CHAR_UNKNOWN
USER = SY-UNAME
USE_OLD_LAYOUT = ' '
UC_DISPLAY_MODE = C_CHAR_UNKNOWN
DRAFT = C_CHAR_UNKNOWN
ABAP_LIST = ' '
USE_ARCHIVENAME_DEF = ' '
DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN
PO_FAX_STORE = ' '
NO_FRAMES = C_CHAR_UNKNOWN
IMPORTING
OUT_ARCHIVE_PARAMETERS =
out_parameters = g_params
valid = g_valid.
IF g_valid <> space.
NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.
IF NOT tb_output3[] IS INITIAL.
LOOP AT tb_output3 INTO wa_output3.
PERFORM write_summary.
ENDLOOP.
ENDIF.
Reward if useful...
thanks
mrutyun^ -
How to create a spool job for adobe form without dialog
Hi All,
I have a requirement like below.
I need to generate a spool for Adobe form output and that sholud be without print parameters dialog popup.
What are the parameters i need to pass to the FP_JOB_OPEN function module.
Solutions will be appriciated.
Thanks in advancehi,
I think the following document will help you....
http://help.sap.com/saphelp_nw04s/helpdata/en/48/8144ad5999426facb9b77bf0c1e868/frameset.htm
Thanks and Regards
shanto alooor -
How to create the multiple spool requests for a single report.
Hi gurus,
I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
And one more question is can we create a spool request for a report which is running in online.
waiting for inputs frm gurus.Hello,
As per my knowledge for creating new spool id you will have to set
output_options-tdnewid = 'X'.
and then using
job_output_info-spoolids
create a pdf using
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
Rachana. -
How to crate a spool number for the abap program
hi
how to create a spool number for the abap programHi,
Check this thread
how to create a spool requset for 'z program'.
Regards,
Satish -
Delay the creating of spool No
Hi All
I what to delay the spool no for 2 days. Can any one tell me how to create a spool after 2 days.
Means i ll run the Tcode today it will generete a form that ll go to fax, now i what to delay the creating of spool No for 2 days.Plz help me out
Regards
SaiHi,
I dont think it would be feasible to delay the spool creation by 2 days.
Instead you can create an abap program which would pick up spools from TSP01 table where spool creation date = sy-datum - 2.(spool created 2 days earlier)
Pick the spools & send as a fax through abap program.
The only thing which you need to ensure is check with the BASIS team for not deleting spools created 2 days earlier.
Schedule the abap program as a backrground job.
Best regards,
Prashant -
How to create spool when running a report in background
hi folks,
i am running a bdc report in bkgrnd... and i want all the success and eror messages to be displayed in a spool... plz explain with example as to how this can be achieved .Hello Nishant,
You could use this sample code to create the spool.
DATA : X_NAME LIKE TSP03D-NAME,
X_DEST LIKE TSP03D-PADEST VALUE 'LOCL',
X_ROWS LIKE SXPCKLSTI1-BODY_NUM VALUE 0,
X_STARTROW LIKE SXPCKLSTI1-BODY_START VALUE 1,
X_PAGES LIKE RSPOTYPE-PAGES VALUE 1,
X_PAGES_1 TYPE P DECIMALS 2,
X_RQTITLE LIKE SXPCKLSTI1-OBJ_DESCR,
X_RQCOPIES TYPE I VALUE 1,
X_RQOWNER LIKE TRDYSE01CM-USERNAME,
X_IMMEDIATE LIKE PRI_PARAMS-PRIMM VALUE ' ',
X_RQID LIKE TSP01-RQIDENT,
I_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
X_PAGES = 1.
X_RQOWNER = SY-UNAME.
X_DEST = 'LOCL'.
X_STARTROW = 1.
X_RQCOPIES = 1.
X_IMMEDIATE = ' ' .
I_CONTENTS-LINE = 'I Got your Childhood PHOTO'.
APPEND I_CONTENTS.
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
name = x_name
DEST = X_DEST
ROWS = X_ROWS
STARTROW = X_STARTROW
PAGES = X_PAGES
RQTITLE = X_RQTITLE
RQCOPIES = X_RQCOPIES
RQOWNER = X_RQOWNER
IMMEDIATELY = X_IMMEDIATE
IMPORTING
RQID = X_RQID
TABLES
<b> TEXT_DATA = I_CONTENTS</b> <b>Your Message Table</b>
EXCEPTIONS
NAME_MISSING = 1
NAME_TWICE = 2
NOT_FOUND = 3
ILLEGAL_LAYOUT = 4
INTERNAL_ERROR = 5
SIZE_MISMATCH = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.
ENDIF.
WRITE: X_RQID
If useful reward.
Vasanth
Maybe you are looking for
-
I have the HP dv7-1451nr that is almost 3 years old. This morning, I was unable to have it come back on. It was dormant and when I hit the space bar, it would display the anything on the screen. The caps light, numbers light and another light...it lo
-
Memory Leak in Algorithms.Cast function?
I have the following line in my code: Algorithms.Cast(OrigImage, tempRGB, ImageType.Rgb32) OrigImage is a U8. It appears to have a 7mb memory leak. Before: 81168K, After: 88560K Has anyone else noticed this? Is there a fix? Note: I properly dispos
-
MeetingPlace Video Integration with 3515MCU problem
Hi, I am trying to setup MeetingPlace Video Integration with a Cisco 3515 MCU and cannot get it to work. The eventlog for MeetingPlace Gateway is giving me errors about the initialization problems. A couple of such errors are: MPAgent (0x0150) Warnin
-
Forwarding Agent should come automatically in Sales order
Hi Experts, My user's requirement is Forwarding agent should come automatically in Sales order at partners tab. Can you please suggest what configuration do ineed to do, To get this Forwarding agent automatically in sales order level. Regards, Sunina
-
I have UI which uploads the file in multiprt file transfer in chuncks(blob file) .It was working fine in previous version of firefox when we send 10mb chuncks for each ajax calls .But now in latest version firefox ,Its get rejected for 10mb chuncks t