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
Similar Messages
-
What is the back ground job when we run an Attribute Change run ?
Dear One´s,
What is the back ground job when we run an Attribute Change run ?
Thanks in advance,
RajHi Raj,
1. If the attribute change run is triggered through process chain the job name is 'BI_PROCESS_ATTRIBCHAN'
2. If the change run is triggered from RSA1> tools?Appl Heirarchy/Attribute changerun then the job name starts with BI_STRU*
3. If you trigger the program RSDDS_AGGREGATES_MAINTAIN from SE38 then the job name will be RSDDS_AGGREGATES_MAINTAIN
Hope this helps... -
Output should be in Text format from Back ground job
Hi friends,
I have scheduleda back ground job. In the receipent i ahve put my user mail ID. when the job was finished the output came as HTML file. where as my user wants a Text file or excel file.
We are in ECC 5.0 and i am just scheduling standard ABAP program( costing run
Is it possible , if yes then, please let me know where to change the setting.
Cheers
PKHi,
I tried the same , it did not work for me. But when i contacted my Basis Guy through SCOT he changed. Now the text file has started coming.
But now next problem is my spool request is of 215 pages but system is sending the text file for only first 10 pages..
I have changed the setting for display from 10 pages 215 pages . and belwo even changed the seeting to permanenet between logons..Still system did not send the file to email Id.
can you help mein this regards
cheers
PK -
The back ground job gets cancelled which feds the delta queue?
Hi all,
I can see the delta is empty for the 2lis_11_vahdr ( sales order header datasource) when i happened to check the background job name which feds the delta queue, all the background job gets failed for the same!!
Can anyone let me know what needs to be carried out ?
Thankshi,
when i happened to check the logs for that back ground job i got the below message
Extraction queue processing started MCEX11 with 54,331 LUWs
ABAP/4 processor: CALL_FUNCTION_NOT_FOUND''
Thanks -
Back Ground Job Scheduling SM36
Hello Experts
I have Created Variants for Reports and trying to schedule a back ground job based on the Variants.
for 1 Report KOK5 The Program is SAPMKAUF of Type M. I get a Message i cant schedule a Job for Program Type Other Than 1 or J. how Can i solve this Problem.
I want the output in excel on schedule basis
am new to SAP
Thanks in Advance
SandeepHi Sandeep,
You will need to wrap that module pool program using a Transaction code then create BDC, and execute this BDC coding in a report program.
how to create background job please see the link : Scheduling Background Jobs (SAP Library - Configuration (New Technology))
Reward if helpful
Thanks -
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. -
Submit Back ground job with error log
Hi Gurus
Can anyone help with Back ground job with error log. i want put all the error logs in to 1 internal table and submit the back ground .how can i do that .please help meHi reddy ,
i am not experienced this in real scenarion .. even though i would like to give my idea
Put your logic inside the FM and execute in in background task mode on your action button .
call function 'Function module name' in background task
exporting
parameter =
importing
ret =
refer the below link for more detail on executing FM as background task
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
Regards
Chinnaiya P -
How to download the application file to local file by back ground job?
hi:
can any one tell me how to download the application file to local file by back ground job? thanks in advance..
MonsonHi,
In order to download a file from application layer to a local file in background,
first write a report(ZREPORT1) in which do the following steps:
OPEN DATASET g_file_1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
loop the g_file and append all the data into another internal table.
end of this report you shd have all the data in the application layer file into your internal table.
Now create another report(ZREPORT2) and submit this report in background.
that is,
JOB_OPEN
JOB_SUBMIT and
JOB_CLOSE
and in job_submit submit ZREPORT1 which downloads the file in application layer.
Please reward points if helpful.
Regards,
Arul. -
Hi,
My report program was executing successfully in the Foreground but not in the back ground.. Can any one help me on this?
My report program has a selection screen..I entered the data for it at and through menu option Program->execute in background..I executed it..As it asked for output device i gave LP01 and No of copies to 1. and checked Radio button Print all. and clicked ok.
It asked me for start time and i selected Immediate and clicked on save.
It gave a status message "Back ground Job Scheduled".
Now when i look through SM37 under my name the job is always active and Never finished.
Can any one help me on this?
Thank in advance..Just check whether the job is running in the background or not
Double Click on the job name and take the Server & Process Id.
Go back to the SM37 Screen.
Click on Application Servers or directly Open the transaction SM51.
Select the Server and find the process Id with the help of the things you found already
Now, you can see the database level.
Check if the values or moving or not. This way you could track the details
If not, Ask BASIS guys to check whether the job is reading from rollback or not.
If it is, cancel and rerun the job...or else..leave the job..it will finish off in some time.
Hope everything is clear -
Back ground job to download data into excel in the given path on sel-screen
Hi Friends,
I have 2 radion buttons on the selection screen 1. Online 2. Back ground.
If i select the back ground radion button all program should run in back ground only, and finally the data should be downloaded to excel file on the given path in selection screen.
Does any one have code for this.
Thanks in advance
Ajay
Edited by: Ajay kumar on Aug 30, 2010 11:03 AMHi Ajay,
try this way..
If sy-batch = 'X' . "background Job
* Submit report in background and creating spool
SUBMIT (w_rname) USING SELECTION-SET p_var
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS wa_pri_params AND RETURN.
COMMIT WORK AND WAIT.
* To fetch the spool number from TSP01 table
IF sy-subrc EQ 0.
SELECT rqident
FROM tsp01
INTO p_spool
* UP TO 1 ROWS
WHERE rq2name = wa_pri_params-plist.
ENDSELECT.
ENDIF.
ENDIF.
* Fetching Spool data into internal table
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = p_spool
TABLES
buffer = t_Excel_data.
"Now format the Data into excel format or Comma seperated format and download to Appl server.
Prabhudas -
Back Ground Job- Lay out settings
Hi Frnds,
We will be executing some big reports in the Back ground , now before executing the report i have to select the Lay out , is there any option for this .??
And when i execute the report in back ground i get the data Page wise , but when i execute the report in foreground , i get the report continuous in one page .
Is there any option of getting that report continuously in one page when i execute in back ground ??
Regards
RakeshHi Rakesh
Output of background program are totally based on Printer settings you have selected.
Take help of your BASIS team to configure a new printer specially for background job, which can display full report in one page.
Basis team is only responsible for it.
try and revert -
FIREFIIGHTER Back Ground Job !
I am on FF 3.0 CC 4.0
On I run the FF Log, I am told that the File is not genereated as the Back Ground Job is not scheduled.
Which is th e back ground Job needed to get these reports ?
ThanksWhat i guess from your query is:
1) Probably there is no activity by firefighter users or you need to schedule background job on hourly basis, the general practice is every 2 hours.
2) You can use any id with super administrator previledges to schedule background jobs.
Hey, I just wanted to ask you, does your firefighter controllers getting logs attached to e-mails and is the format of log report seems fine to you?
just confirm, cause there are two notes required to be applied in sequence.
1) 1046405
2) 1053315
Also it would be great, if you upgrade your GRC FF, CC solutions. I was in college when these products were rolling in the market and I never had the honor to experiment.
Best Regards,
Amol Bharti -
RMCB0300 is not working in back ground job
Hi
I call t-code MC.9 program (RMCB0300) in back ground by using sample code given below.
SUBMIT RMCB0300 WITH SL_WERKS-LOW = u2018ABCDu2019
WITH SL_LGORT = 'W001'
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 4
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF.
The 'LIST_FROM_MEMORYu2019 is getting correct output in four ground but
not in back ground job.
Kindly help.When you use 'LIST_FROM_MEMORY' it basically imports the memory id '%_LIST'.
When running MC.9 in foreground the memory id '%_LIST' is saved (you can check in debugging) but in background the memory id is not saved
This is why you are not getting the data correctly in background.
BR,
Suhas -
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 All,
I need to schedule a daily background job for MB52 transaction and need to save the output of MB52 in a specified directory .
Can any one tell me whether it is possible to save back ground job output in specified directory?
Thanks & Regards
k.NirmalaHi Nirmala,
Set up variant at MB52 transaction and use SM37 and Sm36 transaction to schedule job.
Define job at Sm36 and use program - RM07MLBS and use your variant.
schedule job and set up time and date for periodcally.
and it will run and you can see the status at SM37 Transaction .
the background job will create spool and which will contain your output.
if you want to download your output ,then you need to write custom program to get spool information from TSP01 table and use open dataset command to down load specifi directory.
Reward Points if it is helpful
Thanks
Seshu
Maybe you are looking for
-
Code for Connection to SAP R/3 and acess data from it
Hi all, I am new to this java field.Here i have a swing application with 2 input fields.Upon entering the values of 2 inputfields followd by submit button ,a connection to the backend SAP has to be created and the 2 input values has to be given as in
-
I just traded up for the new Iphone 5c. Trying to sync my old info and apps onto my new phone, but it says I need the new version of Itunes... I downloaded it, but my itunes is still the old version and it wont accept my phone. WHAT DO I DO?? Do I
-
Problem launching ODI Data Quality/Profiling in Vista
Hello I am having a weird problem with Oracle Data Integrator installation in Vista. Hope somebody could help me. I have installed ODI (10.1.3.5.0) along with Data Quality and Profiling. The installation was successful, however, while trying to launc
-
SD scenario (collect few sale order into one delivery or TO)
Hi! I am looking for following SD scenario. customer send as few orders order-1 material-1 quantity-10 input date 01.12.2009 req delivery date 20.12.2009 order-2 material-1 quantity-15 input date 03.12.2009 req delivery date 20.12.2009 order-3 mate
-
He got the laptop....I need help!
Hi all, My recent split with my bf meant that he got the laptop, which had my itunes and my music on there. I have my ipod but would like to add/remove music when I like with my new laptop, however I have been told that because my ipod is registered