GP SP6: Find completion date of a process instance

Hi all,
   We are using GP SP6. We want to find out the actual completion date of a particular process instance. Something like <i>getActualEndDate()</i> that's available in SP7.
   Is there a way to do this?
Regards,
Satyajit.

Hi Satyajit,
You can implement it in the following way:
<code>
InitialContext context = new InitialContext() ;
IReportingFactory reportingFactory = (IReportingFactory)context.lookup("/sap.com/com.sap.nw.eu.gp/ReportingFactory") ;
IBlockReporting reporting = reportingFactory.getBlockReporting(processId, processId, currentUser);
java.util.Date actualEndDate = reporting.getActualEndDate() ;
</code>
If process is running or active the end date is null.
As I remember it works correctly for completed processes. For cancelled processes it return null too.
DC: cafeugp~model
PP: process
Best regards,
Aliaksei

Similar Messages

  • How to find Installation Date for each SQL installation

    Dear All,
    I need a basic info. How to find installation date of each SQL instance (My environment running with multiple standalone/cluster instances)?
    So, I need a query to find installation date easily (I don't want to check it in registry by manual). Thanks in advance...

    Hi Balmukund
    This is the same answer that (1) Prashanth posted
    from the start, letter on (2) Stan posted
    this again with the same link, and now for the third time, (3) you posted it with the same link :-)
    * This answer is correct for specific instance.
    The OP asked a solution for several instances. Therefore he should execute this on each instance. As I mentioned he can do it dynamically on all instances, for example using powershell (basic logic is, first find all instances and than post this query in a
    loop).
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]
    Then your answer is correct :)
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Process Instance Monitoring

    During the Process Instance Monitoring mechanism, the data generated as process instances execute is initially stored in the runtime database. How can I configure the monitoring information to go into a database or a local file?

    Namrata,
    The run time bean information is also stored in the default database pointbase of weblogic.You can point this database to any other database like Oracle ,db2 etc.You need to run the databse scripts which you can find in the installed directory.
    You need to create a connectionPool,JNDI and need to use this JNDI name in the weblogic server Admin console.
    Or you can change the default database setting during the domain creation.
    Hope this helps you.
    Regards
    Bishnu

  • Using wliconsole's process instance monitoring and audit trail

    Hello,
    I have couple of questions about wliconsole's process monitoring capabilities to be able to use in real production environments.
    1. Is it possible to add some custom data to the Process Instance Summary table? For example, we would like to show the party that send the initial request, and some internal process type information.
    2. How can we achieve audit trail logging when we have several processes? For example, we have business processes that span over several wli-processes, and our process is split into several re-usable sub-processes. And the audit trail stops at the process boundaries. Finding the corresponding sub-processes is quite a challenge now.
    Thanks,
    Timo Lukumaa
    Reaktor Innovations www.ri.fi

    The WLI version we're about to use is 8.1 sp2.
    One question more:
    3. Is there somekind of metadata or resource directory in wliconsole or some place else?
    We're about use a SOA style architecture where re-usable business logic is modeled as web services.
    So we would like to have one place (a web page) where the available services could be seen and corresponding WSDLs and schemas downloaded.
    Or are we just looking at the wrong product? ;)
    Thanks,
    Timo

  • How to get creation date from Fuego.Papi.Instance

    I got all process instances from papi. The instances are Fuego.Papi.Instance.
    I also need the creation date of the process instance, but I cannot find it in Fuego.Papi.Instance.
    How to get the creation date from Fuego.Papi.Instance?
    Thanks,

    Yes, I knew Fuego.Lib.ProcessInstance is able to get creation date.
    But my code is not in the that process. I am using papi to get the process instance which returns me Fuego.Papi.Instance. Is there a way to get Fuego.Lib.ProcessInstance from Fuego.Papi.Instance?
    My code is like this
    businessProcess = ProcessService.getProcess(process : "processName");
    instances = businessProcess.getInstancesByFilter(filter : instFilter);
    //then loop each instance and I need the creation date

  • Completed Process instance - History of Context data

    Hi,
    I've a completed process instance. I'm able to look for that process instance at "Manage Process" -> ....... -> "Advance Search".
    My question is, how can i view the history of the context data for each of the tasks of the completed process instance. When i select the the process instance and click "Show Tasks" button, i couldnt see any task instance ID for that completed process instance.
    Any idea?
    Any help would be much appreciated.
    Thanks.
    - julius

    Hi David,
    Thanks for the reply.
    I'm interested at the context data/input/output parameters of all the tasks in a completed process instance, for debugging/administration purpose.
    completed tasks cannot be returned to the NWA even though they are partly available in the system.
    Can you explain more about "partly available in the system" ?
    Thanks,
    - julius

  • SALE ORDER COMPLETION DATE

    Hi all,
               We are create one sale order in va01N after completion of all process we make a delivery entry in VL01N.We are creat morethan five deliveries.
          Any standard report to see the sale orders completed date
    ie order closed date wise report.
    Regards,
    T.Murugu

    Hi
    You can use Acceptance field at Sales Order item to enter date on which final delivery is made.
    Based on that field, we can create a Z report lisitng Customer, Order Number, and Delivery Date (Maybe more fields based on the business scenario)
    Hope you find it useful.
    Reward points if you do.
    Regards
    Ravi

  • IE returns "Cannot find server" page during Servlet processing

    I have 2 JSP applications, that require a certain amount of server processing before they complete. For small amounts of information, both of these applications work fine. However, with larger amounts of processing, IE seems to timeout or have a problem maintaining its session and returns with "Cannot find server" - the actual server processing continues meanwhile. This only happens with IE - other browsers maintain persistence. The "timeout" is always consistent - 5 minutes or so with one of the applications, 13 minutes with the other.
    I can find no IE configuration that controls this. Since this doesn't happen with other browsers, is this an IE problem or a design issue with the application that doesn't manifest itself with other browsers ?

    I wouldn't call it an IE problem. I would call it a design issue -- you should not take that long to return a response to the browser. Instead, you should return an immediate response that says something like "Your request has been received for processing", and have some other thread processing requests off-line. That other thread should send a notification (by e-mail?) to the user when the request has been processed, including a link where the data can be accessed.

  • How to access biz data of process instances in workspace at any time in 11g

    Hi,
    We are using Oracle BPM Suite 11g.
    Our users want to be able to check and search the business data associated with the process instance at any time (i.e. even after the instance is completed. And the business data should be included in the task list or search result list in the BPM workspace.
    I am new to Oracle BPM 11g. Please help. For the data to be displayed in the workspace, should I define them as “Process Data Objects”?
    Regarding to how to display the data, I find something about Flexfield. But the Oracle document says the Flexfield is for the data that saved in human workflow database schema. When the process instance is completed, will the data in human workflow database for this instance be removed? Can I setup flexfield for the Process Data Objects?

    Hi Ramandeep,
    Apparently I am not getting the required exception.
    I have a TF that outputs an Invalid Region Site when I run it and the when I run it I only got the loading page image of ADF.
    Looking at JDEV logs, I see an Invalid Region Site error
    Here's what I did, I created a TF template with only one view in it like this.
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-template id="TFTemplate">
        <default-activity id="__7">errorPage</default-activity>
        <exception-handler id="__14">errorPage</exception-handler>
        <view id="errorPage">
          <page>/com/test/errorPage.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-template>
    </adfc-config>My error page as this:
    <af:panelGroupLayout id="pgl1">
         <af:outputText value="Error has occurred!" id="ot2"/>
         <af:outputText value="#{pageFlowScope.MyErrorHandler.stacktrace}" id="ot1"/>
    </af:panelGroupLayout>...and my bean.
    public class MyErrorHandler
      public String getStacktrace() { 
        ControllerContext context = ControllerContext.getInstance();
        ViewPortContext currentRootViewPort = context.getCurrentRootViewPort();
        Exception exceptionData = currentRootViewPort.getExceptionData();
        if (currentRootViewPort.isExceptionPresent())
          if(exceptionData!=null)
            return exceptionData.getMessage();
        return null;
      }But exception data still returns null.
    I exactly wanted to show this invalid region site but it seems I cannot catch it.
    Any idea why?

  • EWA Report Issue: No complete data is populated in EWA report

    Hi All,
    I am facing a problem where in, the generated EWA  report for our XI system is not poplated with the complete data. This problem is there from past 2 months and before that this EWA report for XI system was duly generated with full and correct data.
    There has been no changes in the recent time and all of a sudden this problem erupt. May any one help me in diagnosing this problem and solving it? Help is greatly appreciated.
    Should there be any queries, please do ask me.
    Waiting for your kind replies.
    Regards,
    Faisal

    Hi Faisal,
    Last time I asked you if the Red flag was gone.
    You are saying the ABAP data is missing.
    This would mean there is a Rated EWA report missing the ABAP instance data.
    Does this mean it is a dual stack and the Java data is present.
    EWA is a pretty straight forward process, so if you follwo the process, you can usually narrow down where the problem has occurred.
    If ABAP data is missing in a generated EWA report, the first place to look for that missing data is in the service session.
    You can view the service session by clicking the eye glasses under tha activity column in DSWP, or entering the session number in transaction DSA. If the data is mssing, then it never got to solution manger from the managed system, so you would then check the RFC functions and the RFC user has a valid logon, THere would be no point checking SM:EXEC:SERRVICES, or authorizations if the data is not int he service session.
    If the data is in the service session and is missing, then it would be in the processing of the session into a Word ot HTML document, not the processing of the service session, because it would be processed and rated already by SM:EXEC SERVICES..
    I had explained that you create an EWA and it is scheduled in DSWP > Solution Monitoring > Earlywatch Alert
    it creates a service session, with a number and a tree. This is determined by the defintions in SMSY and the mapping to the DMD. It is scheduled for a date and time. On the managed system via RFC throught the maintenance package task in SDCCN or perhaps a scheduled refresh session taask, runs and via RFC to SOlman, logs on with the RFC use (SM*_BACK) and gets the
    session numbers of unprocessed servies sessions for that SID. If it can't open the service session, it will just find not sessions to refresh. If it can, then an EWA task is created that will prepare a transport with the collected data. So if the collectors have issues, data won't be available. ST-A/PI and ST-PI are involved on colelction of data and preparation for transport on managed systems. But there is also SAPOSCOL and ST03 and ST06 that need to be checked. The SDCCN EWA task log. Then it sends the data back to Solman via the RFC and either the single Flask or the red flag will then turn to 2 flasks indicating the data is ready to be processed by SM:EXEC SERVICES. SM:EXEC SERVICES processes the session, populates it, and rates it.
    Then you can look at the session in DSA o DSWP, you can geerate the report in Word or HTML.
    So this is the process.flow overview. And it helps to know where it gets to in the flow to determine where something went missing or if it was ever there at all.SM:EXEC SERVICES doesn't colelc the data. So if it processes a service session the user had the authorizations. If the data is not int he service session its because it was never passed to Solution manage.
    Iif the data is in thd service session, but missing from the report, then the issue is likely with ST-SER, or perhaps SCU.update has not been applied.
    I suspect that the data is not in the service session and you are still having issues. Is the EWA still red flagged? Yes or No?
    If yes, then you still have an issue where no ABAP data was sent via SDCCN to Solman. If no, then likely there is an issue with
    collection, where data is being sent, but some data is missing, and this could be due to errors that have not been addressed in the SDCCN task logs. Or it could be problems wit SDCCN service definitions, and may need to be replaced.
    I hope tis helps.
    Regards,
    Paul

  • How to get the complete data from Webdynpro using a RFC

    hi guys,
    A form is created in the webdynpro, when that pdf form is called the user have to provide the key field ie the employee number in the form and then when he press the 'go' button a rfc is called and it gives all the details of the employee in the form. Then the user have to input some fields in the form and he have press the submit button. My problem is here, when the user is going to press the submit button that form will be converted to a stream (binary) of data and it is sent to one of the import parameter used in the RFC.
    I have created a RFC and created a import parameter of data type XSTRING, since i want to see what exactly R3 is receiving from web dynpro i am writing this contant in the sever as a text file. When i saw that text file i cant see the complete data.
    And when i searched in R3 the capacity of xstring is 1024 CHAR, so i dont know how to capture the entire data from webdynpro into my R3.
    I give the code what i worte please tell me am i missing anything in my code, or is there any data type which can hold more than 500kb of data which is coming from webdynpro.
    FUNCTION ZSEND_MAIL_ATTACHMENT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(OUT_PLACE_LEVEL) TYPE  XSTRING OPTIONAL
    *"     VALUE(BIN_DATA) TYPE  INDX_CLUST OPTIONAL
    *"  TABLES
    *"      IT_MESSAGE STRUCTURE  SOLISTI1
    Data Declaration
      DATA: gd_cnt TYPE i,
          gd_sent_all(1) TYPE c,
          gd_error TYPE sy-subrc,
          tab_lines LIKE sy-tabix.
    Structure Declaration
      DATA : BEGIN OF it_file OCCURS 0,
              row(255),
             END OF it_file.
      DATA : BEGIN OF i_split OCCURS 0,
      row(50),
      END OF i_split.
    Internal Table Declaration
      data : it_receivers like table of SOMLRECI1 with header line."occurs 0.
      DATA : objbin LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE. "sOLIX
      DATA : it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
      data : wa_receiver like table of SOMLRECI1 with header line.
      data : it_receiver like table of SOMLRECI1 with header line.
      data : v_bin_data like SOLISTI1 occurs 0 with header line.
      DATA : gd_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
    *data bin_data1 like table of solix with header line.
      REFRESH : objbin, it_packing_list, it_receivers, wa_receiver.
      CLEAR   : objbin, it_packing_list, wa_receiver, it_receivers.
      DATA V_SUBJECT(255) VALUE 'HI'.
      gd_doc_data-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_message ).
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name = 'SENDFILE'.
      gd_doc_data-obj_descr = v_subject.
      gd_doc_data-sensitivty = 'O'.
      APPEND GD_DOC_DATA.
    Appending The Internal Table it_packing_list
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'RAW'.
      it_packing_list-body_num = tab_lines.
      APPEND it_packing_list.
    *CALL FUNCTION 'GUI_UPLOAD'
    *EXPORTING
    *filename = V_FILE_PATH
    *filetype = 'BIN'
    *TABLES
    *data_tab = BIN_DATA.
      move bin_data to v_bin_data.
      append v_bin_data.
    *move soli to bin_data.
      LOOP AT V_BIN_DATA into objbin.
    MOVE v_bin_data TO objbin-line.
        APPEND objbin.
      ENDLOOP.
      CLEAR it_packing_list.
      DESCRIBE TABLE objbin LINES tab_lines.
      it_packing_list-transf_bin = 'X'.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 1.
      it_packing_list-body_start = 1.
      it_packing_list-doc_type = 'PDF'.
      it_packing_list-body_num = tab_lines.
      it_packing_list-doc_size = tab_lines * 255.
      APPEND it_packing_list.
    data file(255) value '/tmp/bali.txt'.
    *Appending The Internal Table it_receivers
    close dataset '/tmp/bali.txt'.
    open dataset '/tmp/bali.txt' for output in text mode encoding default.
    if sy-subrc = 0.
    loop at objbin.
    transfer objbin to '/tmp/bali.txt'.
    endloop.
    else.
    write 'hi'.
    close dataset '/tmp/bali.txt'.
    endif.
      it_receiver-receiver = '[email protected]'.
      it_receiver-rec_type = 'U'.
      it_receiver-com_type = 'INT'.
    APPEND wa_receiver.
    move wa_receiver[] to it_receiver[].
      append it_receiver.
    *Move wa_receiver[] to it_receivers[].
    Clear it_receivers.
    if i_OUT_PLACE_LEVEL NE 0.
    loop at it_receivers into wa_receiver.
       loop at it_receivers into wa_receiver.
    **Function Module To Post The Message To Externa Mail
         CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
             document_data              = gd_doc_data
             put_in_outbox              = 'X'
             commit_work                = 'X'
           TABLES
             packing_list               = it_packing_list
             CONTENTS_TXT               = objbin
             receivers                  = it_receivers
           EXCEPTIONS
             too_many_receivers         = 1
             document_not_sent          = 2
             document_type_not_exist    = 3
             operation_no_authorization = 4
             parameter_error            = 5
             x_error                    = 6
             enqueue_error              = 7
             OTHERS                     = 8.
         clear wa_receiver.
    ENDFUNCTION.

    You have to convert your long string to a table of shorter strings.
    There may be other ways, but one possibility is to use a loop to process you string.
    while (there is something left)
       put the next e.g. 1024 characters in a new row of your table
    endwhile
    If you need to reconstruct your string from the table, don't use simple concatenation since it will remove blanks at the end of lines. Believe me (from experience) sooner or later this will happen.
    Instead you need to either set the subsections of your long string, or insert from the end of your table and keep shifting the contents (probably less efficient) right

  • Reschedule strategy plan based on last actual order completion date

    Dear all,
    Hope you can help me with this one.
    We use strategybased maintenance plans. We want to achieve that the next scheduled call date is calculated taking into account the actual completion date of the last (previous) call.
    For example :
    strategy = 1 maintenance order every 52 weeks.
    start of cycle = 01.01.2009
    First call  created a mainenance order for 01.01.2010
    This order did however only get actually completed on 20.02.2010 (so actual completion date of last call = 20.02.2010 ).
    Now we want that the next call is rescheduled to 20.02.2011 ( so the last actual date + the 52 weeks from the strategy)
    This we can achieve for one maintenance plan at a time by using transaction IP10 and than the funtion "start in cycle' .
    However we want to achieve this for a mass selection of maintenance plans in one go.We cannot find a suitable transaction that does do this.
    For example IP30 simply keeps rescheduling using the "startdate of the cycle" instead of the "last actual date".
    Does anyone have a suggestion how we can solve this?
    Many thanks in advance!
    Kind Regards,
    Arjan

    Hi,
    Please follow as suggsted by BroermanG . In Addition to that please ensure that the positive & Negative Tolarance is maintained as zero value in the Scheduling Paramters of the Plan.
    Then the system will take care of your requirements. You need not use IP10 and reschedule to get the desired schedule.
    You can run the IP30 normally.
    Regards,
    MLN Prasad

  • Report Completion date and Report start date in BI Publisher

    Guys
    We have a requirement to get the Report Completion date and start date without Scheduling the report. Can any one give me an idea to get in the BIP Reports
    Regards

    What is the requirement ?
    When the user run report from BIP EE, you want to display how long the report run ?
    or
    Where you want to display these info >?
    If you expecting these info, on click of viewbutton then i dont think it is possible, unless you write the query to fetch the time and in the template processing, subtract that from the current sys-time to get the time it took to run.
    if you can schedule then
    Simplest would be is , taking these info from the tables, directly for the report you are running.
    or
    use Public WS provided by BIP to get the report info
    but in order to get these, first of all the reports should be run in scheduled mode.
    if you don't want the report to be scheduled then, i don't think, you can get these kind of report completion status info.
    otherwise , you can run the query by yourself to get the data and the time it took to complete from database and do some sort of custom calculation by urself

  • ORA-01403 - No Data Found - Error processing validation

    Dear all
    I hope to find a solution for this error.
    ORA-01403 - No Data Found - Error processing validation
    Best Regards

    Dear Patrick,
    Thank you for your response.
    I solved or worked around the problem by adding exception handling lines to the end of all PL/SQL validation functions used in this page
    For example, if a function used in equation, it is not allowed to return null so I made it return 0 in case of exceptions (as in below code)
    -- NO_DATA_FOUND is ORA-01403
    EXCEPTION
    WHEN NO_DATA_FOUND THEN return(0);
    Sincerely Yours
    Mahmoud Rabie

  • Need help with BES 10 activation error: "Device activation can't be completed because the setup process or a training tutorial is running"

    Hi All,
    I am having a hard time finding any info on this activation error, and I really can't get to the bottom of it.  When I enter my companie's activation code for the BES 10 network, it gives me the following message:
    " Device activation can't be completed because the setup process or a training tutorial is running on your device.  Try again later."
    It would be nice if the msg could be a little more specific!  But anyway, I have tried all the traditional fixes, battery pulls, re&re to BES, etc. but still nothing.  My last option is to wipe and see if that works but curious to see if anyone has run into this before.
    PS I have a Z10 STL100-3
    Thanks in advance! 
    cheers

    Good. excellent solved service blackberry
    Thanks. aspataro
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

Maybe you are looking for

  • Why do my Twitter alerts come through twice?

    Why do all of my Twitter alerts come through to my iPhone 5 (ioS8.1.3) twice?  Once as an SMS Text & once as a notification. I want to see these notifications, but not hear them. I think the best way to acheive that would be to stop the SMS Texts but

  • Open Page in new window using hyper link

    I put the window.open method on OnClick event of outputlink to open a page in new window, but the page is started in a old window. How do I start the page in a new window. My sintaxe of outputlink: <h:outputLink binding="#{P0110.hyperlink1}" id="hype

  • Can I connect a portable hard drive to an ipad 4 to play music?

    I am buying an ipad 4 for my wife as a present. At the moment we both use PCs as well as iphones to play music which we store on a portable hard drive which can then be moved between our PCs (we have different music tastes so have different itunes li

  • Smartforms  to file  .PDF and download  in Background

    Hi Actually  i´m converting  a smartforms in PDF file and doing a download in line , but i need to do the same in background. How can i do it?? Regards Gregory

  • Need user name and password to install on new computer...

    I just switched from PC to Apple, and when I try to install my Contribute 2.0, I'm being asked for a User Name and Password. Unfortunately, I'm not aware of what the user name and password might be. How can I get them so that I can complete the insta