Pass parameter to a job when job is selected in a jobset

Is there any way to pass a parameter to a job when the job is selected in a jobset?
I have a jobset with a job twice, and I want to show in a textbox a X value for first job and Y value to second job.

You can pass information between the jobs; for details refer to:
Defining and Using Job Sets Supporting Input and Output Forwarding in Job Sets
Using Parameters and System Properties
Using System Properties
SystemProperty (Oracle Enterprise Scheduler Service API Reference)
So depending on your requirements you could define job set step parameters, input / output forwarding or name value pairs on the ENVIRONMENT_VARIABLES system property.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/

Similar Messages

  • Pass parameter in BP_EVENT_RAISE to a job

    Hi
    I am passing event parameter using in function module BP_EVENT_RAISE.
    Based on this event i am triggering the background job.
    How do i capture this parameter in the background job? This job has in steps one program that have as input field the parameter that i want to pass from the event.
    Thank you

    I my userexit a have this code:
    CALL FUNCTION 'BP_EVENT_RAISE'
            EXPORTING
              eventid                      = 'my_event'
              eventparm                    = xlikp-vbeln
    *         TARGET_INSTANCE              = ' '
            EXCEPTIONS
              bad_eventid                  = 1
              eventid_does_not_exist       = 2
              eventid_missing              = 3
              raise_failed                 = 4
              OTHERS                       = 5
    When the event is triggered a job stars. As i said, in the step of the job there is a report wich must run with the delivery number (input parameter) that is xlikp-vbeln. Could you give me a code sample that send the xlikp-vbeln to my job/program?
    Thank you.

  • SQL Developer 3.2.20.09: Cannot edit job when job type is based on a package.

    Hi,
    I feel this is some issue or bug when I am trying to edit an existing job. This job is based on a procedure within a package. However, if a job is based on stand alone a procedure then I can edit it.
    The issue is when a job is based on a procedure within a package, the 'Edit' window is not popping up.
    Is this a bug? If so, is it resolved in later versions? Currently, we are using 3.2.20.09. If it's not a bug, what's resolution/workaround?
    Thank you.
    Regards,
    Manoj.

    You can use the 32 or the 64 bit versions.
    But if you want to use the OCI/thick stuff, the bit level will have to match, 32 bit SQLDev with 32 bit Oracle Client with 32 bit JDK. Same goes with 64.
    When you download the 64 bit dist of SQLDev for windows, you'll need to get a 64bit JDK, and make sure you have a 64 bit Oracle Client if you want to use that.
    If you need more info, I wrote up more detailed instructions here
    http://www.thatjeffsmith.com/archive/2012/05/getting-started-with-sql-developer-less-than-5-minutes/

  • "Missing parameter values." Error when setting record selection formula

    Setup - VS 2008, CR 2008 (v12.0), Win XP & C#.Net
    I have a form which loops through all parameters (non-linked to sub reports, so only off the main report) and allows users to enter the values for each parameter. When hitting the preview button, I loop through all of the saved values, set the parameter field values and then add any additional filters into the recordselection formula as below. The problem i'm having is that the ReportDocument.HasRecords returns true if the ReportDocument.RecordSelectionFormula doesn't filter out every result.
    For example, I have a list of customers and if I set the selection formula to filter out a specific customer, ReportDocument.HasRecors returns true, if I set the selection formula to filter something that doesn't exist i.e. customer "xk39df", the moment this line of code runs "ReportDocument.RecordSelectionFormula = rsFormula;" - ReportDocument.HasRecors returns the following exception as opposed to "False".
    Message: Missing parameter values.
    Source: CrystalDecisions.ReportAppServer.DataSetConversion
    StackTrace:    at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.hasRecords()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_HasRecords()
    ErrorID: MissingParameterFieldCurrentValue
    The strange thing is, it works fine if the recordselectionformula selects a record which exists in the results - all parameters have a current value except for the linked parameters.
    This one has got me stumped!
    foreach (ParameterFieldDefinition parameterField in ReportDocument.DataDefinition.ParameterFields)
                    var query = ReportObjects.Values.Cast<Filters>().Where(objects => objects.ParameterName == parameterField.Name.ToUpper().Trim());
                    foreach (var item in query)
                        parameterField.CurrentValues.Clear();
                        parameterField.CurrentValues.Add(item.ParameterValue);
                        parameterField.ApplyMinMaxValues(item.MinLength, item.MaxLengh);
                        parameterField.ApplyCurrentValues(parameterField.CurrentValues);
                var records = ReportObjects.Values.Cast<Filters>().Where(recordSelection => recordSelection.RecordSelectionFormula.Trim().Length != 0);
                foreach (var item in records)
                    rsFormula += item.RecordSelectionFormula;
                if (rsFormula.EndsWith(" AND "))
                    rsFormula = rsFormula.RTrim(5);
                ReportDocument.RecordSelectionFormula = rsFormula;

    Hi,
    The report has it's own ADO Datasource set in crystal reports, so I just pass the log on information to the report object before doing anything else.
    this.DataSourceConnections[0].SetConnection("ServerName", "Database", "sa", "Password");
    I then do a refresh before applying the parameter values (I do this because the user can preview the report more than one time by using a preview button on the parameter form without re-loading the report object)
    this.Refresh();
    Then I set all parameter values followed by setting the recordselection formula.

  • Passing parameter to next dropdown

    My question is..is it possible to passing parameter to second drop down .if i select one value(ex : INDIA) first dropdown that value shd go to second drop down qry then matching records only shd display in second drop down.
    i ll write query for second drop down
    select state from state where country =  -
    >(INDIA)
    issues:-
    if i refresh the report first showing one text box then i entered the country values after that shwing country drop down and
    state dropdown according that values.. i need to show only two dropdown box and through passing parameter..

    Sounds like performance issue (number of records) causes the usual cascading parameter to be too slow for you.  Check you didn't forget to join the tables used by the dynamic parameters. 
    If that was not the issue, you can create your own viewer application and take care of the parameters using your own GUI.
    Alternatively, one of the 3rd-party viewers (see list at http://www.kenhamady.com/bookmarks.html) provides special dynamic and cascading parameters that would solve this issue for you.  Each parameter can use another crystal report to provide the list of values, and each of these reports can have it's own static or dynamic parameter (providing the cascading effect).

  • Pass Parameter to Job which calls a SP with the Parameter provided?

    ok, I have a problem that is getting the better of me.
    I have an SP called sp_Rep_QTR which expects the following parameters @stardate,@Endate.
    Now what I want to do is the following,
    Create a Job which will EXEC the sp_Rep_QTR at a time(@active_start_time ) provided and pass the @stardate,@Endate parameters to the SP .
    The @stardate,@Endate parameters will be passed to a SP which will create the Job - These are passed from a web page.
    I'm completely in over my head on this one so any help would be great.
    Thanks..

    One way of hacking this problem is by dynamically updating the job step which executes the stored procedure to include the parameters the user provided.  You can do so by using
    msdb.dbo.sp_update_jobstep.
    So for example, you could create a job named "Test job" and in that job the first step would be to execute your stored procedure.  You would then use the following code to update that step at run time:
    execute msdb.dbo.sp_update_jobstep
    @job_name = N'Test job',
    @step_id = 1,
    @command = 'execute my_proc @my_variable = ''my_value'''
    You'd then use sp_start_job like so:
    execute msdb.dbo.sp_start_job @job_name = 'Test job'
    Your job would then execute using the value provided at run time for the @my_variable parameter.

  • Retrieve event and event parameter in event based background job

    Hi,
    I think it must be possible but I cannot find documentation of it:
    When a batchjob is triggered via an event (defined in SM62) how can I retrieve the event and event parameter from within the triggered job itself. We want to use the event parameter to trigger other batchjobs, but first we must be able to retrieve them...
    Thanks
    Tom

    Standard SAP triggers can be found in TCODE SM64, Background Processing events.

  • Write to spool even when job abends?

    There's got to be a way to do this, but I can't seem to find it.  I have several background jobs, each of which writes some diagnostic information to the spool.  That diagnostic information would be most useful in cases where the job terminates unsuccessfully.  But, in those cases, the spool is never saved, and all that information is lost.
    I know I can write to the job log instead of the spool, but is there a way other than the log to obtain\show that information?  Assume that my program is robust enough to capture all error conditions before terminating.

    Hello Chris,
    I'm sure you might be knowing this, but shall post it here anyways, just in case it skipped your mind.
    When you run a background job, the job will abend when either of the following types of message are issued in the program:
    1. Warning Message ( Type W )
    2. Error Message ( Type E )
    3. Abend Message ( Type A )
    4. Short Dump Message ( Type X )
    In case of either an Abend Message or a Short Dump Message, the entire spool list is erased and thereafter unavailable.
    However, in case of either an error message or a warning message, the contents of the spool till the point where the message has occurred are retained.
    So, in your case, I suspect that there are some abend messages in the program, issued upon erroneous conditions. If you could change them to ERROR messages (or WARNING messages as you deem appropriate), the spool list is not destroyed.
    For your further understanding, I have included the following code snippet.
    =======================================================
    do 10 times.
    write : / sy-index.
    case sy-index.
    when 3.
    message s702(bctrain).
    when 5.
    message i702(bctrain).
    when 7.
    message w702(bctrain). " or message e702(bctrain).
    endcase.
    enddo.
    =======================================================
    The above program, when scheduled as a background job will get abended, but will retail the spool list :
    1
    2
    3
    4
    5
    6
    7
    After 7, the warning message abends the job and no other numbers are printed.
    Hope this explanation would help you overcome your problem.
    Regards,
    Anand Mandalika.

  • Any way to get more than 100% zoom on print jobs when printing multiple pages?

    I know how to increase the size of a print job, when I am printing one page at a time. But when I go to print 2 pages at once (the multiple page print function), there are always large margins around the page. I'm ok with saving paper and printing up two pages, but it seems silly to see small print and wide blank margins. Is there any way to increase the print zoom, when printing multiple pages per sheet of paper?

    I once overshot the limit by marking too many photos to fit within 99 pages, but I could never figure out how to fool the application and had to give up trying to add those 14 extra photos.
    I asked a friend (who practically lives in Terminal) if he had any way of modifying that limit, but he reminded me that if their printing services are set up to bind books and bill for only 99 pages, fooling the application might be useless if the service only prints me a 99 page book and discards the additional pages.
    I can understand that you wouldn't want to let people print 1000 page books, but I sent feedback anyway to allow me to increase the limit. Anyone know of any service that lets you print beyond iPhoto's limits?

  • Boy what a screw job when the program freezes in the middle of site wide fo

    Boy what a screw job when the program freezes in the middle of site wide folder name changes.
    Then you never know what did get changed or not until you wade thru every possible one.
    And you cant just redo change the folder name, cuz the folder name did change.
    Further, every attempt locks the program.
    lost on broken links...
    OK I'm talking about changing a folder name: ceaseless freezing
    OK Now when it does work, none of the
    AC_RunActiveContent.js
    updated.  What a mess
    DW CS3
    Mac OSX.4.11

    you can force quit the front-most application in Mac OS X v10.5 or later by pressing Command-Option-Shift-Esc for three seconds.

  • SSIS package works in development environment but fails when job scheduler executes, file path invalid

    SIS package works in development environment but fails when job scheduler executes, file path invalid
    Relatively simple package to get OLE-DB connection to MS FoxPro 9.0 DB
    The failure in the job log states that the path is invalid its a network path (\\192.168.1.xxx\foldername) this has been run several ways with the remote computer being mapped as a network drive and through the \\ notation described above.
    Thinking it was a security issue between the SQL agent account and my account I tested by subsitution myself as a proxy account for the agent when running this job, again same result failed on network path.
    One issue I see is that the remote computer is running Server 2000 (legacy software incompatable with newer versions) 
    Is it possible that this is a security issue, since if i understand correctly the current MS domain security model didn't exist until Server 2003.

    Hi REIData,
    Have you got the issue resolved? Based on your description, please make sure the target folder is shared properly. If the computer on which the SQL Server Agent job runs doesn’t join the domain as the server that hosts the shared folder, you have to share
    the folder with everyone by adding “Everyone” to the people list on the File Sharing page of the folder and assign "Read/Write" permission to it.
    Regards,
    Mike Yin
    TechNet Community Support

  • How to pass parameter when create view link

    Hi,
    I used R12 to implement OAF. I create a VO with paramenter such as SELECT item_code,parent_item_code,month_budget_id
    FROM cux_ce_month_budget_lines_t
    where month_budget_id=:1
    But when I create VL for this VO. It seems the parameter :1 can not be passed.
    Could some one to help lookinto this?
    Best Regards,
    Eileen

    You donot need to pass parameter while creating the View Link. Once the view link is created then you assign the bind parameter to the master VO and execute the View link. The Child VO would automatically be executed.

  • How to Configure Email for a Specific job when its Fails

    Hi
    We have So many jobs running in our HR system and BW systems but with no proper Monitoring Configuration. We have Solution manager 7.0 with EHP latest version with CCMS configured. How to setup the email in Solution Manager using CCMS when Job failed?
    Is there any standard way of doing it from HR system and BW system other than using solution manager? so that we can use it for Temporary solution.
    Thank you for you support
    Regards
    Bhaskar

    Hello Bhaskar,
    I recommend to use SAP CPS by Redwood to schedule you BW and of course also your HR jobs.
    Please check out the following document:
    SAP CPS by Redwood - Increasing the Value of SAP NetWeaver Business Intelligence
    Scheduling
    The monitoring capabilities fo SAP CPS are described in the documentation:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0a/1a5678b72c418d96242330b96473c6/frameset.htm
    You can use SAP CPS together with SAP Solution Manager free of charge (and even the OEM license for SAP CPS is free of charge). This way you can also combine SAP CPS and Business Process Monitoring in SAP Solution Manager.
    /people/martin.lauer/blog/2009/05/11/process-scheduling-adapter-for-sap-solution-manager-for-everybody
    Kind regards,
    Martin
    Job Scheduling Managment  -  http://service.sap.com/jsm
    SAP CPS                               -  Scheduling

  • ExportPDF does a poor job when converting pdf tables to MS Excel tables - Any advice?

    ExportPDF does a poor job when converting pdf tables to MS Excel tables.
    The resulting file had several lines merged into one and had strange font sizes and line heights and widths.
    If needed, I can send both files to show what happened.
    I am using Adobe Reader 10.1.4, with Adobe ExportPDF (unknown version, bought Oct 4, 2012), MS Excel for Mac 2011, version 12.2.2 (120421) on a MacBook Air with Mac OS X version 10.7.4.
    Best regards,
    Pedro

    I have the same problem. I would like to convert bank statements to Excel but am only interested in the transaction history. Is it possible to select only certain parts of the document as a template for other conversions?

  • AutoPatch error: Unable to find job when restart

    OS is RHEL 5.7, and Oracle ebs R12.1.1 installed with patch applied 6078836, 11072566, 8576725...
    Problem summary: AutoPatch error:Unable to find job when restarting, and FND_INSTALL_PROCESSES table does not exist
    In the NLS patch update with 4 merged patches,
    while 16 workers are running to create rdf files as below, it made my Putty (v0.60) crashed. Below example is succeeded case taken from the log of one worker to let you know which task was on-going...
    Source: /d01/oracle/SID/apps/apps_st/appl/pa/12.0.0/reports/SF/PAXPCTCE.rdf
    Successfully generated report "PAXPCTCE.rdf".
    Generated 1 files successfully.
    Generated 0 files with non-fatal warnings.
    Generated 0 files with fatal errors.
    adrepgen is exiting with status 0
    End of adrepgen session
    Date/time is Wed Sep 07 2011 15:22:44
    Eventually, I had to run adctrl for changing job status <Failed>, and re-run adpatch. Then it ran several assigned jobs completed successfully.
    Then again, it made my Putty crash, and repeated few times like that.
    When there are 69 jobs remaining, autopatch error occurred.
    There are now 69 jobs remaining (current phase=A1001):
    0 running, 69 ready to run and 0 waiting.
    Reading completed jobs from restart file (if any).
    AutoPatch error:
    Unable to find job when restarting.
    When adctrl was checked to see worker status [1],
    Enter your choice [1] : 1
    Error: The FND_INSTALL_PROCESSES table does not exist.
    This table is used for communication with the
    worker processes, and if it does not exist, it
    means that the workers are not running,because
    the ad utility has not started them yet.
    How can this be resolved?
    Can I just re-run the patch as if it runs newly by ignoring the previous session of adpatch when asked the continuation of the previous session at the adpatch?
    Will this help?
    Thanks as always for the help.
    - SH

    Error: The FND_INSTALL_PROCESSES table does not exist.
    This table is used for communication with the
    worker processes, and if it does not exist, it
    means that the workers are not running,because
    the ad utility has not started them yet.
    How can this be resolved? If the table does not exist, then you cannot fix it.
    Can I just re-run the patch as if it runs newly by ignoring the previous session of adpatch when asked the continuation of the previous session at the adpatch?
    Will this help?Correct -- This is the only option you have.
    Thanks,
    Hussein

Maybe you are looking for

  • ITunes won't open ; Apple software update error

    When I double click iTunes, the computer thinks briefly (hourglass) then does nothing.  iTunes won't load. QuickTime Player opens fine. But Apple Software Update now gives me a strange error message. Anybody know how to interpret it?  Might it be lin

  • How to create "time sheet" bar chart?

    Hi Experts, I am using Crystal Reports 2008 and I would like to ask the steps to create a time sheet liked bar chart with following information: Imagine I collected the CPU usage of a computer every 30 seconds. In the report layout, X-axis should be

  • Keep failing converting a PDF to w word document

    It's been days that I'm having trouble converting a PDF file into a word document...A message keeps popping saying that an "error has occurred which stopped the processing of the PDF. 

  • Problem when data update through the jsp

    Hello, Im using hibernate 3 with postgre database with proxool . i got edit list jsp which has form and list of data, when i update the data and reload the page. data in the list update, when i refresh few more times, its start to show old data again

  • TO 2 steps confirmation BAPI.

    Hi everybody, I'm trying to perform a 2 steps confirmation of a TO with the FM L_TO_CONFIRM, but I don't find anything in the FM, where I can specify that is a 2 steps confirmation (first pick and then transfer). Do you know how can I do that? or Do