Function module needed to schedule a report to run in background.
Hi,
I am in need of a basis fm ro schedule a report to run in the background.
There exists a function group BTCH with fm MINI_JOB_WIZARD which is what I need.The problem is that all the import parameters is mandatory
IN_JOBNAME
IN_REPVARNT
IN_REPORT
The problem with the above fm is that it requires a report variant which my report doesnt have since my report has no selection screens.
Can you please suggest me any alternative fms which does the above wizard like stuff without the annoyance of supplying a variant .
Thanks
Try to use the standard FM for submit of jobs :
- [JOB_OPEN: Create a Background Processing Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm]
- [GET_PRINT_PARAMETERS|http://help.sap.com/saphelp_40b/helpdata/pt/9f/dba5d535c111d1829f0000e829fbfe/content.htm] for ... print parameters.
- [JOB_SUBMIT, ABAP SUBMIT: Add a Job Step to a Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm] - Use the FM if you have a variant (or call an external program), else use a ABAP [SUBMIT |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm] [selscreen_parameters|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] [job_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm] [spool_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm], you can pass parameters with the [WITH expr_syntax1 WITH expr_syntax2 ... |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#&ABAP_ADDITION_4@4@] option.
- [JOB_CLOSE: Pass a Job to the Background Processing System|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096eff543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond
Similar Messages
-
Schedule a report to run in background
Hi all,
I have a report that has a selection screen .
When i schedule this report as a background job , it is cancelled : "cannot perform frontend function in batch input mode " ??
I created a variant and in the job step specified the variant name ...!! would appreciate if anyone can tell how to schedule the report to run as background job ?Hi,
Ok in this case there can be too options.
1) either take file from the shared network and put it in your presentation server and then take it into application server ( this is manual by using CG3z)and then execute your program in background
2) or you will have to code using FTP commands
First connect using FM FTP_COMMAND. you will ahve to use commands like mget etc
Once connected then pass command using FM
FTP_COMMAND
Then get the files Data into Internal table via FTP server which can be done using
FM FTP_SERVER_TO_R3
once done use the back ground processing
Make sure that there is R/3 connection mainained using SM59. -
Ability to schedule a report to run in background but No access to transact
Hi,
I want to give users ability to schedule a report to run in background but No access to transaction Sm37.
What can be the process/steps to work and morever if we do this is there any disadvantages that users
can face later...
<removed_by_moderator>
Thanks,
Barada
Edited by: Julius Bussche on Jan 28, 2009 1:12 PMSorry, I misread your question - thinking that the report should only be run in the background.
I agree with the others (also about SMX and SMXX to display their own jobs, but not change them afterwards), but which report (tree) is this?
You can still give the user an ability to maintain a variant via transaction VARCH though (no execute possibility) . It will check S_PROGRAM p_action VARIANT or look for a user specific protection flag.
But then the user can submit it online as well from other transactions. That is why I thought you were looking for a way to run it as low priority in the background only.
Cheers,
Julius -
Scheduling a report to run in background
Hi,
I have few queries and is it possible to execute them with the help of a background job that would fecilitate in executing the query automatically???
Thanks & Regards.Hi,
You can do that using information broadcasting.
Check the thread below for the same. Also if you search the forum you'll get a lot of good material on the same.
Cheers,
Kedar -
Schedule my report to run after every hour
Hi All,
Can someone please tell me how can I schedule my report to run after every 1 hour so that the dashbaord performance increases.I have started the scheduler service .
Thanks a lot for your helpHi,
create an ibot for the report.
first configure the BI delivers, you can find the steps here,
http://oraclebizint.wordpress.com/2007/09/13/oracle-bi-ee-10133-configuring-delivers-ibots/
sorry. as you have already started the scheduler service you don need to go thru the above link.
thanks,
karthick
Edited by: kart on May 24, 2010 12:44 PM -
Error with Scheduling a Report to run in SSRS 2000
Getting the below error when trying to schedule the report to run.
I can run the report just fine as a stand-alone and not thru the scheduler.
I have several others that run just fine in the same way.
ReportingServicesService!processing!5d4!8/24/2010-01:15:02:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'DataSource1'., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'DataSource1'. ---> System.Data.Odbc.OdbcException: ERROR [01004] [AcuCorp, Inc.][AcuODBC Driver][ISAM]Unable to open xfd file
at System.Data.Odbc.OdbcConnection.HandleError(HandleRef hrHandle, SQL_HANDLE hType, RETCODE retcode)
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method)
at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Odbc.OdbcCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.ReportingServices.DataExtensions.CommandWrapper.ExecuteReader(CommandBehavior behavior)
at Microsoft.ReportingServices.ReportProcessing.a1.v()
--- End of inner exception stack trace ---Hi Brian,
Looking at the error, the server is not able to get to the data source. If you are using ODBC, make sure the server machine has access to the file.
The exception is coming from your ODBC driver.
ERROR [01004] [AcuCorp, Inc.][AcuODBC Driver][ISAM]Unable to open xfd file
Brad Syputa, Microsoft Reporting Services This posting is provided "AS IS" with no warranties. -
Can we schedule FSG reports to run automatically?
Hi Friends,
I am wondering whether we can schedule FSG report to run automatically as standard reports. Thanks.Have a look at the Note:144838.1
Regards
Prashant Pathak -
Can we schedule a report to run in foreground daily
Hi,
I want to run a report in foreground daily.I know this can be done in background but i want to schedule in foreground. Can we schedule a report for running on daily basis. I am getting a dump if i do this in background job.Plz reply me.
regards,
KumarHi !
In theory you could try the following:
- Installa a Windows scheduling software such as
http://www.databecker.de/pc_zeitschaltuhr.html
on a specific PC
- Try to create a frontend-schedule to start SAP_GUI
(i.e. via shortcut with USER/PWD set) and execute the
report.
That may work.
There is a 10-Day trial-download of
http://www.databecker.de/pc_zeitschaltuhr.html
so you yould just try it.
Th site is in german so you may "Google-translate" it.
Regards
Rainer
Some points would be fine if that helped... -
Function module needed to read all the BOM statuses
Dear Friends,
In a report we are using CS_BOM_EXPL_MAT_V2 function module to get the dispaly the BOMs. But it is displaying only the BOMs which are in Active stauts e.g 1 & 3.
My requirement is needs to read both active and inactive BOMs. Inactive BOM status is 2.
suggest me if there is any another FM or any another way to get all the BOM status materials.
Thanks for your help.
Srinivas.You need to supply another application for alternative determination (field CAPID). It should be possible to customize one for your needs using "Define Order of Priority for BOM Usages" and "Define Applications" under "Production->Basic Data->Bill of Material->Alternative Determination"
Edited by: Carsten Grafflage on Aug 5, 2010 1:44 PM: Corrected one string from customizing - sorry. -
Executing a BDC Session using a Function Module from a Custom Z-Report
Hello,
I have a requirement where I need to Create a BDC Session for the given Transaction Code. But instead of executing the Session from SM35 manually, I need to Execute the Session Immediately from my Custom Z-Report itself.
Is there any Function Module for this Activity? Please let me know.
Thanks and Regards,
Venkata Phani Prasad K1) fm job_open
2) submit report
3) fm job_close
4) finally select table TBTCO
example:
DATA: jobcount_test LIKE tbtcjob-jobcount,
job_released LIKE btch0000-char1,
rcode(2),
strtimmed LIKE btch0000-char1 VALUE 'X'.
DATA jobname LIKE tbtcjob-jobname.
CONCATENATE 'TEST_' sy-repid '_' sy-datum INTO jobname.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount_test
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.
ELSE.
*--Step insert
SUBMIT rsbdcsub
USER sy-uname VIA JOB jobname NUMBER jobcount_test
WITH mappe = map
WITH von = pdatum
WITH z_verarb = 'X'
AND RETURN .
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount_test
jobname = jobname
strtimmed = strtimmed
targetsystem = sy-host
IMPORTING
job_was_released = job_released
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.
IF sy-subrc > 1.
MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.
ENDIF.
ENDIF. -
Function Module to Release Scheduled Jobs
Dear All,
I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
Regards,
kartikDear Mr. Parupalli,
That solved my problem. Thank you.
Regards,
kartik -
Functional Module:Need some sample source code.
Hi All,
I have created a customized table u2018ZStock_Order_Dealeru2019 with the following fields:
Stock_Order_Dealer
Dealer Number
S2D order Number
Line item Number
Material Number
Ordered Quantity
Batch Number
Received Quantity
S2D from D2G
Receiving Date
I need to create a remote enabled function module in CRM system to fetch the u2018Batch Numberu2019 and u2018Received Quantityu2019 fields when the Material Number is fed to it.Please note that the input and output should be tables.
Could some one please give some sample source code for this.I used table types and select queries to resolve this problem.
-
Calculation of Absence days --Function module needed
Hi,
I am developing one report that is for Annual increment/ Promotional increment. We are evaluating the data based on the annual / Promotional period on Selection-screen.
There is one record in the IT2001 with begin date 26.01.2008 end date 25.07.2008 for the absence type 0620(Unpaid leave). But our Annual/Promotional period is 01.04.2007 to 31.03.2008. I want to calculate absence days for the above record from 26.01.2008 to 31.03.2008.
Please let me know any function module which gives me exact absence days.
Regards,
Venkat.OHi,
Here is one BAPI....it may help u....
ABSENCETYPES_GETLIST
Reward if it helps u...
Thanx
Seevangi -
RFC Function module needed for getting table details in APO from R/3
Hi,
I need a RFC function module where I can write a query from R/3 to access APO server database table and get the necessary records.
Regards
MacPossible ways
1. Call fm RFC_READ_TABLE and give destination and table name ( But i am not sure how it will work SCIF enviornment of APO)
or
2. Create a custom function module in APO side and call from R/3 side using destnation option
a® -
Function module to list out a report's input/output parameters
Hi experts,
I'd like to know if there is a function module which can list out all the input and output parameters (variables, tables, etc.) by giving the report name as input.
If not, please suggest a way to find out the input/output parameters.
Regards,
AncyWell, they're not input/output parameters, and really you shouldn't refer to them as such. A variable is simple what it says - a variable. You could, I suppose, refer to data sources. But then, the report could be getting data from a set of function modules.
So my assumption is correct, you are talking about a where-used list.
>Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
matt
Maybe you are looking for
-
Problem writing a sql query for a select list based on a static LOV
Hi, I have the following table... VALIDATIONS ID Number (PK) APP_ID Number REQUESTED Date APPROVED Date VALID_TIL Date DEPT_ID Number (FK) I have a search form with the following
-
How do I add adobe reader to my printer so I can print a pdf?
How do I add adobe reader to my printer so I can print a pdf?
-
EPS to PDF: Smooth Shades, Bug in Acrobat?
Hello! I encountered a really weird feature/bug in Acrobat. I have a very simple EPS file which draws 2 x 5 = 10 adjacing black squares. (EPS file below and attached) When I drag it into Acrobat 8.1.5 and save it as PDF, and then try to open this PDF
-
How can I allow the application to line through a field that has been locked after being digitally signed? We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. o
-
Hello world, am I the only one with this problem? I just purchased and installed Tiger 10.4.3. (Yes, I'm an idiot.) Well, Final Cut Express 2.0.3 -- which ran so well with Panther -- is now useless with Tiger. I also just downloaded and installed the