Automatically assign repository to a job

Hello all,
In the job's options tab it is possible to assign the job one or more repositories - manually.
Is it possible to do the same in code (job, script, stored procedure) ?
I am working with 7.2 SP9.
Regards
Rytis

Hi Rytis,
I am looking for a similar functionality as you as we need to be able to run lot of update jobs for dozens of repositories.
Tested in my sandbox to change the repository for dummy job with update-statement and ran the dummy job. The job got the repository reference correctly (all it did was to print the repository name out) and I was able to run it.
I was happy with that but chose not to go further as we have problems with jobs that are executed manually in MMC..
Change the repository 5 times in MMC and the passes in the job lose the repository (same as the problem in this thread: http://scn.sap.com/thread/3695370).
Changing the repository in MMC changes also the job name, but changing the repository with update-statement changes only the repository in job. So maybe there is more required than the update-statement (or maybe not - no idea).
regards, Tero

Similar Messages

  • Automatically assign conditional text to xml tag

    Hello,
    is there a way to automatically assign a "conditional text" to a xml tag. Either on xml import or with a script?
    Thank you all for your help.

    If you've got 10.2.0.2 or above you can use EVALNAME in your xmlelement statement...
    SQL> select xmlelement(evalname job, ename) from emp;
    XMLELEMENT(EVALNAMEJOB,ENAME)
    <CLERK>SMITH</CLERK>
    <SALESMAN>ALLEN</SALESMAN>
    <SALESMAN>WARD</SALESMAN>
    <MANAGER>JONES</MANAGER>
    <SALESMAN>MARTIN</SALESMAN>
    <MANAGER>BLAKE</MANAGER>
    <MANAGER>CLARK</MANAGER>
    <ANALYST>SCOTT</ANALYST>
    <PRESIDENT>KING</PRESIDENT>
    <SALESMAN>TURNER</SALESMAN>
    <CLERK>ADAMS</CLERK>
    <CLERK>JAMES</CLERK>
    <ANALYST>FORD</ANALYST>
    <CLERK>MILLER</CLERK>
    14 rows selected.In 10.2.0.1 you would get:
    ERROR:
    ORA-19039: Keyword EVALNAME reserved for future usethough it can be switched on for that version (an alter session statement) if you raise a support call with Oracle explaining why you can't upgrade yet.
    edit to add:
    if you need to convert the data you can just use an appropriate decode statement e.g...
      1* select xmlelement(evalname decode(job,'PRESIDENT','TOP BOSS','OIK'), ename) from emp
    SQL> /
    XMLELEMENT(EVALNAMEDECODE(JOB,'PRESIDENT','TOPBOSS','OIK'),ENAME)
    <OIK>SMITH</OIK>
    <OIK>ALLEN</OIK>
    <OIK>WARD</OIK>
    <OIK>JONES</OIK>
    <OIK>MARTIN</OIK>
    <OIK>BLAKE</OIK>
    <OIK>CLARK</OIK>
    <OIK>SCOTT</OIK>
    <TOP BOSS>KING</TOP BOSS>
    <OIK>TURNER</OIK>
    <OIK>ADAMS</OIK>
    <OIK>JAMES</OIK>
    <OIK>FORD</OIK>
    <OIK>MILLER</OIK>
    14 rows selected.

  • Pointer to Automatically assign db logon to DC, DF, BE, BV or LOV

    The topic that this pointer links to has now been marked as ANSWERED
    Hello
    This is a link to a topic posted in another Business Objects forum
    I would appreciate input from anyone who can help, thanks
    Here is the link:
    Automatically assign db logon to DC, DF, BE, BV or LOV
    It is in the Universe Designer and Business Views Designer forum
    and the title is
    Automatically assign db logon to DC, DF, BE, BV or LOV
    Thank you
    Patrick
    Edited by: PATRICK COOTE on Sep 5, 2008 12:13 PM
    Edited by: PATRICK COOTE on Sep 8, 2008 1:30 PM
    Edited by: PATRICK COOTE on Sep 9, 2008 1:21 PM
    Edited by: PATRICK COOTE on Sep 11, 2008 7:40 AM
    Edited by: PATRICK COOTE on Sep 18, 2008 8:49 AM

    Patrick,
    On
    "If its possible for your to publish the reports one a time, you can simply change the report to use the LOV in the repository before you save it to CR Server. That way you end up with 1 report that your users access through the GUI, but which is configured properly on the server"
    What I meant is, change the param to use the Server's LOV (that is already preconfigured - has password/userid/never prompt), then save/publish the report to CRS - that way it goes in pointing to the existing LOV. Once you save it, if you close the report and reopen the local (unmanaged) copy that you had before, it is still using the local LOV in the report. This way, you don't have to go in after every report publication and set up the yet another LOV stack....
    On
    "may be you should consider looking into developing a little application that log on the CR Server, run through a list of DCs and set credentials"
    Yes, the data in your repository/system database (Oracle in your case) is encrypted - always is. This is an encrypted object-relational database. Yes, you'll have to build an application (Java/.NET) that logs in & does all that you need to do. You can not access and modify the data in the database directly - don't attempt that.... You'll corrupt your installation. The only way you can make updates in that DB is through the BOE SDK.
    To get a peek of what's in the database, log into the Query Builder tool. Assuming you're using Tomcat running on port 8080, change servername with your servername, and check it out....
    http://servername:8080/AdminTools/

  • IdM: Automatically assign a privilege when create a user

    Dear all,
    I want automatically assign a privilege to a user, when a create this user. How I have to do this? Must I use dynamic group?
    My idee is: All of our people need a account in the SAP portal, so I want to assign automatically the privilege PRIV:PORTAL:ONLY to the user.
    Best regards,
    Hans

    Lot of options depending your requirements..
    Dynamic group is one option but it requires small configuration effort.
    If it's all users, maybe then an add event task for MX_PERSON where you grant the privilege? Takes 5 minutes to do.
    Are there any exceptions? Do you have also non-dialog users in your IdM?
    Any requirements for deprovsioning?
    Where do you get the users? If it's SAP HCM-integration case and no users are created in the UI, then add the privilege in the job that moves the identities from staging Id Store to your master Id Store.
    regards, Tero

  • Customer Down Payment invoice (from delivery) not automatically assigned

    If I create a Down payment invoice from Sales Order (and I paied it) on the final invoice the sistem automatically assigne the down payment invoice on the final invoice for the order.
    If I do the same think but crerating the Down payment invoice from the delivery (and I paid it) when I create the final invoice I need to assigned it manually.
    SBO 8.81 PL 06
    I haven't found any set up for this, so I think is an error the sistem must work on the same way if the document is copied from the Sales order or delivey.
    Someone know if there is some set up? or I need to open an error message to SAP?
    Thanks

    My question is:
    If I make a sales order.
    I create a down payment invoice using copy from SO.
    I make the incomuing payment for the down payment invoice.
    I create the delivery from the SO
    I create the invoice from the delivery
    The system apply automaticaly the down payment invoice to the invoice (because I select a delivery that is linked to the so that I used to create the down payment invoice).
    If I make a sales order.
    I create the delivery from the SO
    I create a down payment invoice using copy from delivey.
    I make the incomuing payment for the down payment invoice.
    I create the invoice from the delivery
    The system DO NOT apply automaticaly the down payment invoice to the invoice (even if also this document is linked to the delivery that I use to create the down payment invoice).
    I know that I can select it manually. But I can select it manually also if I use the SO to create the down payment instead of the
    delivery. Why if the situation is the same in the firs case the system do it automatil^cally and in the second case I need to do it manually?
    Of course if I create a Down Payment invoice without selecting any document (SO, delivery..) the system don't know if you want to apply the payment to the final invoice.
    But If I select the delivey to create the down payment (the same if I select the SO): I want to apply the down payment to the final invoice of this delivery and not to another delivery.

  • Automatically Assign to user based on email

    Hi Guys
    One of our IT managers would like to be able to have service requests automatically assigned to members of his team based on emails he sends.
    At the moment we have an exchange connector set up that logs Service Requests for his team, and assigns it to the their support group. I'm trying to figure out the best way to further refine it to then assign it to a support person based on some criteria
    within the email itself. The way i figure it, I'll need to to do it via Orchestrator. 
    I'm thinking something like:
    Email generated Service Request triggers a runbook, that either pulls the email attachment out of the SR and then does (something) to resolve the AD User from the CC field and assigns it to that person. Then he can just CC the team member and it will assign
    it. The hard bit is figuring out how to resolve an AD user from a field in a *.eml file. 
    or
    He types the AD name of the user on say line 1 of the email, then orchestrator reads that line and looks up the AD user based on that. Seems easy enough but then he will need to make sure he uses either the absolutely correct spelling of their name, or type
    their SAMAccountName out. 
    By email CC field is the more user friendly option but I have no idea if that's even possible.
    Does anyone have any thoughts about how to go about this?
    Cheers

    OK so he has changed his request now after I spoke to him.
    He now wants any emailed service request to be automatically assigned to the sender.
    So basically I need to create a runbook to set the Assigned To user to be the same as the Affected User.
    Sounded easy enough, but the "assigned to" field is not present in the orchestrator update object action. I think this is now a question for the Orchestrator forum so i'll mark this off and start a new thread there.
    Thanks.

  • Automatic assignment responsible group partner function of Activities

    Hi,
    I need help on below requirement>>
    Automatic assignment responsible group partner function of Activities when status is set to u201CIncorrectly Assignedu201D.
    Thanks

    you can check with order status badi
    BR
    Radek

  • Automatic assignment of Support Team based on processor

    We have a help desk team creating Service Desk messages directly into SOLMAN (not from satellite system) using transaction NOTIF_CREATE and assigning processor. After they save the message, they open the message again in transaction CRM_DNO_MONITOR and change the Support Team manually based on the processor's Support Team. They are requesting if
    the assignment of Support Team can be done automatically based on the processor assigned during creation of message and
    when processor is changed/re-assigned after message has already been created.
    I've read some suggestions in the blogs and forums that partner determination can be done by creating your own BADI. 
    So I've created a new BADI "Z_FIND_TEAM" (copied from BADI CRM_DNO_PARTNER_1) and commented the logic which derives the support team based on the rule in transaction PFAC, and replace this with my own logic of getting the processor's Support Team. Then I assign this to the action. When I tested the action during creation of message (NOTIFCREATE), the action failed to get the support team because the CRM documents (where I'm getting the processor) is not created yet at the time that the BADI is executed.
    I  also tested the same action (but I didn't schedule it to run automatically) during changing of message (in CRM_DNO_MONITOR). The action successfully assign the correct Support Team when I already saved the new processor before choosing the action.
    But if I change the processor and do not save first before choosing the action, the support team of the old processor is assigned.
    In both cases, I need to get the value of the processor in the screen and pass this to the BADI.
    Can anyone help me how to pass the screen value of processor to the BADI.
    Or do you have other suggestions on how I can automatically assign the Suport Team based on processor.
    Thanks in Advance.
    Regards,
    Tess

    Hi Ragu.
    Thanks for your quick response.
    I've already tried assigning some standard access sequence in the support team's partner determination although the assignment of the support team always returns with the BP of the top organization unit in our org chart that's why I tried using the BADI afterwards.
    Our org chart is defined something like :
      IMS Support Team  org unit
          Help Desk  org unit
               Person 1
          Functional Team org unit
               Person 2
          Technical Team org unit 
               Person 3
    I've tried access sequence like "Organizational Data: Employee for an Org. Unit" and "Organizational Data: Organizational Unit for a User", but when I test this the support team is always defaulted with the "IMS Support Team's" BP Number (the top org unit).
    I'm not sure which access sequence I can use to assign the support team, for example, processor = "person3", the support team should be "Technical Team".
    Or do I need to create my own access sequence?
    I'm not familiar with these access sequence and not really sure how it works.
    Thanks.
    Tess

  • Problem Automatic Workload Repository after upgrage to 10.1.0.4.0

    Hello everybody,
    We upgraded last week a database 10g from release 10.1.0.3.0 to 10.1.0.4.0.
    Since this upgrade, the AWR doesn't create any snapshot anymore but the process MMON is still living.
    I tried to modify the interval of creation (reduce from 1H to 30min) of the snapshot using EM. When I execute the command I receive the following error statement:
    Please correct the following error:ORA-13516: SWRF Operation failed: CATPROC not valid ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 83 ORA-06512: at line 1
    Should I re-execute some script(s) from .../RDBMS/ADMIN to fix it?
    Thank a lot in advance for your support to solve this issue.

    Hopefully I could find a post on the Oracle Forum to fix my issue.
    I did the following operations:
    1) SHUTDOWN IMMEDIATE;
    2) STARTUP UPGRADE;
    3) SQLPLUS / AS SYSDBA
    4) @<Oracle_home>/RDBMS/ADMIN/CATPATCH.SQL
    5) When the script completed check that no errors occured.
    6) SHUTDOWN IMMEDIATE
    7) RESTART
    After this the Automatic Workload Repository could execute normally the snapshots and I was able for exemple to modify the frequence of the snapshots creation.
    I only don't understand why I had to execute this sql script to get in running. Should this script not be a part of execution of the upgrade 10.1.0.3.0 to 10.1.0.4.0 ?

  • Java.Lang.nullpointerexception issue only isolated to a repository on the job server

    I am having the
    "Java.Lang.nullpointerexception" error message issue only isolated to a repository on the job server.
    This error message appearing when i try to execute or create a new schedule for a job on mgmt console.
    I have few other repositories in the same server, with those repositories i am not having any issues, in terms of executing a job or creating a new schedule.
    Does any one had the similar issue, and know how to resolve it.
    Thanks a lot for the helpful info.

    Hello George / Viacheslav, thks to both for responding.
    BODS is based on 4.0 never was migrated from 3.2
    Under this repository almost 30 jobs currently running with no issues, which were created and scheduled before this error started.
    THis error message started just two months ago, since then it is not allowing any new jobs to be executed or creating any new schedules.
    But all prior jobs are running fine no issues.
    FRom designer i am able to execute with no problem, This issue is only happening on Mgmt console and only in this repository.
    Repository name has no apostrophe, all repsositories have the same style naming convention.
    "BODS_THENAME"
    Here i am pasting the block from viewsoure, where the error is:
     <span nowrap class="viewContext">Repository: BODS_JBROOK</span><table class="viewcontrollerarea" style="height:1"><COLGROUP><COL width="100%"/></COLGROUP><tr><td class="viewcontrollerheaderspacer"></td></tr><tr><td class="viewcontrollerheadertabarea"><table class="viewcontrollertabs"><tr class="viewcontrollertabs"><td class="viewcontrollertabs"><img border=0  src="../images/tab_sel_left.gif"></td><td class="selectedTab" nowrap background="../images/tab_sel_center.gif" ><a class="selectedTab"  href="/DataServices/servlet/AwBatchJobExecute?REPOSITORY_NAME=BODS_JBROOK&GUID=7cb34824-6d1f-42cc-9968-6c69d006ee87&NAME=Job_TestRaghuRepo&HISTORY=%2FDataServices%2Fservlet%2FAwBatchJobHistory%3FREPOSITORY_NAME%3DBODS_JBROOK%26SHOWREPO%3D2%26ACTIVE_VIEW%3DBatch%2BJob%2BConfiguration&ACTIVE_VIEW=Execute+Batch+Job">Execute Batch Job</a></td><td class="viewcontrollertabs"><img border=0  src="../images/tab_sel_right.gif"></td></tr></table></td></tr><tr bgcolor="#7997CD" ><td height="2px" class="viewfont" VALIGN=CENTER width="100%"></td></tr><tr><td class="viewcontrollermain"><div id="tipDiv" class="tipdiv"></div><span class="viewMessage">java.lang.NullPointerException</span><br><span class="viewMessage"> <!-- </span><br><span class="viewMessage">java.lang.NullPointerException at com.acta.repo.AwJobCommandOptions.getDBServerName(AwJobCommandOptions.java:322) at com.acta.repo.AwJobCommandOptions.getConnectionCmd(AwJobCommandOptions.java:388) at com.acta.repo.AwJobCommandOptions.getConnectionCmd(AwJobCommandOptions.java:379) at com.acta.repo.AwJobCommandOptions.validateConnectionInformation(AwJobCommandOptions.java:296) at com.acta.repo.AwJobCommandOptions.init(AwJobCommandOptions.java:168) at com.acta.repo.AwJobCommandOptions.<init>(AwJobCommandOptions.java:91) at com.acta.webapp.admin.report.AwExecuteBatchJobPage.submitAction(AwExecuteBatchJobPage.java:586) at com.acta.webapp.mdreport.common.DIView.doAction(DIView.java:564) at com.acta.webapp.mdreport.common.DIView.PrintReport(DIView.java:406) at com.acta.webapp.mdreport.common.DIViewController.PrintReport(DIViewController.java:84) at com.acta.webapp.mdreport.reportframework.JCActaGenericSection.PrintReport(JCActaGenericSection.java:112) at com.acta.webapp.mdreport.common.DIFrame.PrintReport(DIFrame.java:67) at com.acta.webapp.mdreport.common.DIMainFrame.PrintReport(DIMainFrame.java:98) at com.acta.webapp.mdreport.common.DIBaseReport.PrintMainFrame(DIBaseReport.java:233) at com.acta.webapp.mdreport.common.DIBaseReport.PrintReportImpl(DIBaseReport.java:158) at com.acta.webapp.mdreport.common.DIBaseReport.PrintReport(DIBaseReport.java:269) at com.acta.webapp.admin.servlet.AwBatchJobExecuteServlet.doPostSafe(AwBatchJobExecuteServlet.java:30) at com.acta.webapp.mdreport.reportframework.JSActaHttpServlet.doPost(JSActaHttpServlet.java:359) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.acta.webapp.mdreport.servlet.JSFilter.doFilter(JSFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.acta.webapp.mdreport.servlet.EscapeFilter.doFilter(EscapeFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619)</span><br><span class="viewMessage"> --></span><br>

  • G/L is not automatically assigned to material component

    Hi All,
    We use transaction CJ20N in creating a meterial component, non stock item category(N), G/L is not automatically populated. Could you please tell me how does the system in SAP automatically assign G/L account in the material component. I have checked the valuation class for the material group and a G/L is assigned there but it is not assigning in the material component.
    Thanks in advance

    hi,
    yes i have checked the network profile and the g/l account is mandatory, therefore prompting the system for the g/l account to be assigned first
    also, the g/l account is assigned to the valuation class
    Edited by: UserID on Aug 8, 2011 8:09 AM

  • Automatically assign a contract to sc

    Hi Experts
    We are working in Classical scenario.
    While creating a sc, when we click on the source of supply, we get a list 3 contracts.
    All the contracts are proposed and none of them is automatically assigned.
    Our requirement is that one of the these contracts should automatically get assigned as the source of supply, and when we delete this contract then we should get the list of 3 contracts to choose from.
    thanks
    gaurav

    Hi Gaurav,
    sorry, this is the  BAdI BBP_SOS_BADI_ICC and not BBP_SOS_CHECK.
    Please check the function module BBP_PD_SOS_FIND. Here you can see, that the  BAdI is called twice:
    - around the line 99:
    *   Call BADI for customer specific search
    - around the line 181:
    *   Call BADI for customer specific checks
    The implementation of the method BBP_SOS_CHECK should have therefore the result in the CT_FOUND_CONTRACT which can be manipulated.
    Regards,
    Peter

  • Automatically assign user roles on user creation

    Hi,
    I have a scenario where i am creating database users in Oracle database and we need that no matter from where the database users are created they have a couple of roles automatically assigned to them.
    How can this be done?
    Quick response will be very helpful.
    UZ

    post and wait for a valid answer more than 20 minutes, search by yourself at oracle documentation less than 5 minutes. worth it?
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_8003.htm
    a trick --> group of roles = profile
    another trick --> profile can be add in the user creation
    Edited by: Fran on 26-feb-2013 2:17

  • Automatically assign output type sale order

    Hi
    when i am creating sale order ..manually assign the out put type .every time ..it has taken to time process
    i need automatic assign output type to sale order..is it possible ..pls guide me in this issue could anyone.
    thanks&regards
    sesidhar

    Hi,
    It is 101 % possible through condition techniques.
    what is common or require to create sales order - Answer is Sales organization.
    Create condition table V/03
    Select fields Sales organization & document type etc.from field catlog
    genrate this table.
    Now go to access sequence V/07
    Create new or find which access is asigned to your OUT PUT CONDITION TYPE
    Assign this newly created table in that access
    Now assign this access to your out put condition type say std - BA00
    Now go for condition record maintenance VV11
    Put output condition >>> key combination >>> select sales organization & enter >>> maintain all data save.
    Now when ever u create sales order with the sales organization,then system automatically asign this output type to order.
    Kapil

  • Automatically Assign Control Key for External Assignment

    Hi All,
    Please can someone advise how I automatically assign the External Processing Control Key at the operation level using the Work Centre.
    I have a Main Work Centre set up which is linked to every Functional Location. This Work Centre has a default Control Key PM01 - Plant Maintenance - Internal,  assigned.
    I also have a second Work Centre which has Control Key PM02 PLant Maintenance - External, assigned.
    When I create a Work Order the system uses the Control Key assigned to the main work centre and assigns this at the operation level.
    When I change the Work Centre for Operation 010, to the second Work Centre (PM02 Control Key) it doesn't pull this through to the operation. I have to change this manually.
    Could someone explain why this is the case and how I resolve the problem.
    Any help appreciated.
    Regards
    Chris

    Teshin,
    Thanks for the information. I have checked the OSS Note the issue is as discribed in the note.
    I will look to implement the program corrections shortly and will confirm that the problem is resolved.
    Many thanks for the feedback
    Regards
    Chris

Maybe you are looking for