Merging of spool request
Hi all,
I have created a smartform for printing the shipping labels depending upon the delivary number. For each delivary number it creates several spool based on the label.
Now the requirement is that we want all the labels(spool) under one spool requests for each delivary number.
Please let me know how it can be done .
Thanks and Regards,
Syed
Hi Senthil,
Can you please tell me how to make use of this NO_CLOSE and NO_OPEN option in the smartforms .
I populated this in the control parameters but did not get a single spool for one delivary document . i mean it is not generating a single spool for one delivery document.
Can you please explain via code if possible.
Thanks
Syed
Similar Messages
-
Smartform internal_error when merging forms into 1 spool request
Hi,
I have 2 smartforms - a letter and a certificate. The user has the option to print either one of these forms or both, per employee. I'm using 1 spool request.
As soon as I call the second smartform there is an INTERNAL_ERROR. Why does this happen and how do I solve the problem?
Please refer to the code sample below:
loop at i380.
make sure the spool is not closed
control_parameters-no_open = 'X'.
control_parameters-no_close = 'X'.
AT FIRST.
control_parameters-no_open = ' '.
ENDAT.
AT LAST.
control_parameters-no_close = ' '.
ENDAT.
call smartform 1
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZLETTER'
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
endif.
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = control_parameters
OUTPUT_OPTIONS = output_options
USER_SETTINGS = ' '
pernr = i380-pernr
IMPORTING
JOB_OUTPUT_INFO = otf_info
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
endif.
second smartform - certificate
call function 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZCERTIFICATE'
IMPORTING
FM_NAME = FM_NAME2
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
endif.
CALL FUNCTION FM_NAME2
EXPORTING
CONTROL_PARAMETERS = control_parameters
OUTPUT_OPTIONS = output_options
USER_SETTINGS = ' '
pernr = i380-pernr
IMPORTING
JOB_OUTPUT_INFO = otf_info
EXCEPTIONS
FORMATTING_ERROR = 1
<b> INTERNAL_ERROR = 2</b> SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
endloop.
I cleared output_parameters, output_options and otf_info when calling form ZCERTIFICATE but this does not solve the problem. When ZCERTIFICATE is called seperately, there is no problem. The forms should be printed directly without conversion to PDF.
Your help will be appreciated.Hi,
In the loop AT Last is in wrong place. May be that could be the reason for your problem. Then the second call to samrt from is will be working on a closed session.
regards
austin
Message was edited by: Joseph Austin Prabhu Paulthas -
Add the output from two documents on to a single spool request
Hi All,
I have a situation where the Remittance output using transaction F110 goes to a spool request which triggers VF31 transaction to ouput invioices, these invoices go on to a separate spool. My requirement is that all the invoices related to the Remittance should print in the same spool request after the Remittance output? Is there any method that this can be done? Would an example be possible?
Regards,
Puneet P.Hi Puneet,
do you have access to the print program, I mean, can you change it when the open_form function is called (depends on customizing settings for this transactions)? If so, you can change the ITCPO-TDNEWID. This will cause to print the next output into the former opened one. So you first output has ITCPO-TDNEWID = 'X', the second ITCPO-TDNEWID = ' '. Then they will be merged into one.
Cheers,
Stefan -
Spool Request contains disrelated data
Dear All
I met a strange issue, the spool reqeust contains disrelated data.
the phenomenon is:
I created a JOB with function fronted. But when the JOB finished, I found other disrelated data in this spool request.
I'm not sure whether one spool request can contain several print requests?
When I create the request at the same time other function create in this spool request?By default, SAP merges forms in existing spool requests with same properties, listed here: [Note 85318 appending documents to existing spool requests|http://service.sap.com/sap/support/notes/85318]. You may force them to go in a new spool request using output parameters when printing the form (see the note).
-
Combining multiple smartform output in one spool request
Hi,
I'm calling 5 different smart forms from driver program based on some conditions and trying to merge the output of each of these smart forms in a single spool request. I achieved this by setting control parameters no_open and no_close based on first or last print.
The problem i'm facing now is when i call one particular smart form ZSMARTFORM6 along with other smartforms i'm getting a error FORM SMARTFORM6 has wrong Page format.
If i call only this smart form it is working correctly.
Any idea how to avoid this error message.
Regards,
RaghavendraHi
In The control Parameters u have an Option NO_OPEN and NO CLOSE u have to use this to combine multiple SSF to one Spool
DATA SSFCTRLOP LIKE SSFCTRLOP.
CALL FUNCTION 'SSF_OPEN'
SSFCTRLOP-NO_OPEN = 'X'.
SSFCTRLOP-NO_CLOSE = 'X'.
CALL FUNCTION SMART1
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART2
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART3
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART4
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION 'SSF_CLOSE'
Surya
Edited by: suryareddy on Aug 27, 2009 9:24 AM -
Is it possible to have Multiple Spool requests in one batch job overview?
Hi,
While running one of my z program in back ground, there are two spools generated (one by write statement and one by OPEN_FORM statement and both the spools are available in SP01 Transaction), but when i see the job overview in transaction SM37, I only see one spool request (that of the last spool request). Can any body in the group please tell me is it possible to see multiple spool requests in the job overview of one Abap program and if yes, how?
Thank you.
AbinashHi Jayanthi,
Thank you for the link. But probably that discussion was also an unsolved one.
Anyway, does any one in the group think that display of multiple spools per one step job is dependent on client / SAP Server setting? Because as evident from the chain of mails in the link provided by Jayanthi, some people say that they see multiple spool requests for one program in batch mode job overview (SM37)? If yes, can some body tell me the required configuration? -
F110 - one spool request number per payment order --URGENT
Hi folks,
I am ABAPer working for ECC6 upgrade project when i am running F110 payment run for customers to generate payment orders i am getting all the orders in one spool request no, But i need to generate one spool request no. per payment order.
thanks in advance for you valuble inputs
regards,
ramahariHi Madhuri,
Call open form write form and close form in loop so that till sales order remains in the loop the form will continue to print. In this way all sales order in internal table will print in the same spool.
Hope this will help you.
Regards,
Vijay -
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. -
Handle not valid for open spool request
Hello everyone,
i am facing an error while clicking the print preview option in change PO (me22n).
i have given the dispatch time in further data of o/p as 'Send with application own transaction'.
now, when i save and click print preview button i get an error as
"Handle not valid for open spool request"
Kindly give me some idea how to tackle this.
Thanks
gauravGaurav,
I am having a similar issue and would appreciate if you could let us know how your problem was solved?
What control parameters did you change to make this work?
Thanks,
Jay -
How to send as an email the spool request?
Dear Experts,
My last post was Email background schedule report to gmail or yahoo mail .
I got solution but it's work as a notification which we can say the after report run it triggers mail that report is completed as this time.
But i required the thing how to send a spool request of a report as an email attachment.
it will be in .xls or .pdf or xyz format.
It was the additional task which was required by my organization.
I also want to know the following things.
1. what is sap default configuration and system behind it.
2. what the things abaper have to check.
3. what is bcs_examples & where do i found these bcs_example8.
Please guide me to explore my knowledge.
Thanks & regards
Nayan Lad
Note for moderator : Sir, I will close request at 2:30 pm today onward, so please do not lock it.
Moderator Message: All your questions can be answered by searching.
Edited by: kishan P on Nov 13, 2010 3:29 PMneed solution..
-
Hi SAP,
My backgroud job is failing with log as shown below
Job started
Step 001 started (program ZMRS0065, variant SUS
Step 002 started (program ZDRS0090, variant SUS
Step 003 started (program ZFRS0305, variant SUS
Step 004 started (program ZFRS0300, variant SUS
Access error
Job cancelled after system exception ERROR_MESSAGE
An error occurred when processing the spool request. (Possibly due to memory problems)
Kindly help out in this issue
Regards
MohammedHello Mohammed,
Have you seen any error in your SM21 system log and developer trace of spool work process
during that time?
The maximum size when create spool is 2GB.Pls also check if you are creating a spool
larger than it.
Best Regards
Jie Bai -
Dear All,
When I am executing a report in background using tcode se38, I am not able to view the output of the report from the spool request .
When I try to view the contents of the spool request, It simply gives a message
as follows :
Request 74837 in system PRD : internal error
00000040/ in spooler.
Please advice me on this issue.
Thanks
Gauravhello Gaurav,
it is coming because the columns in spool is exceeding the SAP defined limit of 255. Either you need to create a device type with columns greater than 255 or else use the OSS note: 186603. It has a simple report <b>ZRSPOSHOWLIST</b> that you need to create in your system. I created this report and now whenever i have such errors I use it to view the spool.
regards.
Ruchit. -
Write the Error log from background Job to the Spool request
Hi ,
I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
SUBMIT RSEINB00
USING SELECTION-SET 'TEST2'
TO SAP-SPOOL
LIST NAME 'LOCL'
IMMEDIATELY space
KEEP IN SPOOL 'X'
AND RETURN.
<b>If sy-subrc <> 0.</b>
CALL FUNCTION 'BP_JOBLOG_READ'
EXPORTING
CLIENT = SY-MANDT
JOBCOUNT = i_tbtco-jobcount
JOBLOG = i_tbtco-joblog
JOBNAME = i_tbtco-jobname
TABLES
JOBLOGTBL = l_joblog
IF SY-SUBRC <> 0.
else.
message i002 with l_joblog-msgv1.
ENDIF.
<b>
ENDIF.</b>
Rgds,
Kewal
P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
Programmname/Kommand Programmtyp Spoolliste
Z_MM_STAT_UPDATE_WERK ABAP 1707445
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_WERK ABAP 1707459
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_MARA ABAP 1721423
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_WERK ABAP 1721437
Z_MM_STAT_UPDATE_MARA ABAP 1721446
Z_MM_STAT_UPDATE_WERK ABAP 1721447
Z_MM_STAT_UPDATE_VKORG ABAP 1721471
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_VKORG ABAP 1721521
ZSLEEP Ext. Kommando
Z_MM_STAT_UPDATE_VKORG ABAP 1721816
It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
Markus -
SM37 - Graphical display of spool request in Hebrew
Hello,
I'm running a report in background. When I look at the spool request display
the header display in hebrew from left to right instead right to left.
when I'm running online I don't have a problem. I enter the session in hebrew.
does anyone have any idea ?
thanks,
MichalUseful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm -
How to merge multiple spools in one PDF
hi all,
i have a requirement to merge multiple spools into one PDF.
I have the code to merge 2 spools into one PDF but acc to my requirement this number can be any( say 100). hence i need help to merge N number of spools in one PDF.
Regards
geeta guptaTake the data of all spools into a internal table then create a new spool with this data then downlad this data into pdf format.
By this method you can download any number of spools into a single pdf file. Please see the below code
Fetch spool number
Select rqident from tsp01 into table g_t_data
where...............
Read sool data and take this data into a internal table
Loop at g_t_data.
Call program to read spool as follows
SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
WITH rqident = g_t_data-rqident
WITH first = '1'
Read memory where spool data is stored
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = mem_tab
Convert spool data to Ascii
IF NOT mem_tab[] IS INITIAL.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = g_t_text1(table type c length 10000)
listobject = mem_tab(LIKE TABLE OF abaplist)
APPEND LINES OF g_t_text1 TO g_t_text.
ENDIF.
ENDLOOP.
Create new spool with internal table data
NEW-PAGE PRINT ON
KEEP IN SPOOL l_keep(variable type c default u2018Xu2019)
LINE-SIZE 300
LIST NAME l_list (variable(30) TYPE c default 'combined_pdf')
NO DIALOG.
LOOP AT g_t_text.
WRITE: g_t_text-data.
ENDLOOP.
NEW-PAGE PRINT OFF.
COMMIT WORK.
Fetch this spool number from TSP01
SELECT rqident rqcretime FROM tsp01 INTO TABLE l_t_pdf(internal table having two fields rqident LIKE tsp01-rqident and rqcretime LIKE tsp01-rqcretime)
WHERE rqowner = sy-uname AND
rq2name = 'COMBINED_PDF'.
Download spool data into pdf format
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = l_t_pdf-rqident
IMPORTING
pdf_bytecount = l_size(variable type i)
TABLES
pdf = g_pdf(table like table of tline)
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = l_size "size
filename = l_data
filetype = 'BIN'
TABLES
data_tab = g_pdf.
Hope this will help you.
Maybe you are looking for
-
Mac won't open Premiere Project CC files created from PC
Hi, I am helping a friend edit a series of short videos. He is on a Mac with the latest OS using Premiere Pro CC. I am on a PC with Windows 7 Pro 64-bit also using Premiere Pro CC. I did the rough cut for the first video, copied the folder (all cl
-
Trying to position a form in the header using CSS - not working right in IE
I am making my first foray into CSS-only design (no tables), and it's going pretty well – except for one thing (so far). If you look at this link in Firefox http://www.daveblaker.com/clients/jenslist/indexTEMP.htm the "Search Archives" field appears
-
Need help in this design, SHAPES!
Hello everyone. I have a simple programming project but I'm getting caught up on what should be the super class. Its shapes. I have the following: A Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. At first I had it designed like Quadri
-
How can I reload previous purchases that are lost of iPod
How can I reload itunes purchases that are lost of both my ipod and my computer?
-
I can get the last time a patch was applied. What I need is this info for ALL servers.
Getting the last time a server was patched is a simple, single line of PowerShell: get-hotfix -computername seadcweb10 | sort InstalledOn | select -last 1 What I need is to get a list of *all* the servers in Active Directory, and get this inform