Current step in a job

Hi all,,
Is there any way or function module or code to find out, which step in the job is currently running..
suppose, if the step 5 is running,
then how can i know by coding- to identify the current step...
Thanks in adv.

Hi,
Use t-code SM50, check the job name and in the menu choose program->debug. There you can find which step is currently running.

Similar Messages

  • How to get the Asset's current step under a specific workflow process via API?

    Everyone,
    Is there a way to get the asset's current step for a specific workflow process by the WebCenter Sites API? We are showing out the asset created within the WebCenter Sites in another application via its API. We would like some actions get to be done once determined assets went into a specific step of a workflow process. Any suggestions are welcomed.
    Regards!

    Here is some information from the FDK Programmer's guide page 115:
    IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
    It cant span multiple flows, footnotes, table cells, or text lines.
    It is possible for a document to have no text selection or insertion point at all. This can occur in
    the following circumstances:
    ● One or more graphic objects in the document are selected
    ● One or more entire table cells in the document are selected
    ● There is no selection of any type in the document
    So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
    But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
    Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
    Many thanks in advance!
    Best Regards,
    Ellen N. Zhao

  • Printing inmediately works in one step but fails in other step of same job

    Hello all,
    I´m defining a job in SM37 with 2 steps which both of them should be printed inmediately. For this reason in each step I define "print out inmediately" in print specifications>properties>time of printing-->print out inmediately. The strange thing is that only works in one step (works means is printed inmediately) but in the other it doesn´t and I get the message SY355 "spool request without inmediate output"
    In Default Tab of user who is running both steps is not marked "output inmediately" but as far as I know it is not needed (that´s the reason we marked the option in the steps of the job).
    I changed the option f time of printing from "print out inmediately" to "print later" and back again to "print out inmediately" but it didn´t work. I deleted the step of the job and recreated again but it didn´t work.
    I have the same job with 2 steps defined in other SAP systems and are working properly (same version but probably different patching). The version of the system is ECC 6.0.
    Any ideas?
    Thanks in advanced,
    Félix

    Hi,
    We dind´t find the reason to this behaviour but we did a workaround: define a third step with program rspo0065 which print spool orders.
    Best regards,
                    Félix
    Edited by: Felix Granados on Dec 16, 2010 1:42 PM

  • Get current step number and handling max steps exceptions

    We are using IPCC Express Premium 4.0.4 and would like to know:
    1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead?
    We have been experiencing stuck Reserved agents and periodic callers stuck in queues, which has been occurring due to the maximum number of executed steps being exceeded. We have increased our "Max Number of Executed Steps" parameter from 1,000 to 2,500 for the time being and we may need that higher still.
    Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit.
    I asked question # 1 to help us better assess what our step execution counts are for different logic scenarios, rather than manually trying to count the steps within our script. I asked question # 2 so that we can send pages/emails to ourselves if a WFMaxExecutedStepsExceededException exception does occur and include the phone number of the caller who would have ended up not getting through so we can call them back not long after.
    Thank you for any info you can provide!
    Tom

    I'll try and answer the issues in this thread in turn:
    "1. Is it possible to determine the execution number for the current step? For example, x number of steps have been executed up until a certain point in the script. Possibly via a Set step using Java or a DB Read step?
    2. When the system parameter "Max Number of Executed Steps" limit has been reached the exception "com.cisco.wfframework.obj.WFMaxExecutedStepsExceededException" exists within the CRS Engine MIVR log. This exception does not exist within the available exceptions list in the "On Exception Goto" step. Is there a way that we can intercept this specific exception or will we have to use the "com.cisco.app.ApplicationTaskInactiveException" exception instead? "
    ----->Sadly this is not in the On Exception Goto step. Several people have commented on this to Cisco and I would recommend you join the crowd. Talk to your Cisco Account Manager. If you are a partner, submit a well thought out request to [email protected].
    "Our script has a lot going on after every 30secs of hold music....to determine if notification pages/emails need to be sent out to Help Desk staff due to long wait times, or to play updated status prompts only when appropriate....to name a couple. To our knowledge we have made things as efficient as possible (using Sessions) and we will be making a few more tweaks, but nowhere near enough to stay under the default 1,000 limit. "
    ----->You should be using sub flows for this type of work. Sub flows are a separate script and as such, have their own maximum step count each time you call them. Put all of this extra logic into a separate script and call it each iteration through the queued loop.
    "In most of the cases,you should not hit the 1000 step limit unless there's a loop in the script."
    ----->Exceeding this is not recommended by Cisco as it increases the amount of memory being used by each script instance. I would proceed with a great deal of caution.
    "I want to check to see if the caller pressed 1 (to leave a message type functionality) anytime during the queue loop. Not just when a delay expires and a prompt is played. This easily exceeds the default max steps. "
    ----->The common way of doing this is uploading a WAV of your music on hold to the prompt repository and then using a Get Digit String step with the MoH WAV file as the prompt for it. This allows the caller to press it at the IVR is essentially always waiting for a DTMF digit. You can use Match or If statements within the Success branch to determine if they pressed the correct digit.
    "Where I can make the max steps very large ?
    I am using CRA3.5.
    Please help ASAP,
    Thanks"
    ----->Again, not recommended! You can almost certainly break your script into appropriate functional components and use subflows to drastically reduce the likelihood of hitting the maximum.

  • Monitor the step in the job

    Dear all,
    I want know the function that can monitor the step in a job. I have a program that generates a job within steps. I want to abort the job if a step is cancelled. Can you share the ideas with me? Thank you!

    Hi,
    if you are in the loop and and executing the job within the loop... then in that case you can use the following logic...
    loop at......
    ...............        processing steps....
    call function bp_jobvariant_schedule....      " to schedule the job....
    if sy-subrc <> 0.    " if there was any error then it will exit from the loop which means no other jobs can *be executed
      exit.         
    endif.
    endloop.
    Regards,
    Siddarth

  • What property is the current step name in MainSequen​ce (client sequence) stored in to access in a process model?

    I'm trying to get the name of the current step that is about to be run in the MainSequence from a Process Model. This will be accessed in a "ProcessModelPreStep" callback. Thanks!

    Hi
    (TestStand 2.0.1f1)
    I have a attached an example ProcessModelPreStep callback to get that step name. I use the NameOf ( Parameters.Step).
    I hope this is what you are after.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    SequentialModel.seq ‏161 KB

  • Problem getting "Current Step" from task WLI upgraded from 8.1.5 to 10.3

    Upgraded an EAR file from 8.1.5 to 10.3.
    This included a process that creates a worklist task that shows up in the WLI 10.3 Worklist Console and has a Task Plan ID of /Worklist/Compatibility 8.1.x:9.0.
    Had an interface that extended TaskWorkerControl and am able to get TaskInfo that gives the StateType. In WLI 10.3 this provides the value for Working State.
    Need the value of the Current Step.
    Created a TaskBatchControl but am not able to get any TaskData and so can not get value of the Current Step.
    Is it possible to get TaskData from a worklist task that has a Task Plan ID of /Worklist/Compatibility 8.1.x:9.0?

    This was due to the permissions on the EJB.

  • Display current Step with API

    Hello,
    I am using LabVIEW 2009 AP1, and I am calling a TestStand 4.2 Sequence using the API. I am not using the Operator interface, as this is not a GUI, but a module that will just run a sequence.
    I essentially replicated the .NET calls listed here:
    http://forums.ni.com/t5/NI-TestStand/Calling-user-​created-Teststand-sequence-from-NET/m-p/703125?que​...
    Only with the LabVIEW activeX engine, properties and methods. Therefore I have references to the TS Engine, sequence file, process model and execution.
    What I need is access to the current step name. I don't need the whole sequence viewer, essentially just access to the "Step.Name" property at any specific time.I would guess this would be accessable through the execution reference, but I am unable to track it down. I am suspecting it will be getting a reference to a subproperty of the execution and then acting on that in someway, but I can't get there from here.
    Any ideas?
    Thanks,
    Tim
    Data Science Automation
    CTA, CLA, CPI
    SHAZAM!
    Solved!
    Go to Solution.

    Hi Tim,
    Just two other solutions:
    If you have a handle to your execution
    you could use Execution.GetThread() Note: You have check with property Execution.NumThreads how many there are present.
    lets hope there is only one!
    Access the thread, and get context with Thread.GetSequenceContext
    Now you should be able to access the name with SequenceContext.Step.Name
    Another solution to this stuff might be found there:
    http://forums.ni.com/t5/NI-TestStand/Is-is-possibl​e-to-retrieve-a-sequence-context-through-a-new/m-p​...
    linked to this: http://forums.ni.com/t5/NI-TestStand/Marshalling-t​he-IEngine-object/m-p/666852
    Hope this also helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Setting current step programatically for processTrain

    JDeveloper 10.1.3.3.0.4157
    I have a <processTrain> on a single meta-data driven jsp page. The <processTrain> has a value binding to a ProcessMenuModel instance created programatically in session scope. When a step on the process train is clicked I want to programatically set the current step in the ProcessMenuModel to reflect the chosen step. (This will be done from the action binding method of the <commandMenuItem> that the user has clicked)
    The application will then re-render the same jsp, but the step on the train should have moved forwards. Currently the <processTrain> renders, but no step is shown as current.
    How do I update the current step on the ProcessMenuModel?
    Thanks
    Matthew

    you could do the following:
    use the array g_tab_name to retrieve the order in which the tab parameters are stored in the array variables.
    ie
    for i in 1..g_tab_name.count loop
    :PX_TABS := ';' || g_tab_name(i);
    end loop;
    then you could on the fly set the tab current for pages value for the required tab depending on your application level item:
    in an application level on load before header process do:
    if app_item = 'X' then
    wwv_flow.g_tab_also_current_for_pages(1) := :APP_PAGE_ID;
    elsif app_item = 'Y' then
    wwv_flow.g_tab_also_current_for_pages(2) := :APP_PAGE_ID;
    end if;
    (Set the condition on this process to only fire for pages which can be current for multiple tabs)
    You will need to ensure that the tabs exist on every page you wish them to appear (other wise the process will fail). This can be done by setting the 'also current for pages' option for every page in the tab and then saving. The tabset will now appear on every page...
    You now delete the page numbers (from the 'also current for pages' option) which can be current for more than one tab and save the tab again. The pages current for multiple tabs will now have the tabset appear in the page definition but will not be current for any tab. The required tab will now be set to be current at runtime for these pages by the above process.
    hope the above makes sense and was what you required ;-)

  • How to terminate the next job step in Background job?

    Hi,
    I have the requirement from the user that want to terminate the next job step in the background job that currently running (Status Active).
    For example, Background Job A, contains 5 job step, once the background is running, we would like Job A not run thru job step 4 and 5, just run up to job step 3. 
    Anyone have any idea how can I do that?
    Thanks
    Nattawat S.

    Hi,
              Try to delete instead of cancel in SM37.
    To cancel and active job, select the job from SM37 and Click on STOP button in application toolbar. You can refer to your other thread for more info.
    Regards

  • Running a python script as a step in a job

    01/08/15 Let me see if I can phrase the question a little better.
    The following is what I currently have in a batch file, it works:
    python F:\Scripts\DataManagement\DataPublication\LandBase_Structures\FeatureIDPopulator.py "GISEDITDB" "edgis""gis_admin" "gisadmin" "LandBase_Structures" "LST"
    How would I write the string if I wanted this to run as an Operating system (CmdExec) step ?  Disregard what I tried to do from my original post.
    I am not that familiar with Powershell, but would that be a better way to approach this ?
    Again, thanks !
    Disregard what I 'tried' to do below.
    I am setting up a job which runs some SQL and a python script.
    The 'type' for this step is Operating system (CmdExec).
    C:\Windows\System32\cmd.exe /C \\WDC1GISSHP1\E\Python26\ArcGIS10.0\python "Z:\python\FeatureIDPopulator.py "GISEDITDB" "edgis" "username" "password" "LandBase_Structures" "LST""
    The items in " " are parameters passed to the script.
    It errors out with '...The system cannot find the file specified'
    I just added the cmd.exe, and only that executes now, not the rest of the line.
    How can I run this script ?  Can I run this as a step using a command line format as i am trying or should it be in a batch file ?
    Thanks.

    C:\Windows\System32\cmd.exe /C \\WDC1GISSHP1\E\Python26\ArcGIS10.0\python "Z:\python\FeatureIDPopulator.py "GISEDITDB" "edgis" "username" "password" "LandBase_Structures"
    "LST""
    Hello,
    Is Z: a mapped drive in your Profile? It won't be available for a SQL Server Agent Job. And take care that the used Service account do have permissions to access the network share
    \\WDC1GISSHP1 and the mapped drive.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to Identify the current step in execution

    Hi,
    My merge query takes a long time to run. I monitored the session and it was doing a full table scan and it registered as a long-operation. Now thats finished and it goes off to do whatever else it needs to do.
    How do I know whats its executing at any given point in time? I want to know what it scans / writes next and what object its scanning. In other words, I want to know which step of the execution plan is it currently executing.
    Is there a way of identifying this? Any V$ views which provide this information?
    Thanks in advance,
    K

    Will tracing the session tell me where it is
    currently?Tracing the session generates a file on disk with all the various waits in it. Generally, you would analyze that trace file at the end of the process to see where the time was spent. In theory, I suppose that it may be possible to watch that trace file and deduce what step the query was on. It's far from obvious to me, though, that this would be particularly practical-- the trace file grows pretty quickly and isn't particularly trivial to read, particularly in real time.
    Justin

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • Get Start and End times for each step in a job

    Can someone tell me how to get the start and end times for each step in a background job?  Table TBTCP only stores the time that the step was saved in a background job.  Table TBTCO stores the times for the entire job and not each individual step.
    Thanks.
    Ryan

    Hi,
    Please check this tables and FM perhaps they may help
    TBTCJSTEP  - Background Job Step Overview
    TBTCR          - Batch scheduler execution time
    TBTCS          - Background Processing: Time Schedule Table
    GET_JOB_RUNTIME_INFO
    Regards,
    Ferry Lianto

  • Obtaining Module Name for Current Step

    I need to obtain the modulue name (dll) that TestStand is using for the currently executing step. What method/property is avalable to obtain this information?"

    This gets me the step name for the third step in the sequence although, what I'm interested in is obtaining the module name for the currently executing step. This is a property of the step which is entered after selecting "Specify Module" in the "Module Pathname" edit box (See BMP).
    If you have any ideas let me know...
    Thanks,
    Steve
    Attachments:
    step_property.bmp ‏613 KB

Maybe you are looking for

  • Dynamic query to produce crosstab/pivot report

    Hello, I've not been able to find any examples similar to my situation but perhaps I'm using the wrong search phrases... I'm basically trying to create a cross-tab type report based on a dynamic query (since I do not know how many accounts a person h

  • Calling function in another button?

    I have 2 Movie Clips which create a menu system. When you hover the mouse over the 2nd button (will be adding more as soon as I figure this road block out) it drops down a menu. [Home][Forums] In the movie clip of "Forums", I created 2 labels. 1 is f

  • SLD change

    Hello, We need to change SLD layout from what is depicted on the left side on the picture below to the solution depicted on the right side. The reason for this is that services in SAP Landscape that depend on SLD are stopped during Solution Manager m

  • F380 All In One won't print text

    Printer will not print any text from any document.   It will print photos, graphics, graphs, tables, everything except text.  This is a brand new issue - it was working great; this is a new problem.  I have tried printing documents from my computer a

  • Is it possible to ensure to block a raw when is selected?

    I would like to know if it is posible to ensure block a row when is selected and then not to be able to be selected from another sesión. I tried xlock, rowloxk but sometimes the second sesión is able to select the row. I can't reproduce this behaviou