Submit report background ------ problem
Hi Friends,
This is regarding submit program in background.
I am calling program like this..
SUBMIT ZXXXX
VIA JOB name NUMBER number
WITH P_MODE EQ 'N'
TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
AND RETURN.
With this Job is creating successfully and status showing finished. But it seems program was not executed. no action has performed. time taken is 0 seconds
the same code I tested in debug mode by commenting
* VIA JOB name NUMBER number
in the above statement.
it is working fine. could you pls help me I want submit my program in background.
for your information. Before submit I am using function module JOB_OPEN.
and after submit I am using JOB_CLOSE.
Pls help me. very urgent.
Thanks in advance.
Raghunath
You can check the job status in SM37. Here is a working example, see what's different in your code:
CONCATENATE 'Z' p_vkorg '_POST_RETURNS' INTO jobname.
CLEAR jobcount.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount.
IF sy-subrc <> 0.
ENDIF.
SUBMIT ...
WITH p...
VIA JOB jobname
NUMBER jobcount
USER user_name
AND RETURN.
* Close the job and run immediately
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount
jobname = jobname
strtimmed = 'X'. " Start immediately
Similar Messages
-
Submit Report (Regarding Background Processing)
Hi Guru's,
I want help regarding Background Processing.
I have developed a program which is running fine in forground but in Background mode no values are comming.
All values are becomig Zero.
Plz help.
*--- Submit Report for 'COGI' (Postprocessing of Error Records from Automatic Goods Movements)
SUBMIT coruaffw USING SELECTION-SCREEN '1000'
WITH r_cumul = 'X'
EXPORTING LIST TO MEMORY
AND RETURN.
*---- Get the List
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = it_list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
*--- Convert to Ascii
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listobject = it_list_tab
listasci = it_asci_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE i000 WITH 'Problem in converting LIST to ASCII'.
ENDIF.
DESCRIBE TABLE it_asci_tab LINES w_cogi.
w_cogi = w_cogi - 5.
CALL FUNCTION 'LIST_FREE_MEMORY'
TABLES
listobject = it_list_tab.Hi Arbind,
You have used return you need to add the addition with.Try this way hope it works
SUBMIT zreport EXPORTING LIST TO MEMORY
AND RETURN
WITH P_1 = P_1
WITH P_2 = P_2
WITH P_3 = P_3
WITH S_4 IN S_4
WITH S_5 IN S_5
WITH S_6 IN S_6. -
Will SUBMIT report EXPORTING LIST TO MEMORY work, when Run in Background?
You can use SUBMIT <report> EXPORTING LIST TO MEMORY, and then Call the FM LIST_FROM_MEMORY to get the Data.
This works fine, when the Program is Run in Foreground. My question is, will it work when I Run the Program in Background? i.e. When I Run the Program in Background, will the SUBMIT Statement, Export the List to Memory? Because only then the FM LIST_FROM_MEMORY will get the Data.
Any alternate solution to meet the same requirement will be appreciated.It works for me... my spool output looked like:
11.01.2008 JC: Calling program - test list to memory 1
ZLOCAL_JC_SDN_CALLING_PROGRAM started at 12:54:29
ZLOCAL_JC_SDN_CALLING_PROGRAM call complete 12:54:30
ZLOCAL_JC_SDN_CALLING_PROGRAM started at 12:54:30
11.01.2008 JC: Called program - testing list to memory
ZLOCAL_JC_SDN_CALLED_PROGRAM was called at: 12:54:29
for the following code:
report zlocal_jc_sdn_calling_program.
parameters:
p_start(1) type c.
start-of-selection.
perform testcase.
*& Form testcase
form testcase.
data:
lt_list type table of abaplist.
write: / sy-repid, 'started at', sy-uzeit.
submit zlocal_jc_sdn_called_program
exporting list to memory
and return.
write: / sy-repid, 'call complete', sy-uzeit.
call function 'LIST_FROM_MEMORY'
tables
listobject = lt_list.
write: / sy-repid, 'started at', sy-uzeit.
call function 'WRITE_LIST'
tables
listobject = lt_list.
endform. "testcase
and
report zlocal_jc_sdn_called_program.
start-of-selection.
write: / sy-repid, 'was called at:', sy-uzeit. -
Problem with submit report for transaction LT23
Hi,
I want to submit report for transaction LT23 based on the double click on a field in the output of my report. I am using selection table to pass values. The problem is I have something called dynamic selections. I am using some selection fields from the dynamic selection option. Can anyone tell me how do I pass the values in such a case?In your [submit|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] statement in the [selection screen parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] use the [WITH FREE SELECTIONS|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] option to pass dynamic selections
NB: Use FREE_SELECTIONS_RANGE_2_EX to build the correct parameter texpr.
Regards
Raymond -
Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a refund?
Try going to https://expresslane.apple.com ; select 'All Products and Services' in the first column, 'iTunes' in the second column and then 'iTunes Store' in the third column.
-
Problem in closing report background engine
iam working with forms6i,i have invoked a report using
run_product.report background is not closing even when i
close the forms.Could anyone say me how to shutdown the
reportbackground engine automatically.Hi,
Just add the parameter
add_parameter(plid, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'YES');
HTH,
Boris -
Is there any program to submit in background, ALV report?
I tried in job_open and job_close, but nto worked out.Hi,
You need to use the following function modules:
- JOB_CREATE - create the job
- JOB_SUBMIT - add a step in the job
- JOB_CLOSE - to pass the job to the background processing subsystem
Alternatively, you can use SUBMIT... VIA JOB, which is easier but gives you less control.
MJ -
Closing Reports Background Engine from VB
I have a Visual Basic 6 application that runs Reports 6 reports with the ActiveX control Rwsxa60.ocx. When you close the application, the Reports background engine is still open. Is there a way to close the engine through VB? Thanks in advance for any suggestions.
you can not close the RBE from reports as it would require a report to be executed ... i guess you get the problem.
the only way to close the RBE is from forms.
thanks,
ph. -
How to close "Reports Background Engine" automatically
Dear Sir,
I wanna close "Report Background Engine" automatically after closing the report.
I tried to add the following parameter to close it in the caller form, but it didn't work:
add_parameter(p1, 'oracle_shutdown', TEXT_PARAMETER, 'Yes') ;
Waitting for Help!Hi,
I think the problem might be with oracle_shutdown being in small case letters or you are using a version of forms6 or 6i that this line doesn't work due to a bug via Oracle in the engine ..
Here is my line to shut down the report background engine.
Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
Thanks
Mary Santry -
Close Reports Background Engine from reports
Hi,
I have a report that calls another report via SRW.run_report. Qhen the other report is called, Reports Background Engine opens and stays open, even after closing the called report.
How to programmatically close Reports Background Engine when closing the report. I have read on the forum some procedure to close it from "Forms", but not from report.
Thank you,
Jyou can not close the RBE from reports as it would require a report to be executed ... i guess you get the problem.
the only way to close the RBE is from forms.
thanks,
ph. -
Report Background Engine Taking long time to open
I am seeing this problem. When I run a report (in forms 6i), I get a "FRM-41211: Integration error: SSL failure running another product". The Report background engine doesn't come up right away... looking at the system process the RBE starts using almost 50% of the CPU and takes about 10 min to come up. If I run it on my local machine, just running the executable (c:\oracle6i\bin\RWRBE60.EXE) it comes up right away... on this users it doesn't. We think it may be something blocking it... anyon ehave any suggestions?
Thanks,
ScottHello
I recently had that same problem with FRM-41211 error. It turned out eventually that the culprit was newly installed HP Deskjet printer on that employees computer. When I removed the printer and uninstalled its driver reports started to work normally. Hope that helps. -
Skip Error message in submit report
Hello Gurus,
I am using SUBMIT <REPORT> command inside a loop of my calling report. For one record the SUBMIT <report> is throwing an eror message due to which my report is getting stopped by displaying the error message.
My requirement is to skip the record if there is any error in SUBMIT <report> and process rest of the records.
Please help me out.Hi,
Vasanth's idea regarding doing a CALL FUNCTION IN BACKGRUOND TASK does work, unless you need to get back some information from the SUBMIT, as export parameters can't be set when using IN BACKGRUOND TASK.
As i need to get data from the SUBMIT, i'll keep looking for other alternatives, so other ideas are still welcome...
Regards,
mr.
Hi Manuel,
Try calling report in background task like below:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = c_name "this name can be any name defined in constants(you do not have to create a job name anywhere in system or SM36)
IMPORTING
jobcount = w_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
*" Job opened successfully
IF sy-subrc EQ c_0.
*" Call program to process IDoc
SUBMIT ZSubmit WITH <any value> " e.g. p_field1 EQ <value>
VIA JOB c_name NUMBER w_number
AND RETURN.
[Note: In ZSubmit report you can send the data to calling program through ABAP memory i.e. Use EXPORT parameter to export data
Ex: constants: c_memory(7) type c value 'MEMORY1'.
At the end of ZSubmit report, before returning to the calling program write below statement:
EXPORT i_message TO MEMORY ID c_memory1.]
*" Successful processing of IDoc
IF sy-subrc EQ c_0.
"Here you can import data from ZSubmit report
import i_message from memory id c_memory1.
After retrieving the data, free the memory otherwise it will affect the performance of your report:
Free memory id c_memory1.
*" Close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = w_number
jobname = c_name
strtimmed = c_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.
ENDIF.
ENDIF.
Hope this helps!
Regards,
Saba -
JOB_OPEN, SUBMIT REPORT VIA JOB, JOB_CLOSE, How to get result?
Hi Friends,
I am calling reports using jobs as calling job_open, submit report via job.., and job_close. But I want to the output/result of the report. How can I do this?
Thanks.Hello nkara,
Welcome to SDN!!!
Check this thread:
background grid
REgards,
Vasanth -
Submit report using selection table not working in OO CL_SALV classes
I have used CL_SALV classes in my report. now the problem is submit report is not working. any suggestions.
It works in REUSE_ALV FMStill i m facing the same problem
-
Report Background Engine Crashes
I have a problem with Report Background Engine. When I try running a report through forms, the Report Background Engine and the Forms Runtime hangs. And If I End Task the Forms Runtime, the forms runtime closes and the background engine shows the report properly. Now I am not able to run reports properly from the Forms.
In my coding I use RUN_PRODUCT for calling the report from the forms. The O/s is Windows 98.
Please provide me with a solution asap.Please apply latest 6i patchset and try. (Yours is very old. Latest is 6.0.8.0.24. So many bug fixes have gone in since your patchset)
Maybe you are looking for
-
Why can't I use the word "faces" in my url-mapping?
I am trying to get a servlet to work for the url /faces/inloggen but I cannot get it to work. Anything without the word faces in it will work. I simply want this tag to work: <servlet-mapping> <servlet-name>LoginServlet</servlet-name>
-
The IDOC INBOUND function is locking an object
Hi , I have created a wrapper bapi around IDOC_INPUT_SHPMNT , this is because i need to change the shipment using a BDC. No the problem is that once the control comes out of IDOC_INPUT_SHPMNT the locks are still maintained on the shipment.Now
-
Reader 9 uninstallation nightmare - want to clean up all Adobe files
I have such a mess going on on my computer. It all started when I downloaded and installed Reader v9....with no problems. I then noticed that previous Reader version v8 was not uninstalled, so I tried to uninstall v9 with Windows uninstall feature (c
-
Changing defaults on the adjustment palette
Unfortunately I took a series of photos with a soft focus lens and I'm having to go in and sharpen each one. However I'm getting tired of having to select sharpen from the adjustment palette menu each time. Is there a way to default this to on?
-
About Recovery ....plz help
i am having a confusion about recovery....when i try to make recovery it says that "the pc will be set to factory state"...........it means does the recovery formates only C drive data or the entire drives data. This question was solved. View Solutio