Submit results with two spool request
Hi
I using the following submit code in my abap program.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
* DESTINATION = 'LOCL'
LIST_NAME = 'TEST'
LIST_TEXT = 'SUBMIT ... TO SAP-SPOOL'
IMMEDIATELY = ' '
LINE_SIZE = 1023
NO_DIALOG = 'X'
IMPORTING OUT_PARAMETERS = PARAMS
VALID = VALID.
SUBMIT (pgnam) USING SELECTION-SET vrint
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS PARAMS AND RETURN.
This is working fine in my development system. But when i test this in testing server (QAS) it returns two spool one with 0 pages and second one with correct output. Can anyone help me with this?
points will be rewarded for useful answers.
thanks
REPORT demo NO STANDARD PAGE HEADING.
DATA: spfli_wa TYPE spfli,
sflight_wa TYPE sflight.
DATA: print_parameters TYPE pri_params,
valid_flag TYPE c LENGTH 1.
START-OF-SELECTION.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_parameters = print_parameters
valid = valid_flag
EXCEPTIONS
invalid_print_params = 2
OTHERS = 4.
IF valid_flag = 'X' AND sy-subrc = 0.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF spfli_wa.
WRITE: / spfli_wa-carrid, spfli_wa-connid.
HIDE: spfli_wa-carrid, spfli_wa-connid.
ENDSELECT.
ELSE.
ENDIF.
AT LINE-SELECTION.
NEW-PAGE PRINT ON PARAMETERS print_parameters
NO DIALOG.
SELECT *
FROM sflight
INTO sflight_wa
WHERE carrid = spfli_wa-carrid AND
connid = spfli_wa-connid.
WRITE: / sflight_wa-carrid, sflight_wa-connid,
sflight_wa-fldate ...
ENDSELECT.
NEW-PAGE PRINT OFF.
Similar Messages
-
Httpservice.send() resulting in two http requests
hi,
I am using HTTPService() to send some xml data inside an HTTP
POST request. But very often, i do
see this resulting in two local ports being opened and the
http request being sent out twice, once from each port.
is this possible in some race condition?
thanks,
Sunilsome snippets of my code:
//build the http request
var request:HTTPService = new HTTPService();
request.method = "post";
request.headers = headers[request.method];
request.url = httpServer;
request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
request.contentType = "text/xml";
request.addEventListener(InvokeEvent.INVOKE , httpInvoke,
false);
i do see the invoke callback only being called once. That
makes me guess that from the application code, httpservice.send()
is called only once.
any help will be great. -
F.27, Duplicate Spool Request
Hi All,
While running the program - Periodic Account Statement (t-code F.27) u2013 in background(Program > Execute in background) 2 spool requests are generated.
Why 2 spool requests are generated ? Only 1 spool request should get generated.
Correspondence Type used is a customized Correspondence Type(Z).
Unwanted Spool generated is of type u2018ABAP Listu2019 and title generated is u2018F140 LOCL 20100927KORKu2019.
Because of the 2 spools 2 hard prints are printed.
Please suggest as to what could be the cause of 2 spools ?
Thanks
DevHi,
As info says:
Output
If correspondences are printed, a log with the spool requests created by
the print programs is output for each program run. If you do not specify
in the program on which printer the log is to be printed, the program
may take the printer specified in the user master of the user who
started the program or the printer specified when the job is scheduled.
If the program is carried out online, the log is displayed on the
screen. If the program is planned as a job, the spool request name of
the log is made up of the identifier F140, the printer destination, the
date of creation and the program ID KORK.
The correspondences are printed by means of the corresponding print
programs. If printing is possible on the basis of the data and the
configuration, a spool request is created for each correspondence type
and company code. Regardless of whether printing actually takes place,
the processed correspondence requests are marked as completed by means
of a print date, so that reorganization can be carried out.
ie: you have a SPOOL with the log, and you have other SPOOL with the printable document that you must send to customers.
I hope this helps you
Regards,
Eduardo -
Hello,
I run tx-VF31 (u201CPrint immediatelyu201D option of printer settings is unchecked). As a result, only one Spool Request is created and all the messages (outputs) are filled in this unique Spool Request. Is it possible to create one Spool Request for each message? I am using Smartforms and I have modified the parameters of its interface without success. The following parameters have been modified to u2018Xu2019:
OUTPUT_OPTIONS- TDNEWID
OUTPUT_OPTIONS- TDFINAL
Thanks in advance,
Ricard.
Edited by: Oscar Barrabes on Feb 23, 2009 9:22 AMHi,
i have done the same thing for my requirement:
please check the below code:
NEW-PAGE NO-TITLE
PRINT ON LINE-COUNT '65'
NO DIALOG
LINE-SIZE '80'
DESTINATION 'XEROX1'
IMMEDIATELY ' '
KEEP IN SPOOL 'X'
LAYOUT 'X_65_80'.
SET BLANK LINES ON.
WRITE: / 'Date: ',06 sy-datum,
20 'Time: ',26 sy-uzeit,
40 'Page No: ',49 sy-pagno.
ULINE.
LOOP AT it_errmsg INTO lv_msg.
WRITE: / lv_msg.
ENDLOOP.
SET BLANK LINES OFF.
NEW-PAGE PRINT OFF.
By looping the messages what u r getting individually.....u will get all those messages in one spool request.
Regards,
Dara. -
Hi Experts,
when iam trying to generate the spool request for Adobe form,
iam getting two spool requests 1.PDF document and 2. ABAP list.... i want to knw why 2 spool requests are generated and if so how to avoid ABAP list from spool..
Thanks in advance
Regards
AdilHi Abdul,
You can avoid the manual restart if the host spool system itself automatically .see this link.
http://help.sap.com/saphelp_nw04s/helpdata/en/08/5741dc4ae611d1894f0000e829fbbd/content.htm
regards
abdul. -
hi experts,
We faced PO printout problem during our Go Live. We have implemented SAP with new Plant/Company.
For all PO forms in existing company are printing fine, but for this new company, we are trying to print PO but it only goes with the spool request no.
Next problem, all PO is saving under 1 spool request no. so when you open the Spool request, all PO store in 1 spool.
can any tell me, what is this problem came from? set-up or from smartforms?
thanks in advance.
regards,
MaiaHi,
Spool Request- As per my knowledge u require spool request no to download the PO in Acrobat format. In messages only we do the settings
Goto messages- communication method- specify logical destination -tick print immediately- in SAP cover page select X Print and go to further data select despatch time - 4 send immediately save ur PO and and come out and go back to the PO and again click messages- go prcessing log u will get spool request no.
Check the above settings that u have made properly ornot.
ok -
One job with two steps - how to create one single spool?
Hello experts,
I have created two queries in SQVI. One is based on the table BSIK, the other on on BSAK.
The report layout is the same in both queries.
Now I schedule one job in SM36/SM37 with two steps corresponding to my queries.
I want my second step to append the spool created in the first step. Is that possible?
In order to do this I unchecked "New spool request" in the request attributes for the second step of the job.
I use the same printer, the same format (X_65_80), but it doesnt work.
The help on the field says
".... name, output device, number of prints and the format must match..." - What "name" do they mean?
"In addition, the existent spool order must not already be competed. This can occur if a spool is released for output...." - I use "send to SAP spooler only" option, is that what thay mean? How cen you have an "uncompleted spool" in the job.
If anybody knows ho to do this (without development!), please advise
Best regards,
FatimaHi,
Please do following steps :
1. Go to transaction code SM36
2. Do as per below screen shots
You can see Job steps is empty
Click on (Check and Save)
Next Screen
You can see one step created
Click on Create
You can see above it is showing as Step 2
Give again program name and variant
Click on (Check and Save)
You can see two steps are created
Go back (green arrow)
You can see know SAP is showing 2 Step(s) successfully defined which was earlier blank
Click on
Next Screen
Now schedule job as per your requirement.
Prerequisite create variants for both the programs as we need to mention the same .
Hope, this solves your issue else revert.
Regards,
Tejas -
How to submit a PDF document to spool request by coding
Hi experts,
I have a pdf document that is stored somewhere in SAP system, for example MIME repository. So I can read this PDF document and get its content as an xstring.
I know SAP can print a smartform directly by calling its function module, or submit a program (list output) to SAP-SPOOL to generate a spool request.
But how can I submit a document or an xstring which presents the content of a document to spool request in order to print it out?
Or should I do it in some other way?
Any of the suggestion or hint will be help.
Thanks!We have checked it with SAP and it seems no solution for printing a pdf doc by coding.
The final workaround is to use an virtual printer or some converter on PC to convert the pages in that pdf document into BMP files. Then upload those BMP files in t-code se78 and build a smartform to include them.
It is convenient to use the printing function of smartforms in ABAP coding. -
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 -
How is it possible that a target has two deltas requests with the exact sam
HI,
How is it possible that a target has two deltas requests with the exact same records?Hi Mohammed,
There are couple of reason behind it.
main reason is
take one scenario we have DSO as source and cube as target.
Now DSO contains only 1 request, which i have loaded to cube by using delta.
after that i have deleted DSO content by using right click on it and delete data.
(hope u know that it will not delete request from target automatically)
now once again i have loaded same request from datasource to DSO
and then loaded delta again from DSO to cube.
In this case for 1 single request in DSO you can see 2 request in cube with same data.
Regards,
Ashish -
Hello ,
Some spool requests are completed with status "Completed(Problem)". When we check the output Request Logs find below things :
Print request processing log
The host spool is reporting errors
This request may not have been printed. Status unknown
Most important attributes of spool request
Request number 43899
When we checked we are getting printouts fine but still in status we are getting completed with problem in Red mark.
Can anybody tell abt this confusing situation why we are getting status in sP01 like this.
Thanks
AnjuHi,
What is your OS?
File = /usr/sap/SID/SYS/DVEBMGS00/data.
UNIX:-
check the file system status whether it is full (100%)
Then increase file system thorugh OS level.
Windows:-
Check your hard disk of file system.
Regards,
Srini Nookala -
Spool request with more than 255 columns
Hi,
Please let me know what formatting type has to be used to have spool output with more than 255 lines.
X_24_80_JP L ANY 00024 00080 ABAP list HR Japan: At least 24 rows by 80 columns
X_44_120 L ANY 00044 00120 ABAP/4 list: At least 44 rows by 120 columns
X_51_140_JP L ANY 00051 00140 ABAP list HR Japan: At least 51 rows by 140 columns
X_58_170 L ANY 00058 00170 ABAP/4 list: At least 58 rows by 170 columns
X_60_80_JP L ANY 00060 00080 ABAP list HR Japan: At least 60 rows by 80 columns
X_65_1024/4 L ANY 00065 01024 ABAP List: At Least 65 Lines 4*256=1024 Columns Four-Sided (Only for SAPlpd)
X_65_132 L ANY 00065 00132 ABAP list: At least 65 rows by 132 columns
X_65_132-2 L ANY 00065 00132 ABAP List: 2-column 65 characters 132 columns (only for SAPLPD from 4.15)
X_65_200 L ANY 00065 00200 ABAP list: at least 65 lines with 200 columns (not for all device types)
X_65_255 L ANY 00065 00255 ABAP/4 list: At least 65 rows with a maximum number of columns
X_65_256/2 L ANY 00065 00256 ABAP list: At least 65 lines 2*128=256 double columns (SAPLPD only)
X_65_512/2 L ANY 00065 00512 ABAP List: At least 65 Lines 2*256=512 Columns 2-sided (Only for SAPlpd)
X_65_80 L ANY 00065 00080 ABAP/4 list: At least 65 rows by 80 columns
X_65_80-2 L ANY 00065 00080 ABAP List: 2-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_65_80-4 L ANY 00065 00080 ABAP List: 4-column 65 characters 80 columns (only for SAPLPD from 4.15)
X_90_120 L ANY 00090 00120 ABAP list: At least 90 rows by 120 columns
X_PAPER L ANY 00010 00010 ABAP/4 list: Default list formatting
X_PAPER_NT L ANY 00001 00001 ABAP/4 list: Obsolete (do not use)
X_POSTSCRIPT L ANY 00001 00001 Pre-prepared PostScript
X_SPOOLERR L ANY 00001 00001 ABAP list: Spooler problem report
X_TELEX L TELEX 00001 00001 Telex: 69 characters wide, only as many lines as supported by TTU
ZABC_SAP L ANY 00065 00550 LCM Report Page Type
I have created a custom Format Type with 65*550 (ZABC_SAP) , but still the output gets truncated in the spool.
In sp01 . For the spool request ... If it displayed in Graphical layoout ... Output is getting truncated but when we see in Raw format .. i can see the entire output. But it is not at all formatted.
Thanks,
Tanuj
Message was edited by:
Tanuj Kumar BolisettyHello Tanuj,
You need to use a page format greater than 255 columns for sure. However still if it does not solve the issue then you may consider using the note 186603.
PS: I guess you are on a higher release than 4.6 C . For this release this note íIt has a text attachment for a report tat allows to display such spool requests.
Regards.
Ruchit. -
Displaying results with a decimal place of two. Forcing decimal place.
Hi there,
Im writing a simple calculation device.
You input one digit and press one of two buttons to multiply it by a certain number and then the result is displayed. The result is displyed hiding the result of the button you didn't press and visa versa.
I am having a problem displaying the result with a constant two decimal place.
I am using strings and thus don't know how to do this.
Here is my code:
import flash.events.MouseEvent;
//restrict the input textfield to only numbers
txtinput.restrict = "0-9";
//restrict the input textfield to only two characters
txtinput.maxChars = 6;
// event listeners
btnW.addEventListener(MouseEvent.CLICK, WHandler);
btnC.addEventListener(MouseEvent.CLICK, CHandler);
btnW.addEventListener(MouseEvent.CLICK, hideC);
btnC.addEventListener(MouseEvent.CLICK, hideW);
//functions
function WHandler (e:MouseEvent):void
//white calculation
var answerW:Number = Number(txtinput.text) * Number(0.90);
txtWResult.text = answerW.toString();
function CHandler (e:MouseEvent):void
//colour calculation
var answerC:Number = Number(txtinput.text) * Number(0.99);
txtCResult.text = answerC.toString();
function hideC (e:MouseEvent):void
//Hide colour result
txtCResult.visible = false;
txtWResult.visible = true;
function hideW (e:MouseEvent):void
//Hide white result
txtWResult.visible = false;
txtCResult.visible = true;
After having a look online I have found these two resources:
http://helpx.adobe.com/flash/kb/rounding-specific-decimal-places-flash.html
and
http://stackoverflow.com/questions/11469321/decimals-to-one-decimal-place-in-as3
But I am confused when combining these techniques with strings.
Any help would be greatly appreciated,
Thanks in advance
Mr BUse the toFixed() method of the Number class instead of the toString() method. The result of it is a String with the number of decimal places you specify.
var answerW:Number = Number(txtinput.text) * Number(0.90);
txtWResult.text = answerW.toFixed(2);
var answerC:Number = Number(txtinput.text) * Number(0.99);
txtCResult.text = answerC.toFixed(2); -
Calling Transaction SP01 (Display spool requests) with parameters via URL
Hi,
I would like to be able to list all spool requests of a certain title via a URL.
Unfortunately ITS does not seem to work. A URL constructed like this
http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
I am therefore considering the following options:
1. BSP Program
2. Java WebDynpro
3. ABAP WebDynpro
Ideally, I want to be able to enter in my browser something like
http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
and for this to show in the browser a list of all spool requests that are named "Testing123".
Can someone advise whether any of the above options are preferable?
Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
Many thanks for any assistance.
Regards
AdrianSolved myself. Thanks
-
Printing invoices with VF31 in only one spool request
Hello,
we want to print a number of invoices with VF31 using only one spool request, as at this time we become one spool request for each document.
The problem is that VF31 calls indirectly RSNAST00 and this program makes a call to the print program where we have OPEN_FORM and END_FORM each time, so this creates one spool request every time the program is called.
Is there a way to print in only one spool request without doing big changes to programs?
Thanks and regards.Hi,
To append to an existing spool, see the SAP Notes 85318 and 16410.
For spools to be appended the parameters 'New spool request' and 'Do not Append Print Jobs' must be set to 'No' by the application creating the spools.
For Sapscript, when the application call the function module OPEN_FORM in your print program, you can transfer a structure ITCPO to the parameter OPTIONS. Via ITCPO-TDNEWID, you can select the option 'New Spool Request'.Via ITCPO-TDFINAL, you can can select if the spool is closed.
Regards,
Aidan
Maybe you are looking for
-
GIF is ridiculously slow on web despite looking fine in PS?
Gif in question: http://fc02.deviantart.net/fs71/f/2014/343/9/d/stop_by_chexxie-d8998ug.gif There's 26 frames, each 'blinking' frame is set to no delay (only ones with delay are the first frame and the frame inbetween, the 10th frame) I have no idea
-
Save a Response as a PDF File - Help
I've imported a PDF form and have it functioning. I understood I could download selectted individual responses with the fields embedded in the original form design. A great idea. However although the help pages tell me I should be able to see an opti
-
Can't allocate 2GB in JNI?
Hi, I've got an application that uses JNI to allocate lots of memory. I was surprised to learn that my process maxes out at about 1900 MB (I would expect to get arbitrarily close to 2048 MB on a 32-bit windows platform). I don't think it's fragmentat
-
Set up bank email - automatic payment F110
When we process the automatic payment Tcode F110, SAP system will send file of all vendors/customers to the bank. How can we set up the bank's email and our email (which will appear as sender)? The system will send individually to each bank, or send
-
Installing adobe acrobat XI pro
I've been trying to install the 30 day trial program for hours and each time the download assistant feet to "less than a minute" it starts over. What am I doing wrong??