How to schedule macros to open a report , refresh and update database?
Hi,
We have the below set of steps that work on a deski environment. It works fine on XI R3.1 Fix pack 1.5, but I am unable to schedule and get the macros to run although i've included the entire macros code in - Private Sub DocumentAfterRefresh()
Refresh of report
Step 1 : Report is Refreshed. Refreshed data contains 10 Report Names to be opened by the Macros and the prompt values that these reports need to be refreshed with.
Macros Functionality:
Step 1 : Opens 1st report of the 10 reports from the repository in deski thick client, updates the database by setting a flag on the processing to Y or N for the report being processed.
Step 2 : Refreshes the report with the prompt values obtained from the first refresh in the report, saves the refreshed data to a CSV or PDF at a location.
Step 3 : Updates the database if the report has been genrated or not and then deletes the local copy of the output csv and pdf.
The above steps repeat over and over again until all 10 reports open up, get refreshed and update the database.
Now all of this works on Deski thick client/refresh and macros.
However, when i schedule it, the macros doesnot seem to be running.
Is the above scenario even possible to replicate via a schedule process..?
Note : The reports need to be retained in Deski itself.
PLz help...!
Scheduling Background Jobs
Use
You can define and schedule background jobs in two ways from the Job Overview:
Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
Procedure
Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
Set the jobs priority, or "Job Class":
High priority: Class A
Medium priority: Class B
Low priority: Class C
In the Target server field, indicate whether to use system load balancing.
For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
To use a particular application server to run the job, enter a specific target server.
If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
Save the fully defined job to submit it to the background processing system.
When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
For a simple job scheduling procedure, see the R/3 Getting Started Guide.
Similar Messages
-
How to schedule another program by giving report name and variant name?
I want to create a program for Scheduling another program using function 'FASU_V_CREATE_VARIANT_RFC'
(FASU_V_CREATE_VARIANT_RFC : This function used for creating the variant ) by giving
1) Report name
2) varaint name
Could anybody please help me.??Scheduling Background Jobs
Use
You can define and schedule background jobs in two ways from the Job Overview:
Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
Procedure
Call Transaction SM36 or choose CCMS ® Jobs ® Definition .
Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
Set the jobs priority, or "Job Class":
High priority: Class A
Medium priority: Class B
Low priority: Class C
In the Target server field, indicate whether to use system load balancing.
For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
To use a particular application server to run the job, enter a specific target server.
If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
Save the fully defined job to submit it to the background processing system.
When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
For a simple job scheduling procedure, see the R/3 Getting Started Guide. -
Question on Installing Reporting Services and its Databases ReportServer and ReportServerTempDB
Is it possible to have the Reporting Services installed on one server\machine and the databases ReportServer and ReportServerTempDB on a different server\machine?
I have always installed both on the same machine but this architecture is being suggested.
I know that you can install the services without the databases on an instance but how do you install just the databases without the services on an instance?
lcerniHi Icerni,
Based on the current description, I understand that you want to install Reporting Services on one machine, and install Report Server and ReportServerTempDB databases on another machine.
I think it’s not supported that installing only the databases related to Reporting Services on an instance without Reporting Services. From the document: Create a Report Server Database, we can need the Reporting Services Configuration Manager tool to create
Report Server databases.
In Reporting Services, there is scale-out deployment which refers to two or more report server instances that share a single report server database. They are used to increase scalability of report servers to handle more concurrent users and larger report execution
loads. And it can also be used to dedicate specific servers to process interactive or scheduled reports.
References:
Scale-out Deployment (Native Mode Report Server)
Configuring Reporting Services for Scale-Out Deployment
Regards,
Heidi Duan
If you have any feedback on our support, please click
here.
Heidi Duan
TechNet Community Support -
I just updated my iPhone 4s to iOS7. I had an old iCloud account on it that I have closed. How do i delete the account on the iPhone and update it to my new account?
I keep having this problem too, no one seems to know how to fix it. Can't delete the account without turning off the 'find my iphone' app. Cant' turn it off without the ID....it's a vicious cycle.
-
While in Japan on a trip, I updated my iPhone to iOS6. Now, when I try to update my apps, I'm told that my account is not good in the Japan store I must switch to the USA store. How do I do that so I can download and update apps at home in the USA?
Your Apple ID is tied to the US store. Log out of the store, then trying logging back in.
-
Iphoto I have tried opening with cnt alt and updating library what next cant open
iphoto I have tried opening with cnt alt and updating library what next cant open?
julieThis is the iPad forum. If you are having an iPhoto problem please post here:
https://discussions.apple.com/community/ilife/iphoto
If your problem involves iPhoto and an iPad please provide additional information. -
How to schedule the background job if report have Presentation server files
Hi All,
I have searched the forums and found , the way for the scheduling the background job if report selection screen have the presentation server file input.
1. Using the Open data set method.
And my client is not OK with Open dataset way, it there any other way to do this, As we are using the EXCEL file.
Thanks and Regards,
BharaniHi,
As said above it is generally not possible. Since your client most obviously doesn't like graphical background I would recomend storing data as till now, but show it with your own report in more userfriendly way. For example:
- as ALV Grid
- in excel with use of OLE either as embedded in SAP or new window (check transaction OLE for example)
- with use of webdynpro
BR
Marcin Cholewczuk -
How to loop through report records and update the record
I have a updateable report. And there is a select LOV in that report. How to loop though the report and save all the changes to the LOV.
1. Please tell us your first name and put it in your handle and/or profile to help us.
2. Explain your question in more detail, perhaps with an example and by showing code you already are using.
Scott -
How to restrict URL to open only from Forms and not from Browser
Hi,
Our application built in Oracle Forms 10g, calls a URL.
The URL is essentially a path on the application server where files are stored. Users can access this to download files from the server.
However the URL can also be opened independently from the browser.
Is there any way, such that the URL can only be opened through the application, and it should be denied when it is opened through the browser.
More details :
Server : itabc123
Location on server : /home/rpdabc/interface/outward/
Alias created in httpd.conf : /rpdabc-dir/ "/home/rpdabc/interface/outward/"
<Directory "/home/rpdabc/interface/outward/">
Options Indexes Multiviews
</Directory>
from application : web.show_document('http://itabc123:7778/rpdbabc-dir');
Kindly advise,
Thanking you,
RockyActually, there are several options including the one already offered above. Here are a few more:
1. If you are using 10.1.2.3 and a newer JRE on the client (e.g. 1.6.0_10 or newer), you could use java script to open the report. This will not be a perfect solution because it may not work if using a non-IE browser or if java scripting is disabled. Refer to MyOracleSupport Article 265863.1 for more information.
EXAMPLE:
WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,"));self.close()','_blank');Replace the url in the above example with the call to your report.
2. Set the age of the cache to a very short value so that it is only available long enough to be viewed by the user who created it. In other words, when setting the reports properties in your Forms code, include the Reports "others" parameter with TOLERANCE=1
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'TOLERANCE=1');This will cause the cache (on the server) to live for only one minute then be deleted. Refer to the Report Deployment Guide for more information.
3. Upgrade to Fusion Middleware (Forms/Reports) 11. In version 11, the Reports jobid can be randomized. See section 18.8.2 of the Reports 11 Deployment Guide
http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/toc.htm -
How to maintain several views of the same data and update a tree
I have an object UiUser, which is displayed in my application in several different views. There are three different views which all have the User object i.e. search results, user tree and user table. Each of the views has the same menu items, so the user can be deleted from any of the views.
What I am trying to work out is how should I ensure the item is updated in all of the views?
I can fire a property change event with the UiUser and update two of the views i.e. search results and user table, but how do I update the tree?
I thought of overiding the equals/hashcode methods of the UserTreeNode to compare uiUser.getId () and I could then search the tree and find the tree node of the required UiUser. But I have reservations about this whole approach as it just seems wrong.
Any ideas of how to keep N views in sync, I really don't want all of the views to have tree nodes as this equally seems wrong. This should be a simple problem to solve and I'm sure lots of people have done it, I'm just not sure which is the best approach to take.
ThanksHi Jan,
This is so because each installer has a GUID that is used to check whether the application needs to be upgraded or not. (It's a Microsoft function).
What you can do is create a new installer with a different GUID (copy the installer in the projects), and check witha text editor whether this GUID has changed.
But any specific reason you need two seperate installs? You can run the application twice with a specific INI token:
allowmultipleinstances=True
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
How can i make a connection between an application and a database over net
dear sir
how can i make connection between an appliction and a database over internet while the client side appliction is behind proxy and firewall
for example how the live update of norton antivirus makes connection to the data server to make comparetions and get new virus definitions
does that depend on sockets technology ?
what references can guide me to the solution please?The ability to do so depends entirely on the JDBC driver implementation having some proxy method. It needs to recognize the HTTP or SOCKS proxy and use them to connect, and the firewall and proxy need to allow those specific port connections.
To the best of my knowledge, all of these update utilities, e.g. live update for Netscape, Norton, etc., do not connect directly to the database. As it is, no sane security person would allow a database to be exposed to the Net. Rather, they connect using HTTP or HTTPS, which normally traverses firewalls just fine, to connect to a Web or application server on the far end. That application server then parses the request and retrieves whatever it needs to from the database.
In other words, you cannot have a 2-tier client/server application. You need a 3-tier application:
your client -> Web/app server -> database
where the connection from your client to the Web/app server is over http or https through the firewall and proxies.
Hope this helps.
Avi
dear sir
how can i make connection between an appliction and a
database over internet while the client side
appliction is behind proxy and firewall
for example how the live update of norton antivirus
makes connection to the data server to make
comparetions and get new virus definitions
does that depend on sockets technology ?
what references can guide me to the solution please? -
How to schedule application to open/close-whenever?
Hi All,
I wonder if there is an application, which allows me to schedule to open and quit another applications on certain times of the day/night. I have managed to find “Quitsapps” on Versiontracker but this app schedule only other applications to close. The reason I am asking for it is because I got broadband limit, which I don’t want to use in peak hours. I just want my P2P application (Xtorrent…very recommended) to open/close itself on certain times.
Thanks in advance.OS X has a built-in Unix command that can handle the task - cron. There are several GUI utilities that make it easy to set up cron tasks such as Cronnix. There are many others that you will find at VersionTracker or MacUpdate.
-
Trouble creating a open items report (BSID and BSAD tables)
Hi guys,
im creating a report that must display open items for an especific date, and i do it very well with a query from BSID table.
The problem comes when u use a date on the past, example last week.
if u do that, the items are now closed and are no longer stored in BSID table, so i think that they must be now in BSAD table, but i dont know how to relate wich ones are recently closed...
i also tried to do a query from BSAD with augdt >= last week date, and i almost get the items that i needed(this items plus the ones from BSID), but is not exactly because u can close an item with a date in the past..
is there any way to relate that 2 tables, or what exactly happens when an items change from bsid to bsad??
any ideas?Hi;
I think the best way to recive the necessary information is using logical data base DDF. You can use report RFITEMAR to see how use the logical data base.
Some months ago I've read the data in my report in following way:
1. make Z-copy of report RFITEMAR
2. in Z-copy after end-of-selection insert
export it_pos to memory id 'POS_TABLE'.
3. In your report write a form similar to my form below:
*& Form submit_zrfitemar
FORM submit_zrfitemar tables rkunnr type trgr_kunnr
it_pos type it_rfposxext
using ibukrs type bukrs
idatsd type sy-datum.
data: rspar type table of rsparams,
l_rspar type rsparams,
l_pos type rfposxext,
akunnr type kunnr.
l_rspar-selname = 'DD_KUNNR'.
l_rspar-kind = 'S'.
loop at rkunnr.
move-corresponding rkunnr to l_rspar.
if l_rspar-high = ''.
l_rspar-option = 'EQ'.
else.
l_rspar-option = 'BT'.
endif.
append l_rspar to rspar.
endloop.
clear: l_rspar.
l_rspar-selname = 'DD_BUKRS'.
l_rspar-kind = 'S'.
l_rspar-sign = 'I'.
l_rspar-option = 'BT'.
l_rspar-low = ibukrs.
append l_rspar to rspar.
clear: l_rspar.
l_rspar-selname = 'PA_STIDA'.
l_rspar-kind = 'S'.
l_rspar-sign = 'I'.
l_rspar-option = 'BT'.
l_rspar-low = idatsd.
append l_rspar to rspar.
clear: it_pos[].
submit ZRFITEMAR
with selection-table rspar
and return.
import it_pos from memory id 'POS_TABLE'.
ENDFORM. " submit_zrfitemar
You find the necessary data in table IT_POS.
JS
Edited by: John Smith on Oct 9, 2008 5:42 PM -
How to add a new font into Report Builder and Oracle Forms/Reports Server?
Hi,
I've searched the forum and can't find this being discussed.
My developers run Report Builder 10.1.2.0.2 on their XP laptops.
Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
This server runs on MS Windows 2003, SP2.
They've got a client who wants reports using the "Garamond Western" font.
So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
Thanks for your help.Thanks.
This answers 1/2 of my question.
The developer can now use Report Builder on his laptop, with the new fonts.
But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
I have then stopped and restarted the Forms-Reports Server. -
How do I make IE open PDF inside browser and not prompt?
I am using IE 11, Adobe Reader 11.0.06.
When I try to open a PDF inside a browser window (for example this one: http://helpx.adobe.com/dk/pdf/acrobat_reference.pdf) I am prompted to Open, Save or Save As. I want open the document directly without being prompted.
How can I achieve that?I have now tried the following: Adobe Reader was completely uninstalled. I then downloaded and installed the Adobe Reader 11.0.00 package directly from the Adobe site and upgraded it to 11.0.06 afterwards.
In this default configuration it works - PDF files on web pages open directly in Internet Explorer (Windows 7, IE 10).
I then removed Reader and ran our deployed version (from SCCM). Then it failed to show PDF's in the browser, as before.
So a setting in our TRANSFORMS file could be an issue. Does anyone know if you can set this open/do-not-open in browser inside the MST file using Adobe Reader Configuration Utility? Our installation CMD file looks like this:
REM *** Install Reader 11 MUI base package
msiexec /i [\\servername]\source$\Applications\AdobeReader11\AdbeRdr11000_mui_Std\acroread.msi TRANSFORMS=\\[servername]\source$\Applications\AdobeReader11\AcroRead.mst LANG_LIST=[language] /passive
REM *** Install 11.0.06 MUI update
msiexec /update \\[servername]\source$\Applications\AdobeReader11\AdbeRdrUpd11006_MUI.msp /passive
Maybe you are looking for
-
The nightmare that is my iMovie. I just proposed to my girlfriend last month and im trying to make a 7 minute movie about it in iMovie. I shot my pics and video clips on my iPhone 4s. Unfortunately i forgot to turn HD on. Oh well, the footage looks g
-
SAP Query Genrator Error Again
Experts, select T0.Father 'Parent Item', T0.Code 'Children', Case When T1.ItemType = 'I' Then 'Item' When T1.ItemType = 'L' Then 'Labour' When T1.ItemType = 'T' Then 'Travel' End 'Item Type', Case When T1.PrcrmntMtd = 'B' Then 'Buy' When T1.PrcrmntMt
-
Access another list in SharePoint controldisplay template
Hi All, I would like to know if it is possible to access another SharePoint list items in a control or item display template using Client object model or REST services. Can someone please confirm me? Thanks. Regards, SC Vinod Blog: http://sharesilver
-
Delivery creation with confirm quantty but date is is diifeenrt
dear gurus, i want to deliver a item but it is allowing future date but aitem is avilable can u plz tell me how to deliver the item on the same date nt on the future date ?
-
HT4623 Trying to update my iPad to IOS6
When I go to update software it is telling me IOS5.1.1 Your software is up to date..... and I tried connecting to iTunes on my MacBook Pro and still can't get it to update.... can anyone help? Is it because this is first generation Ipad?? Thanks