Back Ground Execution
Hi,
I have created a report program.when i execute in Background it is failing since i have raised error message in case of no o/p.My requirement is to show error message when i execute in forground and it shld also complete it's background execution.
regards,
raghav
In foreground your report still executed after the error message..?
I am not sure.., if it is error message then it stops executing the program. the same applies to Background also. if you want to continue in background execution then you may have to use sy-batch
if sy-batch = 'X'.
message information
else.
message error.
endif.
Similar Messages
-
How to suppress the back-ground execution of a query in design mode
hi guys,
there is a bahaviour of the system, that I'd like to change. So, when we
1. start EXCEL
2. go to the designer mode to create a report
3. first drop an InfoProvider (e query) into a cell,
4. second - pull e.g a filter element into another cell, still being in the design mode.
Just in this moment, the query itself has been already started in the back groud, aiming to fill the cache, I guess.
Does anyone know how to suppress the back-ground execution? I'd like to control, when to start the reports execution.
Thanks in advance.
NevenHello,
There is no way to do that if you are creating thru BEx Analyzer.
Instead use the BEx Analyzer, try to create using directly BEx Query Designer.
In that way, the query will not be executed, until you want to...
Thank you
Edward John -
Avoid page break in back ground execution of report
Hi Friends,
Normally when we execute any report in back ground it will have page break. eg: FL3N
But we dont see this in foreground execution of a report.
may i know how to avoid this page break when we execute in background.
Thanks in advance
NNSHi Badari,
when you set the Background Job via <b>SM36</b>, you can mention the Variant. and set the time , so that the report will run for every 5 minutes with the mentioned variant. Check it.
Regards
Vijay -
Back ground execution of t.code with variant !!
Hi Team,
I need excute the Z transaction code ( which is assigned to to stnadard program).
How can i execute this transaction in back ground with the given specified variant. (program should be executed for every 5 mts).
Regards
Badari TalankiHi Badari,
when you set the Background Job via <b>SM36</b>, you can mention the Variant. and set the time , so that the report will run for every 5 minutes with the mentioned variant. Check it.
Regards
Vijay -
PSJ LDB in back ground execution
Hi experts,
i am using zprogram which uses a submit and return statement and calls PSJ LDB in the called program.
The zprogram works fine in foreground but i when i schedule it in background i am getting the below error..
"Fill in all required entry fields" and job got cancled.
My question is can we use the PSJ LDB in background execution?
Regards
ramHi Badari,
when you set the Background Job via <b>SM36</b>, you can mention the Variant. and set the time , so that the report will run for every 5 minutes with the mentioned variant. Check it.
Regards
Vijay -
Function Module to find the Last Execution date of Back ground Job
Hi,
Is there any function module to find the <b>last execution date of back ground job</b>.
So that I can transfer the data from SAP to Legacy system based on the document creation date should be in between last execution date and current date.
thanks in advance.
Eswar.Don't know of a function module, but you should be able to use the information in table TBTCO to get the last start date and time of the job you are interested in.
-
Any restictions on back ground job when submit the session?
Hello friends
below is my code part. problem is when i execute this program in back ground the data is not picking from APQI. but in fore ground it is picking . for this SESSION submission in back ground am i missing any thing here. please suggest me , any restiction is their in back ground? if possible please send a sample code to submit SESSION automatically in background.
SUBMIT rsbdcsub AND RETURN
USER sy-uname
WITH mappe = p_group
WITH von = sy-datum
WITH bis = sy-datum
WITH z_verarb = 'X' .
SELECT userid credate groupid qstate FROM apqi
INTO TABLE it_apqi
WHERE userid = sy-uname
AND credate = sy-datum
AND groupid = p_group
AND qstate = 'E'. "Only look for 'Error' status
DESCRIBE TABLE it_apqi[] LINES temp.Codes for Submitting the session through RSBDCSUB (via Job)...
" The function module JOB_OPEN is called to create the job.
call function 'JOB_OPEN'
exporting
delanfrep = 'X' "Delete job after execution
jobname = fv_jobname "Job name
importing
jobcount = fv_jobcount "Internally generated
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
if sy-subrc = 0.
submit rsbdcsub
with mappe = v_filec
with von = sy-datum "From
with bis = sy-datum "To
with z_verarb = 'X'
with fehler = ' '
with batchsys = space
with logall = ' '
via job fv_jobname
number fv_jobcount
and return.
call function 'JOB_CLOSE'
exporting
jobcount = fv_jobcount
jobname = fv_jobname
strtimmed = 'X'
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
others = 8.
Hope this helps!
Edited by: Vin on Jun 4, 2009 10:58 AM -
Max no of lines appear in the back ground job out put
Dear All,
Please help me to solve following query,
I am execution ME2N report in background. There are more then 100000 line item in the out put. However only 5000 line appear in the output of background job.
Is there any setting in sap, where i can change the max no of out put is more then 100000 in back ground job?
Your earlier answer should be highly appreciated?
Regds,
sp sahuClick on the settings button and choose the 'The last' radio button for dispaly area and put in 10 pages.
Sometimes just clicking on the Last page button on the Tool bar will do the trick -
Field missing when running the KSB1 transaction in Back ground
Hi,
With the help of Zreport am executing the KSB1 transaction in back ground and after execution of KSb1 am retrieving the report output and am displaying.
Issue is when am running Zreport in back ground the the output of KSB1 is giving the output by hiding the last column, where as am running Zreport in foreground the output of KSB1 giving the output with out hiding last field. Please guide me why the variance is coming in output when am running the Zreport in background........ and please advise me to rectify the problem....In background it cant be displayed if report width is more than 255 chars. Check line size.
Satya -
How To Finish a back ground task
Hi
I have created a back ground task which mark attendance of specific type in pa30 .what i do is created a bapi and submit that bdc report in it using call transaction. It is working fine . when i see in pa30 after its execution it is marking attendance but in log it shows that step is under process. how can i finish it so that workflow move to next step
Regards
AmmadHi,
when a background task is in process for a long time then probably the method raised a short-dump somewhere.
So investigate this first.
For continuing the flow manually you can use the technical workitem display in the workflow log, put it to change and manually complete that workitem.
Kind regards, Rob Dielemans -
How to debug the back ground job
Hi All,
I want to debug the program, but it is taking more time so iam running it in back ground, but i need to debug the program from some particular point....is there any other way to debug the program...
Means...to run the program in background upto particular point and later i need to run it in debug mode.
Please suggest.
Thanks & Regards,
HariHi,
You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to 'X'.
Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER
You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.
Hope this helps u.
Thanks. -
Hi,
I want to run ALV in back ground.
I have two check boxes in selection screen.
One is for back griund execution and another is for direct execution.
There will be data base updation if i run in back groud or direct execution.
So how can i run program in back ground if click the check box.
Rgds,
Sunil.KWhen you are running the program in background, the default value of the checkbox should be X or you should create a varaint by clicking the checkbox. Then you need to schedule a background job with that variant. Database updation will happoen even if you schedule it in background.
I hope it solves your problem, if not please revert.
Best Regards,
Vibha
*Please mark all the helpful answers -
How To Handle With Back Ground JOB From WEBUI When Click On "Appove"
Hi
How To Scheduled A Job Through ABAP Report In back end Of CRM when i click on "Approve" Button in WEBUI From result list.
As per My requirement I have a Search View and Result View
In Search View I have Below Fields
ITC Vendor ID
Claim Status
User status (date status changed)
Model
Serial Number
Date completed of Service Completion
Based on Search Criteria I will get Result In Result View.(Suppose 10 Records I got In Result View)
In the Result View I need to Add one Button As "Approve"
When i Click On Approve button One Pop up Message Need to Open And In that popup window I need to Display Below Text
"Approve Claim Job Has Started In Background
Note: Only Claims Which are in Submitted Status Will be Approved. you May Close This Window"
In SAP CRM System Back Ground Job Need To Start When Click On "Approve" Button In WEBUI .
In the Back Ground ABAP Report which will validate based on Result List Records"
In the Result List we may have all types of Claims which are status in "Submitted" "Pending" "Rejected" "Approve".
I need to collect all records from Result list and validate Those Records who's Status in "Submitted
1)Sort all the claims based on ITC Vendor ID.
2)Grouped all the submitted claims against each ITC Vendor ID from the search result
3)Change the status of the selected submitted claims to Approved.
4)Displays information messages as mentioned whenever a claim is approved, the same message will be captured in the job log.
‘Claims <ClaimID 1>,…<ClaimID N> now approved for ITC Vendor ID’.
5)Sending Email to each IRC.
6)Capture all the approved claims in the below format (Format Attached "Screen Shot Attachment")
7)Store the file in the Application Server AL11 in .csv format
Please Find Attachement For Reference.
1)ITC Claim Screen Shot
2)Screen Shot For Attachment
Thanks
RajHi,
You can add the following code in on approve method to show popup to the user,
IF req_edit IS NOT BOUND. " gloabl attribute in impl class of the view
REFRESH lt_buttons.
lss_button-id = 'btnyes'.
lss_button-text = 'YES'.
lss_button-on_click = 'YES'.
APPEND lss_button TO lt_buttons.
CLEAR lss_button.
lss_button-id = 'btnno'.
lss_button-text = 'NO'.
lss_button-on_click = 'NO'.
APPEND lss_button TO lt_buttons.
CLEAR lss_button.
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = 'ATTENTION'
iv_text = 'Are you sure you want to edit this document?'
iv_btncombination = '99'
iv_custombuttons = lt_buttons
RECEIVING
rv_result = req_edit.
req_edit->set_on_close_event( iv_event_name = 'EDIT' iv_view = me ). "#EC NOTEXT
req_edit->open( ).
RETURN.
ELSE.
lr_node ?= req_edit->get_context_node( 'OUTPUTNODE' ).
lv_outbound = lr_node->get_event_name( ).
* CLEAR ptc_pricing_status.
* lv_outbound = req_edit->get_fired_outbound_plug( ).
IF lv_outbound = 'YES'.
you can use the submit report code here and you can al the validations here
ELSE. " No
if user clicks no nothing to do..
ENDIF.
CLEAR req_edit.
ENDIF.
Best Regards,
Dharmakasi. -
How to find the back ground job details
Hi All,
I have a back ground job running from many days, now we would like to know when this job was created on what date this job actvlly created and schuduled.
Please informe me how to check this.
Thanks & Regards,
MuralikrishnaOn SM37 screen there is plenty of options are there:
This is what i got from SAP help
Explanation for each selection field:
o Jobname: Name of the job as an identifier.
o Username: Name of the user who designed and planned the job.
o Start date: The start condition of the job, which could be a time
frame or an event that the job is waiting for. Specifying both will
yield jobs whose starting condition is either of the two
conditions.
ABAP program step: Name of an ABAP program that acts as a step in a
job.
Status selection: The current status of the job. By default, the
SCHEDULED option is not marked. To see the scheduled jobs, you must
explicitly check this.
also give the proper values in Job Satus also. -
Hi Experts,
I want to execute a program in Back ground but my program has selectionscreen.
I don't want to Provide Variant for this screen that's why i am passing these values Thru INITILIZATION event.
But Background is not moving forward. It is waiting for I/p.
Can you please help me on this.
Thanks,
Murali Krishna KMurali,
For a program to be executed in background you need to create a variant and provide the variant name in the def. of the background job. giving the values at INITIALIZATION will NOT work.
On the second thought, you might have declared your parameters as OBLIGATORY. Take out that and make them optional. Now you schedule this in background without a variant and give the values in the INITILIZATION event.
Regards,
Ravi
Note : Please close the thread of the issue is resolved.
Message was edited by: Ravikumar Allampallam
Maybe you are looking for
-
Is there a way to change caption info from my iPad in Lightroom Mobile?
I want my client to be able to caption photos as I do the processing from my laptop. I want him to work from my iPad. Can this be done? I have the two devices synced. It seems to be working correctly. I just cant find the button to let me do the cap
-
Lion is very slow. The big problem now is when I need to make a copy of a file in an external HD. A file about 7 Gigas can take 4 hours!!! Using Aperture I try to save a library in an external HD (another) with function "export project as a library"
-
Web service call from pl/sql 10g
I am having problems in calling a web service from pl/sql. This is what I followed Here is my wsdl <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://svc" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="htt
-
File naming issue/workflow help needed...
I shoot weddings and am continually frustrated with A2's file naming. Any suggestions or help would be greatly appreciated as it's killing my workflow. THE GOOD: I import the images with the file name I want and the metadata I want. I then edit out,
-
I am having problems connecting to itunes. My DEP is closing itunes and i am unable to change the settings to allow my itunes to operate