How to get spool from background job run?
Hello,
I have this situation and need help on how to resolve:
I have RFC FM which called from another system, in that FM I am submitting BDC section as a batch job by report RSBDCSUB. The problem is that this job may run for 1 or 2 hours and my RFC call will be close by that time. How can I bring the result of my batch job run back to the calling system in this case? Will appreciate any hints.
Thank you,
Glenn
Hi
After you the Job completes. Use the spool ID and fetch the Spool list using the report RSPOLST2.
You can download the spool job using the Function module RSPO_DOWNLOAD_SPOOLJOB.
Thanks
Dev
Similar Messages
-
Email multiple spools from background job - SM36 using Spool List recipient
I create a background job using Spool List Recipient to email me the reports. The program that I scheduled to run creates 2 spools. When the spools are sent via email, only the last spool is sent.
Please advise on how I can get the 2 spools sent via email.i would not use the Spool List recipient from Job and use the function RSPO_SPOOLJOB_TO_OFFICE in your Program instead.
tell me if it helps.
Regards,
Laurent -
Background Job running long time.
Hello All,
One of customer background job running for long time more than 11 hours, but usually this jobs get completed within 4 hrs.
I have checked in WP trace file, it shows "WP has reached abap/heaplimit=40000000".
This is the Value I can see in RZ11. Now it is not possible to change the value.
Frequently facing this problem, please guide me to solve this issue.
Regards
Vinay.Hi
First of all, abap/heaplimit is the limit of memory usage by a WP.
Follwing is the documentation from help.sap.com
The value of the parameter should be between 10000000 (10 MB) and 2000000000 (2GB), the recommended default setting is 40000000 (40 MB).
The objective is to have the least number of work process restarts as possible, without a swap space bottleneck occurring. The heap memory allocated by the work processes has to be released again.
As shown in the graphic, the value of abap/heaplimit should be smaller than abap/heap_area_dia or abap/heap_area_nondia, so that the dialog step that is running can still be executed. This prevents the work process from working against the operating systemu2019s swap space limit if there is a programmed termination of the work process.
So,Do the above checks. And importantly check the memory utilizations at the time of running your job and check whether any other job was also running at the sametime.
Increasing the parametes is not a good idea.. If you continuously face this issue then only think of parametes. As u said ,this problem is not happenng too often.
Hope this is useful -
How to Get Spool ID after PO release. (To send PDF for ext E-mail)
Hi Experts,
I am new to Email sending from SAP.
I am facing a big problem from many days. I am in a new support project.
I have a issue that when ever a PO is released from ME23N or ME28 it should send a mail to vendor.
This is working fine in Development including delivery report or failed report back to approver...
I dont know where is PRD and who is doing that,
But my support manager says that only some PO's are sent to vendors not all...
everytime they approve only some emails sent to vendors...!
But every PO is same and for same vendor's...
Even failure & delivery messages are missing for (sent failed email's)
But after all I observed only one thing that we have a select statement....
DATA: GS_RESULT TYPE ITCPP.
DATA : L_DATE(9).
DATA : BEGIN OF LT_TSP01 OCCURS 0,
RQIDENT LIKE TSP01-RQIDENT,
RQCRETIME LIKE TSP01-RQCRETIME,
DATE(8),
TIME(8) TYPE N,
END OF LT_TSP01.
SELECT RQIDENT RQCRETIME FROM TSP01 INTO CORRESPONDING FIELDS OF
TABLE LT_TSP01 WHERE RQCRETIME LIKE L_DATE
AND RQIDENT EQ GS_RESULT-TDSPOOLID.
IF SY-SUBRC = 0.
(All Email sending code)(including delivery & failure delivery)
Endif.
So I suspect it is not picking up the Spool request from this Table TSP01 or may be not updated to this table.
I have searched in SCN, I have seen may E-mail Codings
But every one says to get Spool- ID & Convert to PDF,,,
My Question is How to get Spool ID correctly and tell me how it is updated. when a PO released by ME23N or ME28.
please any one clear my doubt as I am completely helpless here.
Thanks in advance,
Dunlop.Hi,
Is it a SMart form.....
If it is a smartform, then Smartfom interface itself has a spool id parameter....
you can directly het that from this parameter...
CALL FUNCTION "FMa Name'
EXPORTING
control_parameters = wsl_control
output_options = wsl_outpt
user_settings = ''
wtg_itemdetails = tl_itemdet
wtg_vttp = l_vttp
IMPORTING
job_output_info = sl_spooldet
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
The inporting parameter sl_spolldet will have the Spool id.
and you fetch by, using the below mentioned way..........
READ TABLE wsl_spooldet-spoolids INTO wsl_wa_spool INDEX 1.
IF sy-subrc = 0.
Convert it into PDF using 'CONVERT_OTFSPOOLJOB_2_PDF'
then attach it and send a mail.....with all properties set such as Delivery report....
endif.
If you have any issues, please let me know........
Thanks & Regards,
Vamsi -
How to get Position from EmployeeInfo in DIAPI
I am using DIAPI(JCO) for SAP B1. According to one or my reuirement i am in need of Position from the EmployeesInfo. But there seems no option or method for getting position from that. Can anyone guide me how to get that from EmployeesInfo ? Any help is appreciated..
Looking at the DI API properties vs. DB fields mapping documentation in the SAP Business One developer area (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c5f5dbcc-0a01-0010-5d82-f25f2bee715e)
it seems that this field is not exposed (yet).
I.e. you could only run a SQL statement to get this information.
Sorry,
Frank -
How to get acknowlgmnt from EFT (debt card swap) machine from swing app.
Hi,
Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.
I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.
I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......Vish_1x1 wrote:
Hi,
Please some 1 let me know how to get acknowlegdement from EFT ( debit card Swap) machine once it is connected to the computer.What do you mean by "acknowledgement"? You realise it needs some sort of authorising host in order to authorise, right?
I have a code which seems to have no errors ut it I am not sure whether the EFT machine will be able to send or recieve the data once the car is swaped. because i dont know what is the response of the EFT machine when connected to the computer though a java swing class.Mumbo-jumbo
I know it will be quite tidious job for you to go through my program but this is all i can do...or atleast give me a link where i can refer to such case.......I am using eclipe Ide....and have searched alot on google too......Where did you get this "EFT machine" (whatever that is)? Do you mean a card reader? An EMV terminal? A PDQ? What? Where did it come from? Start there. If you need to get this thing working, you must be part of an enterprise, which has access to resources such as hardware vendor support, merchant banking services and EFT software vendors. If you're not, then you might as well abandon all hope of using this machine to take cards on your own, because you can't. End of story
And, no, nothing to do with Java -
How to get coordinates from Google Map
I wonder how to get coordinates from Google Map to JavaFX application when click has occured. Here is an example of code:
public class JavaFXApplication extends Application {
public void showCoordinates(String coords)
System.out.println("Coordinates: " + coords);
@Override public void start(Stage stage)
final WebView webView = new WebView();
final WebEngine webEngine = webView.getEngine();
webEngine.load(getClass().getResource("googlemap.html").toString());
webEngine.getLoadWorker().stateProperty().addListener(
new ChangeListener<State>() {
@Override
public void changed(ObservableValue<? extends State> ov, State oldState, State newState) {
if (newState == State.SUCCEEDED) {
JSObject window = (JSObject) webEngine.executeScript("window");
window.setMember("java", new JavaFXApplication());
BorderPane root = new BorderPane();
root.setCenter(webView);
stage.setTitle("Google maps");
Scene scene = new Scene(root,1000,700, Color.web("#666970"));
stage.setScene(scene);
stage.show();
public static void main(String[] args){
Application.launch(args);
// googlemap.html file
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
#map_canvas { height: 100%; background-color: #666970; }
</style>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(40.75089, -73.93804);
var myOptions = {
zoom: 10,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
panControl: true,
navigationControl: true,
streetViewControl: false,
backgroundColor: "#666970"
var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);
document.map = map;
google.maps.event.addListener(map, 'click', function(event) {
//java.showCoordinates(event.latLng); ???
map.setCenter(location);
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>Edited by: krbltik on 03.10.2012 22:59Hi, welcome!
You may also have a look at GPS Info Qt, available for free at Ovi Store: http://store.ovi.com/content/165671
GPS Info Qt is a nice Qt app. I have it on my C6-01 and I like it.
Regards. -
What client is background job running in?
Hello all,
Is there a way to tell which client a background job listed in SM37 is running in? Can't seem to find that information in the job nor any tables. I thought that you could only see the jobs that are running in the client you are logged onto too but that's not the case.
Thanks,
TomHi,
For checking the client for particular background job which is runnig can be cheked by.
Go to SM37- enter the particular job name and the details eg: username and the job start and end condition. Execute this.
Now on top go to Setting->Layout->Change Layout->
On right side u can find the hidden fields-select client from that and bring it to change layout ie. left part. and press copy.
This will change the layout of ur report and u can see the client number for that particular background job running.
U can do this by using * also while mentioning the jobname.This way you do not have to open every job to find out.
Hope this will be of some help.
Thanks
Ruchika
Edited by: Ruchika Kapoor on Jul 2, 2009 2:04 PM -
Export of report/query to a file for background job runs
I have a requirement to automate the export of a report or query to a file so when a background job runs a new file is generated to the drive.
This cannot be a customized solution for 1 report, it must be able to adapt to other reports or queries as well.
Any help will be highly appreciated.
Thank you,
ThaminaHi,
SAP have created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
Specify the spool number and you will be able to download the sapscripts spool into your local harddisk.
It look exactly like what you see during a spool display.
Please note that it is not restricted to sapsciprts spool only. Any reports in the spool can be converted using the program 'RSTXPDFT4'.
Regards,
Pavan -
I'm using movie program how do get rid of background noise and put music over top of video
I'm using movie program how do get rid of background noise and put music over top of video
Niel,
Thanks for your suggestion about using RCDefaultApp. I am hesitating to do this because it seems like I'd be installing still another piece of software to fix the original mistake---downloading Reader.
About 20 years ago I maintained---with considerable handholding---UNIX systems of various sorts. Can you suggest how I might find the plist that seems to require changing?
BTW, Preview is called whenever I open some random .pdf file. The problem appears when I want to get a file from the web. If the site permits a "download" I can get the file, but if I want to "view and print" the file, the evil dark-grey Adobe screen appears with the whirling black ball. Then Safari quits. I'm wondering if the reference to Reader is in a "cookie" sent from the website, when I first was installing Reader. Is this possible? -
How to disable skype from background in lumia 920
how to disable skype from background in lumia 920. skype all time running in background and i can't disable it, everyone can send me messages and calls, and this feature is eat batery lifetime
Thats what is mentioned in my post ..
farby wrote:
Have installed Skype on my Nlokia Lumia 920 since a long time and on an average the battery lasts more than 2 days ..
BTW there is no way you can stop the application running in the Background ..(settings-->applications-->background tasks-->advanced ..and read the note at the top ..) -
How to get spool along with e-mail or FAX
Hi,
I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
Could any one suggest me how to get spool along with e-mail or FAX option.
Thanks in advance.Hi,
check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
hope u'll get some idea.
Regards,
Sneha. -
Background job running for a long time - trace is not capturing.
hi guys,
My background job runs for more thatn 4 hours. some times. (normally it completes withing one hour)
i tried to trace using st12 ....and executed this program. but not got complete trace report of 4 hours.
what is the best way to trace long running programs like this.
is there any alternative for this...???
regards
girishGiri,
There is no need to trace a program for the full 4 hours. There is usually just one piece of rogue code causing the problem, and it can be identified quite quickly.
If I were you I would just watch the job run via SM50, to see if it lingers on any database tables. Also check if the memory is filling up - this is the sign of a memory leak.
You can also try stopping the program (via SM50 debugging) at random points, to see what piece of code it is stuck in.
The issue should reveal itself fairly quickly.
Tell us what you find!
cheers
Paul -
how to get photos from mac to iPhone 6? when i try it just comes up iCloud instead of my photos
Make sure Settings > iCloud > Photos > iCloud Photo Library (Beta) = "Off"
Then sync your iPhone using iTunes and make sure your sync settings for photos are set correctly in iTunes. -
I got a new computer and don't know how to get music from ipod touch to itunes library
I recently got a new computer and don't know how to get music from my ipod touch to show on my itunes library.
You need to transfer the iTunes folder from the old computer to the new one.
iTunes: How to move your music to a new computer (Mac or Windows):
http://support.apple.com/kb/HT4527
Maybe you are looking for
-
Adobe Photoshop CC 2014 has stopped working
When ever I launch Photoshop CC 2014 I get the message Adobe Photoshop CC 2014 has stopped working and then the program closes. I happens about 5 seconds after I open the program. I just downloaded yesterday and have not been able to use it at all.
-
Can I add a SSLv3 exception to use a site?
need to add an exception for Leaseplan as they send me links in order for me to submit invoices for payment. Each link is unique how can I add an SSLv3 exception for them.
-
Further to installing OS X 10.8 Mountain Lion, the tabs on Firefox become unresponsive if I try clicking on them further to my Macbook Pro going into energy saving (sleep) mode.
-
Two machines, one user sync?
We now have two machines running Snow Leopard. is there an elegant way to have one home user for both machines that syncs application support files? thanks ∞WES
-
How to remove the NEXT button on the Quiz Results?
I can't find a way to get rid of the NEXT button on the Quiz Results page - I want the results emailed, but if they click NEXT, it hoses the email process.