Reassign packages in batch job?
Hi,
i know how workbench objects can be reassigned online - but can this be done in a batch job reassigning them from package z_a (no transport route) to z_b (with transport route)?
In worst case a batch input possibility or even a Z-Report is appreciated.
In the resulting tree list of SE03 "change object directory entries" you can select multiple entries and use OK-Code "MASS" to change several packages in one go.
If this is not sufficient, then look at the function module TR_TADIR_INTERFACE for a programming solution. I think batch input is too tedious.
Thomas
Similar Messages
-
Package processing in CCM (AUTH_UPDATE batch-job)
Hello all
We're using CCM 2.0 with SP03. We send CatalogueUpdateNotification_in messages (in XML format) to our XI and route it 1:1 to our CCM system. There it is processed by an <b>async started AUTH_UPDATE batch-job</b>. This job finally processes our catalog items.
As log as this batch-job runs the concerned catalog being updated is locked for other updates. And this is what causes us some head aches!
We send XML messages containing up to 2000 catalog items. This makes the batch job run quite long (up to 1.5h). Now, when we have more than 2000 updates to send to our catalog, we split it up into packages with up to 2000 items each.
Each package being sent from XI to CCM creates such a AUTH_UPDATE batch-job. The 1st starting is able to lock the catalog but this way of course also blocks processing of all other packages.
Every single minute the next (waiting / blocked) package tries to lock the catalog itself before it can be processed. This ensures parallel update processings but the other way around it also causes to fall into a timeout after lets say ca. 30 retries.
From XI point of view the timedout out package(s) sent to CCM were successfully processed... means: not restartable!
In CCM I can't find a way trying to re-process such a timedout package.
Re-generating the same package from the source system is not an option for us as well... it takes to much efforts.
Is there a way to change the wait time between retrying to lock the catalog?
OR
Is there a way to ensure that only 1 AUTH_UPDATE batch-job is started at the same time?
Thanks for some ideas to solve this.
RenaudHi
<b>Please go through the SAP OSS Notes and pointers as well -></b>
Note 908054 - CCM 2.0 SP03 on Netweaver 04s SP Stack 06
Note 1002775 - Asynchronous deletion of old version after publication
Note 955096 - Rule condition (Not Equal with Not Valuated) in the view
Note 887328 - CCM20 - modifications for /CCM/VERIFY_CATALOG
Note 865138 - CCM20SP0 upload overview message "Category not found"
Note 873340 - Problems with BMECat mapping after patching XI
Note 864313 - Input help for mass editor
<u>Related links -></u>
Re: Transfer Contract Data to CCM
Re: CCM CSE_ENRICHMENT BAdI debuging
Incase this does not help, please raise a customer OSS Message with SAP as well for faster resolution of your queries.
Do let me know. Hope this will help.
Regards
- Atul -
Print selected pages of a PDF file to printer as a batch job using VB6
I have the following:
1) 1,000 multi-paged PDF files (say 00000001.pdf, 00000002.pdf, ..., 00160000.pdf)
2) A list of pages for each document to print
(e.g. 00000001.pdf: 2,3,5,7
00000002.pdf: 3-8, 10
00001000.pdf: 5,6,7,10)
I want to perform a single batch job to print the specified pages of all 1000 PDF documents to default printer.
I am using VB6, Acrobat Reader 9 installed.
I am thinking of writing a function like that:
Private Function PrintPDF(byval sPDFFilePath as string, byval iPageNum() as integer) as boolean
and then write a looping routine to print the files one by one.
Seems that Acrobat SDK has such feature.
Please advise how can I do this?I downloaded the Arcobat SDK and now learning to use it with its sample.
However, I got stuck when I run the program BasicIacVB.
I got the following error message:
Cannot create ActiveX component.
When running the line
gApp = CreateObject("AcroExch.App")
I run this program on my PC with VS2005 installed.
What extra step do I need to do to use the sdk?
Seems there's no installation package there...
Sorry about my stupid question, I am a total newbie in AcrobatSDK.
P.S. My ultimate goal is to develop the program in VB6 (not using VB2005),
as my client PCs does not (and cannot for some reason) install .net framework. -
Creating a simple batch job to run every month and perform a deletion
dear all;
This is just for learning purposes
I have created a simple table below
create table t1
vid varchar2(30),
quantity number(6,2),
primary key (vid)
insert into t1
(vid, quantity)
values
('G1', 2);
insert into t1
(vid, quantity)
values
('G2', 3);
insert into t1
(vid, quantity)
values
('G3', 0);Now, I would like to create a simple batch job, that runs every month which is used to delete all vid that has a quantity of 0...How do i go about doing that. I have searched the web but can't seems to find any useful info so far..
Edited by: user13328581 on Sep 8, 2010 8:32 AMyou are missing a semi-colon in your package procedure call inside your begin ... end.
begin
dbms_scheduler.create_job
job_name => 'jobdeletezeroquantity'
, program_name => 'PLSQL_BLOCK'
, job_action => 'BEGIN mfg.testpkg.deletezeroquantity END;' <-- missing semi-colon on mfg.testpkg.deletezeroquantity
, start_date => systimestamp
, repeat_interval => 'freq=monthly; byday = 1'
, end_date => null
, enabled => True
, comments => 'used to run a delete procedure every month'
end;should be:
begin
dbms_scheduler.create_job
job_name => 'jobdeletezeroquantity'
, program_name => 'PLSQL_BLOCK'
, job_action => 'BEGIN mfg.testpkg.deletezeroquantity; END;'
, start_date => systimestamp
, repeat_interval => 'freq=monthly; byday = 1'
, end_date => null
, enabled => TRUE
, comments => 'used to run a delete procedure every month'
end; -
DOS batch command to call Hyperion workspace reporting batch job
Hello,
Is there any method to call the batch job in hyperion workspace for exporting report ?
i would like to call the job batch by DOS batch. Is it possible?
thanks
GaryAn option is to look at the SDK and see if there is a way for you to make a Java call to do what you are trying to do.
The SDK is part of the Services Install Package.
I have used the SDK to make a call to the External Event Trigger.
You may want to look at the Hyperion Workspace Developer’s Guide
http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hs_developer.pdf
Wayne Van Sluys
TopDown Consulting -
Sessions from apex are blocking by batch job
Hi All,
In my 10.2.0.3 linux with apex 3.1.1
We have a batch job using a package,that is doing DML operation in tables depends upon some condition.And this job will run daily 5 hours.
The sessions from apex that is also using some procedures in the same package.Some days the sessions from apex are blocking by batch job.While blocking wait event from apex sessions are 'library cache pin'.Once the batch job completes then automatically removes the block.
What may be the reason?
Thanks in Advance,
SunilThe query against v$lock is not relevant if the blocked sessions are waiting on "library cache pin" - so you seem to have two separate problems.
If you have a session waiting on another session's transaction slot in mode 4 there are several possible causes - often related to indexes, but there are a couple of "internal" problems as well. If you see this locking issue again some of the simplest things to check for would be session 1 inserting (without commit) some rows in a table with a unique key, and session 2 then trying to insert a duplicate. Session 2 has to wait for session 1 to commit or rollback before deciding whether to return a "duplicate key" error, or to continue processing.
The "library cache pin" waits suggest that the package had become invalid while the batch job is running it, and one of the Apex jobs is trying to recompile it. But if the batch job is currently running (hence pinning) the "executable", then the Apex job can't get the necessary exlusive pin until the batch job ends and releases its pin.
Read the notes in the script $ORACLE_HOME/rdbms/admin/catblock.sql about creating views that let you see more of the information about library cache (KGL) locks and pins.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan -
Hi,
Is there a way to schedule the reports to run through a batch job in Production ? Say the job will run the report in the night so that the users can come and see it in the morning.
The report also prompts for selections / filters before it runs.
I am using SAP BW / Bex for reporting.
Any inputs on how to go about it would help.
Rgds
ShwetaHi Shweta,
Throw the Reporting Agent you can schedule the report and Web templates in the SAP BW 3.x format
http://help.sap.com/saphelp_nw04/helpdata/en/28/734d3caa70ea6fe10000000a114084/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/2.0/2.0b%20reporting%20agent%20incl.%20precalculating%20web%20templates.pdf
i hope above links would lead you to the solution of your problem, still u have any problem ..........
you can start reading this two links...
other wise can you follow these steps
1.Just go to RSA1
2.Go to reportin agent tab below modelling and monitoring tabs.
3.go to print
4.find and select your info provider
5.slect your query
6.right click and go for new setting
7.name it and do all the setting as you need for printing, here you can specify printer name and page formats also.
8.drag and drpot it in right pane where you have scheduling packages (if not present then create your own)
9.schedule it as per your print schedules.
Hope it helps.
Regards,
Krissh -
PL/SQL batch jobs and error reports handling
Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mirp:
Has anyone ever had to write exception and statistics reports from a PL/SQL batch job and how have those been handled? I have 3 options below not but sure what is best (or is there another) way to do this.
I have a series of batch jobs that are written in PL/SQL. A unix script will invoke a SQL*Plus script that calls a stored procedure. The stored procedure may call other procedures and functions. I'd like to collect all the errors and write them out a report that the user can review. I was thinking of just writing a message using DBMS_OUTPUT and spool that to a file in my script, but I have concerns that other message in the buffer may end up in the report. The other thought was to use UTL_FILE but then I would have to make sure the file handle got passed thru all the procedures and functions appropriate. The last thought was to write to a table ( a temporary PL/SQL table) , and then read that table and write to a file using UTL_FILE (don't have to pass file handles that way) - but I'm not sure if a called function or procedure can access that table.
<HR></BLOCKQUOTE>
Just a thought
If You use utl_file, You can write all opeations with files in a separate package with public variables of file handles and so on. Not necessary to pass all variables to each procedure and function -
Find errors logged from oracle batch job...
Hi,
I have a batch job that calls a procedure.. code is as under
begin
sys.dbms_job.submit(job => :job,
what => 'begin
delete_stale_data;
end;',
next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
interval => 'sysdate+(30/1440)');
commit;
end;Now, how can i get to view the error messages if
1) procedure runs into an exception and hence job is not executed
2) if job runs into some problem due to which it is not completed..
Thanks,
JP"Viewing errors" is the wrong term to use - it assumes that there are devices like STDERR and STDOUT in Oracle that is written to when an error occurs.
There are no such devices in Oracle. Oracle itself will record system related errors (and messages) to the alert log of the database instance. Custom PL/SQL code can also write to the alert log using an undocumented call - but it is a very poor idea as the alert log is for the DBA to deal with system errors. Not with someone's application errors.
The correct method is to implement an application logging PL/SQL interface (package) that allows applications to log errors and warnings and messages (including debug stuff). The basic method of this API implementation is to create a log table and write messages (from applications) to this table using autonomous transactions. The API call can also record the system date/time, the current PL/SQL stack trace, client session details, etc.
Using such an API, you would schedule the job as follows:
Method 1:
The job becomes broken after 16 repeated failures (the exception is re-raised in order for DBMS_JOB to deal with it).
sys.dbms_job.submit(job => :job,
what => 'begin
delete_stale_data;
exception when OTHERS then
APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
raise;
end;',
next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
interval => 'sysdate+(30/1440)');
Method 2:
The job will never break. The exception is supressed and DBMS_JOB will not know that any errors occurred:
sys.dbms_job.submit(job => :job,
what => 'begin
delete_stale_data;
exception when OTHERS then
APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
end;',
next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
interval => 'sysdate+(30/1440)'); -
Hi I am working on batch job .
my program is printing invoice as well as downloading and I have run this program in batch,
I am using the FM job_open , job_submit and job_close.
but it is failing in job_submit with sy-subrc eq 1 .
giving me error bad print parameter , I haven;t done this before.
I think it should be option.
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = SY-UNAME "tbtcjob-authcknam
jobcount = tbtcjob-jobcount
jobname = p_jobnam
language = sy-langu
report = c_reprot
variant = pvariant
EXCEPTIONS
OTHERS = 01.
could anybody pls guide me why it is so???
Regards.
Kusum.you can below code
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT
WITH SMART LINEFEED.
IF sy-subrc EQ 0.
WHILE sy-subrc IS INITIAL.
READ DATASET gv_file INTO gwa_header_file.
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND gwa_header_file TO gt_header_file.
ENDIF.
ENDWHILE.
CLOSE DATASET gv_file.
ENDIF.
ENDIF. -
Display error message in batch job log
Hello
I have a batch job running and I have an error coming during some validation logic.
The problem is I need to continue the batch job when this error message comes and it should not cancel the batch job as it is doing currently but display that error message in batch job log, there are more similar error messages coming in job log and job gets finished, but when my error message comes job gets cancelled.
I cannot give it as info message as it will give wrong idea about message type.
Is there any FM by which we can add message in job log?Sanjeev I have done that but problem is I do not want to give that as Information message but Error message only and continue processing.
If you see in screenshot 3rd message is given by me as information and you can see error messages also 6th and 7th and job continued till it is finished
Basically I want that 'I' to be displayed as 'E'.
Display error message in batch job log -
Dear Scripting Guys,
I am working in an AD migration project (Migration from old legacy AD domains to single AD domain) and in the transition phase. Our infrastructure contains lots
of Users, Servers and Workstations. Authentication is being done through AD only. Many UNIX and LINUX based box are being authenticated through AD bridge to AD.
We have lot of applications in our environment. Many applications are configured to use Managed Service Accounts. Many Workstations and servers are running batch
jobs with AD user credentials. Many applications are using AD user accounts to carry out their processes.
We need to find out all those AD Users, which are configured as MSA, Which are configured for batch jobs and which are being used for different applications on
our network (Need to find out for every machine on network).
These identified AD Users will be migrated to the new Domain with top priority. I get stuck with this requirement and your support will be deeply appreciated.
I hope a well designed PS script can achieve this.
Thanks in advance...
Thanks & Regards Bedanta S MishraHey Satyajit,
Thank you for your valuable reply. It is really a great notion to enable account logon audit and collect those events for the analysis. But you know it is also a tedious job when thousand of Users come in to picture. You can imagine how complex it will be
for this analysis, where more than 200000 users getting logged in through AD. It is the fact that when a batch / MS or an application uses a Domain Users credential with successful process, automatically a successful logon event will be triggered in associated
DC. But there are also too many users which are not part of these accounts like MSA/Batch jobs or not linked to any application. In that case we have to get through unwanted events.
Recently jrv, provided me a beautiful script to find out all MSA from a machine or from a list of machines in an AD environment. (Covers MSA part.)
$Report= 'Audit_Report.html'
$Computers= Get-ADComputer -Filter 'Enabled -eq $True' | Select -Expand Name
$head=@'
<title>Non-Standard Service Accounts</title>
<style>
BODY{background-color :#FFFFF}
TABLE{Border-width:thin;border-style: solid;border-color:Black;border-collapse: collapse;}
TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: ThreeDShadow}
TD{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: Transparent}
</style>
$sections=@()
foreach($computer in $Computers){
$sections+=Get-WmiObject -ComputerName $Computer -class Win32_Service -ErrorAction SilentlyContinue |
Select-Object -Property StartName,Name,DisplayName |
ConvertTo-Html -PreContent "<H2>Non-Standard Service Accounts on '$Computer'</H2>" -Fragment
$body=$sections | out-string
ConvertTo-Html -Body $body -Head $head | Out-File $report
Invoke-Item $report
A script can be designed to get all scheduled back ground batch jobs in a machine, from which the author / the Owner of that scheduled job can be extracted. like below one...
Function Get-ScheduledTasks
Param
[Alias("Computer","ComputerName")]
[Parameter(Position=1,ValuefromPipeline=$true,ValuefromPipelineByPropertyName=$true)]
[string[]]$Name = $env:COMPUTERNAME
[switch]$RootOnly = $false
Begin
$tasks = @()
$schedule = New-Object -ComObject "Schedule.Service"
Process
Function Get-Tasks
Param($path)
$out = @()
$schedule.GetFolder($path).GetTasks(0) | % {
$xml = [xml]$_.xml
$out += New-Object psobject -Property @{
"ComputerName" = $Computer
"Name" = $_.Name
"Path" = $_.Path
"LastRunTime" = $_.LastRunTime
"NextRunTime" = $_.NextRunTime
"Actions" = ($xml.Task.Actions.Exec | % { "$($_.Command) $($_.Arguments)" }) -join "`n"
"Triggers" = $(If($xml.task.triggers){ForEach($task in ($xml.task.triggers | gm | Where{$_.membertype -eq "Property"})){$xml.task.triggers.$($task.name)}})
"Enabled" = $xml.task.settings.enabled
"Author" = $xml.task.principals.Principal.UserID
"Description" = $xml.task.registrationInfo.Description
"LastTaskResult" = $_.LastTaskResult
"RunAs" = $xml.task.principals.principal.userid
If(!$RootOnly)
$schedule.GetFolder($path).GetFolders(0) | % {
$out += get-Tasks($_.Path)
$out
ForEach($Computer in $Name)
If(Test-Connection $computer -count 1 -quiet)
$schedule.connect($Computer)
$tasks += Get-Tasks "\"
Else
Write-Error "Cannot connect to $Computer. Please check it's network connectivity."
Break
$tasks
End
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($schedule) | Out-Null
Remove-Variable schedule
Get-ScheduledTasks -RootOnly | Format-Table -Wrap -Autosize -Property RunAs,ComputerName,Actions
So I think, can a PS script be designed to get the report of all running applications which use domain accounts for their authentication to carry out their process. So from that result we can filter out the AD accounts being used for those
applications. After that these three individual modules can be compacted in to a single script to provide the desired output as per the requirement in a single report.
Thanks & Regards Bedanta S Mishra -
Report to be sent to a list of recipients in an e:mail (part of batch job)
Hi,
I need to generate a report using ALV functionality.
Currently my report requirement is to sent to a list of recipients in an e:mail (part of the batch job set-up) and the recipients just download the report in a spreadsheet format.
Could you please give me the suggestions the way which I need to follow and how I will be able to set this report as a part of batch job which will send the report details to the users in the form of Email.
Points will be rewarded for the answers.
Regards,
Ravi GanjiHi,
IN SM36..You will see a button for "Spool list recipient" which is next to the target server button..
press that button..
Give the email address in the recipient field..
GIve the steps and start condition and then release the job..
THanks,
Naren -
I Need to Create a report for batch jobs Based on Subject Area.
Hi SAP Guru's,
I need to create a report , that it must show the status of batch jobs Completion Times based on Subject area(SD,MM,FI).
Please help me in this issue ASAP.
Thanks in Advance.
Krishna.You may need to activate some additional business content if not already installed but there are a lot BI statistics you can report on. Have a look at this:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/46/f9bd5b0d40537de10000000a1553f6/frameset.htm -
Batch job for collecting Blocked Deliveries
Hi,
Can anyone help me, i need to collect all the orders that have been blocked for delivery and send the results to an email address.
I created a batch job gave the program for SD Documents blocked for deliveries, but it doesnt seem to work, can anyone please give a step by step procedure.
Thanks alot,
Michelle.1. T.code SM36- Here you will creating the job
2. Give the appropriate variants and the back ground user id
3. once this is done, go to the Spool receipient and give the email id where you want to send the mail to. Run the job now. You should receive the mail now, provide the connections are maintained.
Hope this will resolve the issue.
Mani
Maybe you are looking for
-
How many computers can share the same iTunes account?
How many computers can share the same iTunes account?
-
I installed LabVIEW Professional Sys. for Windows (XP) 8.5 and then the 8.5.1 update. Somewhere in the original installation, LV Run-time Engine 7.1 was installed. But I need LV RTE 7.1.1. So I attempted to install RTE 7.1.1. Problem: The LV RTE inst
-
My Macbook Pro OS X keeps crashing lately. I'm not even able to send the error report to Apple anymore. What's wrong??
-
Is there function module to calculate customer arrears after due date?
Hello, Can any one tell me how to calculate arrears after due date for customer? Is there any specific function modue? BTW, in my case, we do not trigger dunning procedure. There is no data will be updated in table MHND. Thank You and Best Regards,
-
Every song skips once during play, for ~0.5 seconds; weird box?!
For some reason, ever since I installed a new hard drive in my MacBook Pro and transferred the user account from the old to the new, whenever an song is playing in iTunes it will freeze the song for less than a second and then continue playing. It is