Background job not generating spool
Hi all,
I am calling a report from another report. The called report will display the final output list.
Here, the called report will be executed in background.
here the job is completing but the spool is not generated.
Hi,
It seems that the final internal table which has the output data is empty & hence write statements are not executed ( assuming all the write statements are inside a loop).
Place one write statement outside loop like
write :/ 'Following is the result :'.
& check whether spool is generated. If yes, then the problem is of empty internal table.
You can select the job in SM37 & type JDBG in command prompt to debug a background job.
Debug & check the issue.
Best regards,
Prashant
Similar Messages
-
Batch Job not Generating Spool No
Hi Experts,
We had a custom program where we are printing multiple invoice in a single go i.e all invoices for a particular sales office are printed in a single spool request. for foreground execution it is running fine. But after creating variant of it on selection screen & submitting the program to Batch job it is not creating spool no when the job is finished what could be the reason.?
Also i would like to tell you that we are asking user to give a invoice no range on the selection screen.
Edited by: priyeshosi on Jan 4, 2012 5:03 PMHi priyeshosi ,
If you use function modules start with GUI_* or WS_* in your report , then you can't generate the spool.
reason for this, Please check this link,
http://www.sap-img.com/ab004.htm
Regards,
Selva M -
Background job not working for VF02
Hi,
When i give schedule RSNAST00 report in background for one output type its not generating spool, but the job status is in Complete. But in foreground it fine.
For another output type its working fine in background.
Is there any printer setting has to be done in driver program or in smartforms? Kindly help me on this.
Regards,
Vijay.Hi,
Check whether u have assigned following values.
l_wa_control_parameters-device = 'PRINTER'.
l_wa_output_options-tddest = nast-ldest.
l_wa_output_options-tdimmed = nast-dimme.
l_wa_output_options-tdnewid = 'X'.
l_wa_control_parameters-no dialog = 'X'.
CALL FUNCTION l_fnmod "'/1BCDWB/SF00000149'
EXPORTING
control_parameters = l_wa_control_parameters
output_options = l_wa_output_options
Still the problem exists then i wil send u the code.
Regards,
Vijay. -
Background job not showing full output of Report
Dear Experts
we have created zpgm for stad report and try to take output as mail to particular user for future analysis bcaz stad gives only 2 days report only we need keep report for months together so when we run job in foreground it shows proper output but when same thing when we run from background it shows only some part of report in mail (we are unable to get full output through background job )
we send mail through spool receipts we have created folder and maintain user for getting mails through so15 distribution list
we need some input to come out of this major issue
if there is any other workaround let me know
RegardsHello,
If a job is defined by transaction SM36, the print format parameters will only be taken into account, if they are saved as user specific print parameters of the batch user. If no user specific print format
is defined, the ALV standard logic will be processed adjusting the print format to the actual line size of the report.
For example, the list line size is about 132 characters, the widest available format of the chosen printer will be selected X_65_132.
The problem would be solved by defining a device type which is no format assigned to print, or by defining user specific print format parameters for the batch user, who creates the jobs in SM36 (see
SAP note 1179399, item 6).
Regards,
David -
Background job not automatically poopulating Dependant Demand
Hi Users,
We've recently set up a POS & PA using the DP-BOM selection and characteristics, manually created PPM's and generated CVC's using the BOMS. All of this is set up fine in our SCM 7.0.
The background job has created the forecasts for the ouptput products but NOT the input product.
Now if I call up the parent material, and then choose to show the input products the dependant demand is generated. If I now return to the material with the dependant demand, it now shows the demand from the parent.
Or, if the forecast is genereated interactively, then the dependant demand is poopulated.
Is there an automated method to populate the dependant demand when using background jobs? I would like to think that we don't have to query every sales BOM parent in DP and drill into the input products to load the dependant demand?
Please let me know if there is an easier way to do this as part of the background processing.
Thanks
Edited by: Paul_111 on Mar 31, 2011 4:20 PMHi Andand,
Thanks for your reply and sorry if my post is confusing.
As far as the PPM with imputs A & B, output C - I have this relationship working and calcuclating demand in DP no problems.
If I now add a new PPM combination inpput X, Y and output Z. Create the BOM CVC and TSO so its all set to go. Add to selection profiles and background jobs.
Now, if I run the background job to create the forecast and this runs successfully. Now I check my products.
Z has the forecast generated, X & Z have no dependant demand showing.
The only way I've found that pushes the demand to X & Z is:
- open product Z in demand planning and then choose the option to show input products from the header
OR - from demand planning, select the univariate forecast to run interactively.
My issue:
The background job (if run alone) does not push the forecast on Z to X & Y.
And if I show the input products or create forecast (as bove) the dependat demand is shown on X & Y.
This is going to be a slow process if we have to do this everytime we run the backgound job.
What am I missing when running the background job? -
Background Job not Printing TOs immediately
Hello experts,
I am having an issue with printing Transfer Orders created by background job, the output requests are sent to the output controller with status '-' . It works when I manually create the TOs or if I run the RLAUTA10 program with my userID in SE38 .
I have set the background job user default print parameters in SU3 to print immediately.
Also in the Job step, I have set up the print parameters to 'print immediately'
I have assigned printer for sorce storage type & set the indicator to use the source sto type in OMLV, The printer seems to be determined correctly, I've checked the Spool request name & printer in the spool controller, only issue seems to be the print not being triggered immediately.
Not sure, if there is some other setting that I have to make to be able to print the TOs created by the background job immediately.
Any help would be appreciated.
Thanks
Kris Twhether the printer which you assigned is configured in SAP (network printer)? or LOCL?
printing may not happen if LOCL(background job)
Thanks -
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 -
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 -
Some background jobs not shown in SM37
Dear Friends,
Some of my background jobs are not shown or visible in SM37. But, it is available in TBTCO, TBTCP & TBTCS tables. These jobs are scheduled in daily basis. These tables having records for all days of missed jobs.
I dont know, why it is not comming in SM37. I tried in many search parameters in SM37 like prog. name, date and so on.
These missed background jobs are not comes in spooler (SP01) also.
Kindy, suggest me to find out the missed background jobs.
Thanks in advance
Regards,
Rajagopal
Chennai - INDIA.Hi rajagopalan,
Normally this should not happen. Make sure the following in sm37:
a. The start date is : 01.01.1800
b. The end date is : 31.12.9999
c. All the checkboxes (six checkboxes) are ticked.
d. username = your username
e. jobname = *
SM37 gets records from the view V_OP (containing TBTCO and TBTCP)
and filters for username using the field SDLUNAME.
So you can basically cross-check if the count is atleast correct or the jobs were of different user (fieldname in the view/table) etc. (From SM37, you can export to excel and check the count)
regards,
amit m. -
Background job not updating data for some steps of program
We have created a custom program and submitting the standard program RPRCCC_READ_KR1025
which is used for conversion of AMEX credit card files.
Since this program can update data for 1 company id at a time,we have created a background job
for that program with 10 steps and 10 variants of data related to 10 different company codes.
when this job is executed it is not updating data for all the 10 files , sometimes it updates 5,7,etc...
If we execute the other files which didnt update in job manually they are getting updated.
All the files executed with that program can be seen in PRTA transaction.
Regards,
Gautham.
Edit: Solved.
Since the standard program updates the database every time with commit work
there should be some time until the next database update,so we can use wait command
after the submit statement which will do the trick.
Edited by: Gautham Vangaveti on Aug 5, 2010 7:20 PMHi,
I mean B(Sub Assembly)
Item Rollup Flag
A No
--B Yes
---B1 No
---B2 No
---B3 No
--C Yes
In this case when we run cost rollup by giving item A, Oracle will consider below structure.
A
--C
Regards,
Sarvottam. -
Report background engine not generated
Hi Friends,
I have installed Developer 6i -Forms and Reports.
When I try to run a report in an aplication after giving parameters in the paraform it gives an error illegal operation for rwbe60 it doesn't generate the background engine and so the report in not run.
If i run the same report through report builder it runs but no report background engine is generated.
Pls give a solution uf anyone can.
Thanks in advance
ManojHi,
Add the following:
add_parameter(pl_id, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'Yes');
Note, the 'Yes' is case sensitive. The 'y' must be upper case followed by lower case 'es'.
run_product(REPORTS, '<repname>', SYNCHRONUS, RUNTIME, FILESYSTEM, pl_id);
Best Regards,
Arun Malhotra,
Oracle Support Services -
Background Job Not Reconnected After Offline Backup.
Hi all,
Background jobs which are scheduled before Databse Offline Backup are always cancelled. Reconnect WP does not happen even if following parameters are set.
We had set profile parameters in all Application Server like
rsdb/reco_trials = 15
rsdb/reco_sleep_time = 60
rsdb/reco_add_error_codes = +3113 +3114 +1012 +1014 +1033 +1034 +1089 +1089 +1090 +1092
R3 Production server (640 Kernel, Patch 175 , SAP_BASIS 620 , SAP_APPL 470)
Database : Oracle 9.2.0.6
SYSLOG Msg : SM21
<b> Communication error, CPIC return code 020, SAP return code 497
> CPI-C function: CMINIT(SAP)
Operating system call gethostbyname failed (error no. 0 )
Operating system call gethostbyname failed (error no. 0 )
Communication error, CPIC return code 020, SAP return code 497
> CPI-C function: CMINIT(SAP)
Communication error, CPIC return code 020, SAP return code 497
> CPI-C function: CMINIT(SAP)
Communication error, CPIC return code 020, SAP return code 497
> CPI-C function: CMINIT(SAP) </b>
Thanks & Regards.
NabaLooks like some Gateway error....though not sure...
Check Note 63347 - List: CPIC error codes and then u can try to troubleshoot further... -
Hi Experts,
i want delete the "SM:SELFDIAGNOSIS" background job on solution manager system .
and i have deleted, go to next date and then delete the released job but after one day again its showing in released.
so how i can delete it properly .
Regards
jai kr.Shiv,
First check the frequency of this job from SM37
Go to SM37 -> give your job name ->and select all the options like
delete the entries in start date and end date fileds. then execute.
If you find job in Released state ,simply go to menu Job -> click on release to schedule.
Now this job will in Schedule and won't run untill you release it.
Deleting the jobs is not good idea ,simply you can suspend it.
Regards,
Srinivas Chapa. -
Background job not run properly
Hi,
When an infopackage is triggred through process chain in BI a background job will be exeuted at R/3 to fetch data from R/3.
But the bakground job did not execute properly hat is it did not fetch any data but ot finished.
But when the infopackage is executed manually the background job fetches the data from R/3.
Why the job is not fetching data when triggered through process chain.
Please help me to sole this issue.
Regards,
IndhuHi Induja,
In your case, you will have to debug the background job that is activated through BI. Check if proper data is coming from BI.
You can only debug a background job if it is created under your user id. Thus, to debug the job you first have to own it and then debug by selecting it and either typing 'JDBG' in the command field or through menus available on the top.
Job overview transaction code - SM37.
Hopefully the issue is in Development/Test/Quality system and not in Production.
Hope that helps!.
Regards,
Saba -
Background job not yet been Finished
Hi,
I have set a Background job today at 10:15 to start run at today 11:30 AM.
it is a periodic daily process at 11:30 am.
But when i checked the status of this job, its still in the status Released.
i know that, this job will not take more then 20 mins
what could be reason?
Regards,
SwethaHello Sweta,
As the job is in 'released' status so you can say that it has not started running, it will come to 'active' status as soon as it starts running, so you should not fear to cancel the job scheduled.
Answer to why in 'released' status for such a long time may be due to some network speed problem or due to some other jobs alreay running in the system which would be occupying all the work processes which are available in the system. If possible try to find the job which has taken more that 65 thousand seconds, kill that job and then refresh after 5-10 mins to see the status of your job.
Hope it helps.
Thanks,
Jayant
Maybe you are looking for
-
Hi, I am trying to write a script where by a user will be prompted to enter a new value each time it loops. So far, the script only prompts me once and the it keeps using the same value over and over again instead of prompting me to insert new value.
-
Application Server Agnostic Project
I am just starting out building applications to run on J2EE servers and before I get to deep wanted to know how to go about developing an application that could be deployed on JBoss, Weblogic, Websphere, etc without making code changes. I have not se
-
HTTP Handler strange behavior when updating HR data
Hi there, Brief summary: Executing a function module from inside a HTTP Handler gives a different result than executing the function module direcly through SE37. The user defined for the SICF service calling the Handler is the same as the one we use
-
Can anyone help, I switched of so that images only mount in a finder window but not on my desktop. Can anyone tell me how to make images appear back on my ddesktop, say when I insert a cd. Thanks Paul
-
How can you change the language in Photoshop [Danish to English] ?
How can you change the language in Photoshop [Danish to English]?