Reg SPOOL O/P
Dear Pals,
My issue is I am displaying month wise details for 1 year in alv grid display.
ie jan-08 feb-08 mar-08 ..............dec-08 jan-09 feb-09
In Forground the month names appears correctly.
But, in Background in spool if more than one year data,
the o/p appears as
ie jan-08 feb-08 mar-08 ..............dec-08 jan-08 feb-08
jan-09 appears as jan-08 only.
What may be the Problem.
Kindly help me.
hi kamala,
u can use control break stmts...
try doing like this...
loop at itab.
at first.
write:/ itab-text.
endat.
at new date.
write:/5 itab-date, 15 itab-result.
endat.
endloop.
hope this helps,
do reward if it helps,
priya.
Similar Messages
-
Reg spool request generation autamatically from iw32
Hi
We are having the below problem.
A service order is created with reference to notification...
So whenever any components are added in iw32,immediately a spool is generated with the following message.
Data statistics Number of
Records passed 1
Typ Ite Message text
000 Notification 300001261 is assigned to order 4002992
How to avoid this spool generation?...It is creating many number of entries in sp01.and user has to go and delete all the records..
This spool issue is only generated when a service notification has two service orders created..i.e a repair service order and a normal field service order which is without a sales order using notification.
So if sames notification is used only then it gives spool message saying service notification no is already assigned to first service order...
Also we are not getting this error in PED client.Only in peq300/production.
Is it do with some settings in list editing of any report or configuration
Kindly confirm
Regards
SwethaIssue is closed as there was a bug in the user exit written in Service order
-
Reg spool file attachment in Email
Hi All,
I am sending the report output to spool and I need to take this spool file and I have to send as a attachment through Email.Could some body let me know how we will do this one thing is the report program runs in back ground (because of this we can not get the spool file to the presentation server).
Thanks&Regards
jaganPlease refer :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/smartformtoMailasPDF+attachment&
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/savingPDFfilefromspooling+list&
Regards,
Anish Thomas
<b>Pls reward useful answers</b> -
Hello all,
I'm subimitting prog-2 in prog-1 using SUBMIT option.
If I execute prog-2 in fore ground or back ground mode, it's working fine.
Prog-1 is working fine with fore ground mode.
Porg-1 is not working with back ground mode.
In prog-2 we have below code, and syst-spono is not getting the values. so, it's failing bcz of spool number is initial.
IF syst-batch EQ 'X'.
SUBMIT zgrcas_ftp_abapspool
WITH p_spono EQ syst-spono
WITH p_file EQ '/interfaces/CONV/out/grn/'
WITH p_repid EQ syst-repid.
ENDIF.
kindly suggest on this issue.
thanks,
Bharat.I think from prog 1 you are not getting spono may be try this way
do.
select single * from tbtcp into wa_tbtcp1
where jobname eq p_jobn
and jobcount eq p_jobc.
if sy-subrc eq 0.
move wa_tbtcp1-listident to p_spono.
endif.
exit.
endif.
if v_count le 60.
call function 'ENQUE_SLEEP'
exporting
seconds = 90.
v_count = v_count + 1.
enddo.
IF syst-batch EQ 'X'.
SUBMIT zgrcas_ftp_abapspool
WITH p_spono EQ p_spono "<<<<<<
WITH p_file EQ '/interfaces/CONV/out/grn/'
WITH p_repid EQ syst-repid.
ENDIF.
a® -
Gurus,
If I print the different PO Documents, it take same Spool Requst number. I need different Spool Req # for different PO Documents.
Any Authorisation or Config settings...
Pls advise...
Regards
Rajesh.Hai,
First select the Printer from which you need to print the PO's from SPAD, then try to print something from that printer for example: SPAD -- Printer name (double click) -- Now you will be inside the printer definition -- then goto Utilities -- For Device types -- Test data (ABAP) -- In the next page input the Printer name which you are going to print from and then go down to the 'additional parameter' section and click on 'Force new spool request' and save.
This will help you in creating the new spool numbers for every print through that particular printer.
Hope this helps.
Regards,
Yoganand.V -
Reg. Display of Output exceeds 255 characters as spool list
Dear Experts,
My requirement is that i need to display output that exceeds 255 characters in length as spool list. How should i achieve it?
Regards,
Ramesh ManoharanHello,
Following SAP Notes can also help you :
[https://service.sap.com/sap/support/notes/1226758|https://service.sap.com/sap/support/notes/1226758]
[https://service.sap.com/sap/support/notes/1174095|https://service.sap.com/sap/support/notes/1174095]
Wim -
Reg: Script Output from Spool and Printer
Hello All,
I'm running ME22N TCode for a PO.
Now when I select Print Preview for a PO the Output is as desired.
But when I take the output from a Spool it's different.
Can any one tell me wht's the Problem is ?
Regards,
Deepu.KHello,
There are 2 Windows for Address of the sender and receiver.
Eg: Left side of the page ADDR1 and Right side of the Page ADDR2.
IN Print Preview I get the content of addr1 on the left side and the content of addr1 on the right hand side.
But in the SPool Output I get the Content of addr1 on the right side of the page and the content of the addr2 on the left side of the page.
Hope I'm clear in my explanation.
Regards,
Deepu.K -
Reg : Script spool file downloading into xl-file
Dear friends,
I need to find the script spool no as well as the same script spool
to be download into xl-file.
Could u please give me guidelines, how to do that.
Thanks and Regards
V.Raja sekaranThanks for your reply,
My requirements is like below,
I am calling the script from report, In report i have a check box for excel download,
If the user selected the option check box download into excel file than i need to indentify the spool number as well as download the script spool file into excel file.
Thanks and regards
V.Rajasekaran. -
Need help reg. Conversion of report output into spool
Hi Experts,
I need to convert the report output into spool while report is executed in foreground not in background. Please let me know your inputs.
Thanks
GopalSUBMIT... TO SAP-SPOOL AND RETURN : Prints output of a report that you call with the SUBMIT keyword. As with NEW-PAGE PRINT ON, the list is printed during its generation, so that both PRINT-CONTROL and FORMAT keywords take effect. Also, SUBMIT... TO SAP-SPOOL AND RETURN allows the programmer to set the format and other printing parameters. As with NEW-PAGE PRINT ON, you can set printing and archiving parameters with the GET_PRINT_PARAMETERS function module.
CONVERT_ABAPSPOOLJOB_2_PDF convert abap spool output to PDF -
Bag ground job 'Spool List Recipient'
hi guys,
there is any configuration for that background job <b>spool list recipient</b>,
if there please replay me it was argent issue with my end
Reg,
HariharanHi Holly,
it's sound like the <b>SAP-Note: 329537</b>
Symptom
If a batch job creates a spool and sends it to a recipients, only the first 1000 lines are sent.
Other terms
SAPOffice, spool list recipient
Reason and Prerequisites
For performance reasons, the output sent to SAPOffice is limited to 1000 lines.
Solution
If you wish to send spools longer than 1000 lines in Releases > 4.6B, proceeed as follows:
1. Apply the support packages or correction instructions mentioned in this note.
2. Create the following two entries in table TSPOPTIONS with transaction SE16:
option: BTC_FIRSTLINE value: < desired value, probably 1>
option: BTC_LASTLINE value: < desired value, e.g. 99999>
1. Call function module RSPO_OPTION_FLUSH with value NAME = '*'.
Please note that this change may impact performance, depending on the selected line interval.
In Releases < 4.6C or if you are not able to apply the support packages or corrections, you can accomplish this with a minor code change.
In program RSBTCRTE, change the parameter sent to the function module
RSPO_SPOOLJOB_TO_OFFICE as follows:
call function 'RSPO_SPOOLJOB_TO_OFFICE'
exporting
rqident =
spo_list_id
first_line
= 1
last_line =
1000 "<<< Delete
last_line =
99999 "<<< Insert
receiver
= recipient_object
mail_title
= document_data-obj_descr
exceptions -
How to get the full file content in the spool
Hi,
I am reading one fine from application server. I am getting all that content into one internal table. Again I am trying to write that one into spool. I am creating one spool by using
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = P_PADEST
DESTINATION = lv_dest
LIST_NAME = lv_name
LIST_TEXT = P_LNAME
LIST_TEXT = 'Label Print'
IMMEDIATELY = 'X'
RELEASE = ' '
NEW_LIST_ID = 'X'
EXPIRATION = 9
LAYOUT = 'X_65_80'
SAP_COVER_PAGE = ' '
RECEIVER = SY-UNAME
DEPARTMENT = 'SYSTEM'
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = IS_PARAMS
VALID = V_VALID.
but in the spool i am not getting full content. In the internal table i am getting full content but in the spool some 5 to 6 lines are truncating at the last. How can i get the full content? For this i need to do any settings?
Pls suggest reg this.may be the rest of the data is in another page. how many pages your spool showing. just check in SP01 . from menu Goto -> Display Requests -> Settings ->
change the page numbers to view the other pages. -
I converted the spool to pdf mailed the pdf form. i got the mail and when i tried to open the pdf form it is showing a popup ''the file is damaged and could not be repaired".
Hi
i did the same thing in ABAP web dynpro. below is the code.
data LX_pdf type xstring.
CALL FUNCTION 'ZBAPIGETPDF_CONVERSION_DATA'
IMPORTING
EX_PDF = LX_pdf
cl_wd_runtime_services=>attach_file_to_response(
i_filename = 'Hello.PDF'
i_content = lx_pdf
i_mime_type = 'application/pdf'
i_in_new_window = 'X'
i_inplace = 'X' ).
<b>Code for FM zbapigetpdf_conversion_data</b>
FUNCTION zbapigetpdf_conversion_data.
""Local Interface:
*" EXPORTING
*" VALUE(EX_PDF) TYPE XSTRING
DATA: pdfdata TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
tline TYPE tline.
CALL FUNCTION 'ZBAPIGETPDF_OUTPUT_TABLE_DATA'
EXPORTING
spoolno = '28216'
IMPORTING
RETURN =
TABLES
pdfdata = pdfdata
field-symbols <X>.
data: st(268) type c.
data l1 type i.
data len type i.
data maxline type i value 134.
l1 = 0.
loop AT pdfdata INTO tline.
clear st.
st+l1(maxline) = tline.
len = maxline + l1.
l1 = maxline - strlen( tline ).
ASSIGN st TO <x> TYPE 'X'.
CONCATENATE ex_pdf <x>(len) INTO ex_pdf IN byte MODE .
endloop.
ENDFUNCTION.
<b>Code for zbapigetpdf_output_table_data</b>
FUNCTION zbapigetpdf_output_table_data.
""Local Interface:
*" IMPORTING
*" VALUE(SPOOLNO) TYPE ZSMARTFORMINPUT2-SPOOL_ID OPTIONAL
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRETURN
*" TABLES
*" PDFDATA STRUCTURE TLINE OPTIONAL
DATA: v_spoolid TYPE tsp01-rqident.
vspool(10) VALUE '4904'.
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.
spoolno = '28216'.
v_spoolid = spoolno.
*SPOOLNO = 4904.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = v_spoolid
NO_DIALOG = 'X'
DST_DEVICE =
pdf_destination = 'C:\File.pdf'
IMPORTING
pdf_bytecount = numbytes
pdf_spoolid = pdfspoolid
OTF_PAGECOUNT =
btc_jobname = jobname
btc_jobcount = jobcount
TABLES
pdf = pdfdata[]
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.
*refresh pdfdata[].
*pdfdata-tdformat = 'hello pawan'.
*append pdfdata.
ENDFUNCTION.
Its working for me.
Regs
Manas.
Pls reward points. -
How many number of pages can be included in a single spool request
Hi ,
How many maximum number of pages can be included in a single spool request. can we increase or decrease these max no of pages per spool in SAP.Please advise.
Thanks & Regards,
Sam.Hi Sam,
The spool is ultimately a file created in the database. So it can handle a large number of pages.
By defaut it shows only first ten pages.. This can be changed from the settings in SP01.
GOTO> DISPLAY REQUESTS> SETTINGS
Regs,
Sameer -
Spool was in waiting status for 10 mins
Hi all,
when i try to issue any print from sap , Spool was in waiting status for more than 5 mins & then it starts begins formatting output type ...
Please help me .
Regs ,
Murthyhi,
If you are having frequent problems with delayed processing of spool requests and/or spool work processes waiting for communications time-outs, then you may want to run your spool work processes with the R/3 developer trace switched on.
Activate the developer trace by setting the option rdisp/TRACE in the system profile or by adding the TRACE option to the command line with which an SAP application server is started. These command lines are defined in the SAP start profiles. For more details about this, see Trace Functions and the sections about profile maintenance in the documentation about the Computing Center Management System.
The information in the developer traces is highly technical. However, the trace information should let you or a consultant at least identify the host system and printer that are causing problems. -
Reading CONTENT of a spool-file possible ?
hi there,
are there FM's or method of classes with which i can read the content of a spool-file ?
e.g. reading the content of a spool-file line by line to move it e.g. to a table ?
reg, MartinMartin,
You could try FM's CONVERT_ABAPSPOOLJOB_2_PDF or CONVERT_OTFSPOOLJOB_2_PDF.
Duane
Maybe you are looking for
-
My MacBook Pro (using OSX 10.7.5) suddenly can't find the Time Machine backup disk, which is on the harddrive of my desktop iMac. What to do?
-
Hi , We have a BI Report(Bex Web Application Query String) -SAP BW2.x/3.x format. How can we provide the link in the standard role of SRM7.0 business package? I created the view to test it in the portal it is executed without any problem in the previ
-
Certificate Problem - Secure Connections Denied
A friend just got her computer back from a loan and now finds that she can't gain access to any secure sites such as webmail. When she tries, she is greeted with the error message IDENTIFY CERTIFICATE IS NOT YET VALID UNABLE TO ESTABLISH A SECURE CON
-
Hello all, I am a newbee to this Adobe LiveCycle, I have downloaded a trial copy of the adobelive from adobe site only. While installing Adobe LiveCycle Workbench ES, it is asking for the Serial Key. As this is a trial version, i dont have the key. C
-
I am stuck on the wrong resolution and have tried everything. Please help.
My Mac Mini is stuck on the wrong resolution, and I have tried resetting my Mac's PRAM, I tried booting into safe mode, and I tried resetting the SMC, but none fixed the problem.