Program exit - IF_SWF_IFS_WORKITEM_EXIT - Executed by WF-batch.

Hi all,
I have implemented a Program exit in my User decision step. This user exit is for finding the actual agent rule. But whats happening now is that the events are getting triggered in the below fashion.
1. swfco_event_before_creation(BEF_CREAT)
2. swfco_event_after_creation
The above two are getting executed by the user who created the workflow.
But after that the event 'swfco_event_state_changed' is getting automatically execute by the WF-batch user and later the WF-batch user has trigerring the event -AFT_EXEC and allowing the Work item to be in the complete state.
I tried simulating the same in test system and i was not able to find it and the Workflow is waiting in the event-swfco_event_after_creation and it is still in the wait status till in reached the deadline and didnt get executed by WF-batch.
Kindly guide.
Thanks,
Neslin.

WF-BATCH is starting at the event-C_EVTTYP_STATE_CHANGED(STATE_CHG) automatically. I can see it in the information message near to WF-BATCH.
Correct agent             Dialog work item created                 26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
Correct agent             Work Item Exit Called                    26.06.2009 11:54:57
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Reserved                       26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Exit Called                    26.06.2009 11:57:15
WF-BATCH                  Work Item Processing Complete            26.06.2009 11:57:15
WF-BATCH                  Result Processing                        26.06.2009 11:57:15
This is how it is coming in the log.
Thanks,
neslin.

Similar Messages

  • Program exits - IF_SWF_IFS_WORKITEM_EXIT

    Hi experts,
    i have implemented a class with IF_SWF_IFS_WORKITEM_EXIT interface with the method BEFORE_EXECUTION and STATE_CHANGED; in these methods, i do some authority check and i give errore message. In this way, the wi has the reserved status.
    In this conditon, when the WF are deleted, the wi with the program exits is again opened and there is a lcok on SM12 transaction.
    Any ideas?
    Thanks and regards
    Antonella

    .

  • How to set a  Executable ABAP  Program to run as a Background Batch Job

    Hi
    Currently  I had a Executable ABAP  Program which when executed prompts for user to enter selection once entered and executed it will delete user entered selections from a Table.
    Now my requirment is to enhance that program to run it as a BACKGROUND BATCH JOB so that there will be an entry in SM37 when the program is executed
    How can i achieve this

    Hi,
    Please refer this link .
    It has the steps.
    http://sapient.wordpress.com/2007/06/19/how-do-you-set-up-background-jobs-in-sap/
    Regards,
    SuryaD.

  • How do the Program exits in Workflow  work?

    hi all,
    there is a Program Exit available in Workflow tasks...and it says
    You can execute additional methods that you have programmed when predefined events occur. Add the ABAP classes that contain these methods. The ABAP classes added must support the IF_SWF_IFS_WORKITEM_EXIT interface.
    now i want to use this program exits in my workflow...so that this program exit(which is basically a class) will take input from Workflow container and gives back processed data <b>back to workflow</b>.
    so how to go about with these Program exits.
    thanks,
    subba

    hi
    good
    go throgh this links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/82d03e23-0a01-0010-b482-dccfe1c877c4
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/6b023c3f6aaf08e10000000a11402f/content.htm
    thanks
    mrutyun^

  • Doubt in Workflows using Programming Exits on OO ABAP

    I have a doubt on workflows:-
    Let me brief you about my requirement:
    I am trying to update some Master data using ABAP Methods through Programming Exits in a Workflow.
    I managed to find an OO method that can fetch the workflow container values directly into the structure.
    While testing the workflow:-
    The OO ABAP method executes and successfully updates the master tables.
    However, a calling method (that triggers this method indirectly), raises an exception called SWF_RUN_WIM_EXEC_INTERRUPTED.  
    The exception is caught within the caller method and the workflow errors saying that “the method ABC… cannot be executed.”
    The caller method is:-
    CL_SWF_RUN_WORKFLOW_START
    The exception is raised on execution of the following statement:-
    CALL METHOD me->start_workitem( lh_wi_handle ).
    One reason for this is that the workflow is still not completed and still in “READY” state.
    Alternative method
    Once the Master data is updated successfully,
    I tried to use the FM SAP_WAPI_WORKITEM_COMPLETE to end the work item or tried another FM to suspend the workflow.
    Now it gives an error saying that these FMs are restricted from use during run-time execution.
    Query
    Do you have an idea why the exception is raised and how to track/prevent the same?
    Can you suggest any other alternative?  Your valuable advice is urgently needed.
    Thanks a million in advance,
    Best Regards,
    Vinod

    Check the code
          CLASS zcl_event_handler IMPLEMENTATION
    CLASS zcl_event_handler IMPLEMENTATION.
    Top-of-page event
      METHOD top_of_page.
        PERFORM event_top_of_page
                USING z_dyndoc_id.
      ENDMETHOD.   "METHOD top_of_page
    Change Status Button
      METHOD handle_toolbar.
        IF NOT pa_prodr IS INITIAL.
          DATA: lz_toolbar  TYPE stb_button.
          CLEAR lz_toolbar.
          MOVE    'CHANGE_STATUS'  TO lz_toolbar-function.
          MOVE    text-001         TO lz_toolbar-text.
          APPEND  lz_toolbar       TO e_object->mt_toolbar.
        ENDIF.          "IF NOT pa_prodr IS INITIAL
      ENDMETHOD.   "METHOD handle_toolbar
    Handle User Command
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CHANGE_STATUS'.
            LOOP AT    it_output
                 INTO  wa_output.
              IF wa_output-chk_box EQ kc_x.
                z_flag = 1.
                EXIT.
              ENDIF.          "IF wa_output-chk_box EQ kc_x
            ENDLOOP.      "LOOP AT it_output INTO  wa_output
            IF z_flag EQ 1.
              PERFORM display_selected_data.
            ELSE.
              MESSAGE i001(zzrefn01)
                      WITH text-023.
            ENDIF.       "IF z_flag EQ 1
        ENDCASE.      "CASE e_ucomm
      ENDMETHOD.   "METHOD handle_user_command
    ENDCLASS.   "zcl_event_handler IMPLEMENTATION

  • Read container element in program exits

    Hi all,
    again me
    Today the question is that i want to read and change the element 'ObjectType' of an BOR element's container before execute method of the task. I use the program exits with CL_SWF_TST_PE_BEFOREEXEC class, it's work fine.
    But this element is a BOR of a BOR, so i know how to read an element with CALL METHOD container->element_get_value but in this case how can i do ?
    Thanks
    Edited by: CECG on Jan 24, 2008 2:46 PM

    I think you can use following macros
    swc_get_object_type
    swc_get_object_key
    Checki in Include <CNTN01> for syntax
    Thanks
    Arghadip

  • Current Agent Value in Program Exit Workflow

    Hi Gurus,
    we are using program exit to send mail to outlook on user decsion step and it is working fine for Sequential approval but when we have to send mail for parallel approval(have used block for parallel approval) we are not able to fetch current agent.
    - Have store agent in workflow container 'Agent' and used it in Block in workflow for implementing parallel appoaval.
    - Created class implementing inetrface IF_SWF_IFS_WORKITEM_EXIT and put it under program exit of user decsion in workflow
    - Now in this class I have created method at work item created to trigger email for which i require runtime work item id and agent for it.
    - We are getting workitem id at runtime and based on it picking up approval agent from workflow container and send mail to it.
    - this workfs fine for sequential one as there is only one approver at a time but in parallel where all approver are maintained in one multiline container, it is sending mail to first person maintained in multiline container.
    Please find steps below what i have tried:-
    - i tried with  FM RH_USERS_OF_WI_READ to get current agent for particular work item id  but it is throwing dump no value found at   runtime but stangely gives value if we run standalone for same work item id.
    - Then,  I tried putting wait upto to see if it helps, but then also above fm is unable to fetch agent.
    - Tried by putting select on   SWWUSERWI table but that also is not giving current agent
    Question is:
    Why we are not able to get value of current agent through above FM or select from userwi table? How do we get current agent value at the time of work item creation event is triggered which further hits our custom method.
    Please help...
    Regards
    Ajit C

    Hi Ajit,
    Here you go.
    You must be having a multiline container (probably of type WFSYST-AGENT) in your workflow which holds all the user ids to whom work item must be going parellely. e.g if the multiline container name is AGENT.
    The current agent from that multiline container is referred by &AGENT[_AGENT_line_]&. This you must hast have put in your user decision step/activity as an agent also.
    Now in your user decision step/activity, create one single line container element of type WFSYST-AGENT e.g. current_agent. in workflow to task binding, bind &AGENT[_AGENT_line_]& to CURRENT_AGENT. This way you will have current agent in that task container.
    Finally use function module SAP_WAPI_READ_CONTAINER using WORKITEM id to read the value of CURRENT_AGENT in your program exit.
    Regards,
    Ibrahim

  • Has anyone implemented Program exits in Workflow?

    hi all,
    i know we can capture workflow container values in the program exits.
    but i need to manipulate/change the container values and pass the new container values back to the task from the class.
    so how should i implement the binding and the class.
    thanks,
    Subba

    for this you will have to create a dummy method of a class and use the macros from <cntn01> to modify the contents. Probably you know this.
    Note that only the variables created in workflow , that are not default can be set as export parameters.
    get the required parameters as import parameters and export parameters of the method you create. Create a task out of that and insert it in the workflow definition.
    Write logic inside the method such that... only if required, modify the contents else pass the same to export.. so that net effect is nil.
    This is one method of creating program exits.
    another method is what you are asking
    add the class, shd have the interface IF_SWF_IFS_WORKITEM_EXIT  in its definition.
    Define its methods.
    By default the task container will be available for the class to operate on. they will be public. so you can reference them in your method.
    regards,
    Sandeep Josyula
    *Mark helpful answers

  • Program exit code 259 in SCCM Cllient

    Hi,
    I am getting Error "Program exit code 259" in Execmgr.log while installing symantec backup tool on sccm client.
    Execmgr.log:
    Execution Request for package C010194B program Symantec Backup Exec System Recovery v8.5.3.314-0 state change from Running to NotifyExecution execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Checking content location C:\WINDOWS\system32\CCM\Cache\C010194B.1.System for use execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Successfully selected content location C:\WINDOWS\system32\CCM\Cache\C010194B.1.System execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Executing program as a script execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Successfully prepared command line "C:\WINDOWS\system32\CCM\Cache\C010194B.1.System\loader.EXE" /s CM_DSLID=002FDA execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Command line = "C:\WINDOWS\system32\CCM\Cache\C010194B.1.System\loader.EXE" /s CM_DSLID=002FDA, Working Directory = C:\WINDOWS\system32\CCM\Cache\C010194B.1.System\ execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Created Process for the passed command line execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
     AdvertisementId = "N0120AAD";
     ClientID = "GUID:C7E780C0-72FE-4876-B3B3-ACC7E7AB5D71";
     CommandLine = "\"C:\\WINDOWS\\system32\\CCM\\Cache\\C010194B.1.System\\loader.EXE\" /s CM_DSLID=002FDA";
     DateTime = "20090826050952.320000+000";
     MachineName = "WFSLUSLVA8DYW";
     PackageName = "C010194B";
     ProcessID = 3876;
     ProgramName = "Symantec Backup Exec System Recovery v8.5.3.314-0";
     SiteCode = "N02";
     ThreadID = 448;
     UserContext = "NT AUTHORITY\\SYSTEM";
     WorkingDirectory = "C:\\WINDOWS\\system32\\CCM\\Cache\\C010194B.1.System\\";
     execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Raised Program Started Event for Ad:N0120AAD, Package:C010194B, Program: Symantec Backup Exec System Recovery v8.5.3.314-0 execmgr 8/26/2009 1:09:52 AM 448 (0x01C0)
    Execution Manager timer has been fired. execmgr 8/26/2009 1:12:03 AM 2228 (0x08B4)
    Program exit code 259 execmgr 8/26/2009 2:09:52 AM 5392 (0x1510)

    <![LOG[Software Distribution Site Settings for the client are missing from WMI.]LOG]!><time="16:09:34.651+000" date="10-13-2009" component="execmgr" context="" type="3" thread="3120" file="softdistpolicy.cpp:1312">
    <![LOG[Software Distribution Site Settings for the client are missing from WMI.]LOG]!><time="16:09:34.827+000" date="10-13-2009" component="execmgr" context="" type="3" thread="3120" file="softdistpolicy.cpp:1312">
    <![LOG[Common Client Agent Settings for the client are missing from WMI.]LOG]!><time="16:09:34.842+000" date="10-13-2009" component="execmgr" context="" type="3" thread="3120" file="softdistpolicy.cpp:1413">
    <![LOG[Software distribution agent was enabled]LOG]!><time="16:11:48.870+000" date="10-13-2009" component="execmgr" context="" type="1" thread="3804" file="execreqmgr.cpp:5969">
    <![LOG[Policy arrived for parent package QQQ00009 program RAR]LOG]!><time="04:19:00.850+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3668" file="execreqmgr.cpp:6451">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramOfferReceivedEvent
        AdvertisementId = "QQQ20008";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013221900.962000+000";
        MachineName = "SCOM";
        ProcessID = 2824;
        SiteCode = "QQQ";
        ThreadID = 3668;
    ]LOG]!><time="04:19:00.976+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3668" file="event.cpp:525">
    <![LOG[Policy arrived for parent package QQQ0000E program Setup]LOG]!><time="04:19:01.005+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3668" file="execreqmgr.cpp:6451">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramOfferReceivedEvent
        AdvertisementId = "QQQ20011";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013221901.016000+000";
        MachineName = "SCOM";
        ProcessID = 2824;
        SiteCode = "QQQ";
        ThreadID = 3668;
    ]LOG]!><time="04:19:01.017+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3668" file="event.cpp:525">
    <![LOG[Requesting content from CAS for package QQQ00009 version 1]LOG]!><time="04:19:02.678+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1168" file="contentaccesshelper.cpp:138">
    <![LOG[Successfully created a content request handle {E493064B-D93A-4FD2-83FF-886B4325A796} for the package QQQ00009 version 1]LOG]!><time="04:19:03.315+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1168" file="contentaccesshelper.cpp:216">
    <![LOG[Program RAR change to state STATE_ADVANCED_DOWNLOAD content in progress]LOG]!><time="04:19:03.315+000" date="10-14-2009" component="execmgr" context="" type="2" thread="1168" file="executionrequest.cpp:3670">
    <![LOG[Execution Request for package QQQ00009 program RAR state change from NotExist to AdvancedDownload]LOG]!><time="04:19:03.315+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1168" file="executionrequest.cpp:488">
    <![LOG[Mandatory execution requested for program RAR and advertisement QQQ20008]LOG]!><time="04:19:03.344+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2964" file="execreqmgr.cpp:3317">
    <![LOG[Creating mandatory request for advert QQQ20008, program RAR, package QQQ00009]LOG]!><time="04:19:03.357+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2964" file="execreqmgr.cpp:3440">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistWaitingContentEvent
        AdvertisementId = "QQQ20008";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013221903.978000+000";
        MachineName = "SCOM";
        PackageName = "QQQ00009";
        PackageVersion = "1";
        ProcessID = 2824;
        ProgramName = "RAR";
        SiteCode = "QQQ";
        ThreadID = 2964;
    ]LOG]!><time="04:19:03.983+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2964" file="event.cpp:525">
    <![LOG[Successfully raised SoftDistWaitingContentEvent event for program RAR]LOG]!><time="04:19:03.985+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2964" file="executionrequest.cpp:2623">
    <![LOG[Execution Request for package QQQ00009 program RAR state change from WaitingDependency to WaitingContent]LOG]!><time="04:19:03.985+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2964" file="executionrequest.cpp:488">
    <![LOG[Requesting content from CAS for package QQQ0000E version 1]LOG]!><time="04:19:04.328+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1280" file="contentaccesshelper.cpp:138">
    <![LOG[Successfully created a content request handle {1AEB98AA-58BE-428F-883A-936448A7AC88} for the package QQQ0000E version 1]LOG]!><time="04:19:04.451+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1280" file="contentaccesshelper.cpp:216">
    <![LOG[Program Setup change to state STATE_ADVANCED_DOWNLOAD content in progress]LOG]!><time="04:19:04.451+000" date="10-14-2009" component="execmgr" context="" type="2" thread="1280" file="executionrequest.cpp:3670">
    <![LOG[Execution Request for package QQQ0000E program Setup state change from NotExist to AdvancedDownload]LOG]!><time="04:19:04.451+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1280" file="executionrequest.cpp:488">
    <![LOG[Mandatory execution requested for program Setup and advertisement QQQ20011]LOG]!><time="04:19:04.483+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="execreqmgr.cpp:3317">
    <![LOG[Creating mandatory request for advert QQQ20011, program Setup, package QQQ0000E]LOG]!><time="04:19:04.534+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="execreqmgr.cpp:3440">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistWaitingContentEvent
        AdvertisementId = "QQQ20011";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013221904.861000+000";
        MachineName = "SCOM";
        PackageName = "QQQ0000E";
        PackageVersion = "1";
        ProcessID = 2824;
        ProgramName = "Setup";
        SiteCode = "QQQ";
        ThreadID = 3460;
    ]LOG]!><time="04:19:04.871+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="event.cpp:525">
    <![LOG[Successfully raised SoftDistWaitingContentEvent event for program Setup]LOG]!><time="04:19:04.877+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:2623">
    <![LOG[Execution Request for package QQQ0000E program Setup state change from WaitingDependency to WaitingContent]LOG]!><time="04:19:04.877+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:488">
    <![LOG[Content is available for program RAR.]LOG]!><time="04:19:08.813+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:4915">
    <![LOG[CExecutionRequest::Service Windows Manager has allowed us to run.]LOG]!><time="04:19:08.859+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:3071">
    <![LOG[Execution Request for package QQQ00009 program RAR state change from WaitingContent to NotifyExecution]LOG]!><time="04:19:08.859+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:488">
    <![LOG[Notify user mandatory program RAR is about to run]LOG]!><time="04:19:08.893+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3460" file="executionrequest.cpp:3112">
    <![LOG[Content is available for program Setup.]LOG]!><time="04:22:59.476+000" date="10-14-2009" component="execmgr" context="" type="1" thread="864" file="executionrequest.cpp:4915">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramWaitingForAnotherProgram
        AdvertisementId = "QQQ20011";
        BlockingPackageID = "QQQ00009";
        BlockingProgramName = "RAR";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013222259.546000+000";
        MachineName = "SCOM";
        PackageName = "QQQ0000E";
        ProcessID = 2824;
        ProgramName = "Setup";
        SiteCode = "QQQ";
        ThreadID = 864;
    ]LOG]!><time="04:22:59.551+000" date="10-14-2009" component="execmgr" context="" type="1" thread="864" file="event.cpp:525">
    <![LOG[Successfully raised SoftDistProgramWaitingForAnotherProgram event for program Setup.]LOG]!><time="04:22:59.554+000" date="10-14-2009" component="execmgr" context="" type="1" thread="864" file="executionrequest.cpp:2899">
    <![LOG[Execution Request for package QQQ0000E program Setup state change from WaitingContent to Ready]LOG]!><time="04:22:59.554+000" date="10-14-2009" component="execmgr" context="" type="1" thread="864" file="executionrequest.cpp:488">
    <![LOG[Execution Manager timer has been fired.]LOG]!><time="04:24:08.940+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="execreqmgr.cpp:5188">
    <![LOG[Execution Manager timer has been fired.]LOG]!><time="04:24:08.993+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="execreqmgr.cpp:5188">
    <![LOG[Executing program "wrar380ru.exe" /s in Admin context]LOG]!><time="04:24:09.038+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executionrequest.cpp:3277">
    <![LOG[Execution Request for package QQQ00009 program RAR state change from Running to NotifyExecution]LOG]!><time="04:24:09.085+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executionrequest.cpp:488">
    <![LOG[Checking content location C:\Windows\system32\CCM\Cache\QQQ00009.1.System for use]LOG]!><time="04:24:09.172+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executioncontext.cpp:1635">
    <![LOG[Successfully selected content location C:\Windows\system32\CCM\Cache\QQQ00009.1.System]LOG]!><time="04:24:09.173+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executioncontext.cpp:1703">
    <![LOG[GetFileVersionInfoSize failed for file C:\Windows\system32\CCM\Cache\QQQ00009.1.System\wrar380ru.exe, error 1813]LOG]!><time="04:24:09.205+000" date="10-14-2009" component="execmgr" context="" type="2" thread="1788" file="executioncontext.cpp:119">
    <![LOG[Executing program as a script]LOG]!><time="04:24:09.205+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executionengine.cpp:103">
    <![LOG[Successfully prepared command line "C:\Windows\system32\CCM\Cache\QQQ00009.1.System\wrar380ru.exe" /s]LOG]!><time="04:24:09.205+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="scriptexecution.cpp:523">
    <![LOG[Command line = "C:\Windows\system32\CCM\Cache\QQQ00009.1.System\wrar380ru.exe" /s, Working Directory = C:\Windows\system32\CCM\Cache\QQQ00009.1.System\]LOG]!><time="04:24:09.206+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="scriptexecution.cpp:284">
    <![LOG[Created Process for the passed command line]LOG]!><time="04:24:09.300+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="scriptexecution.cpp:407">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramStartedEvent
        AdvertisementId = "QQQ20008";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        CommandLine = "\"C:\\Windows\\system32\\CCM\\Cache\\QQQ00009.1.System\\wrar380ru.exe\" /s";
        DateTime = "20091013222409.308000+000";
        MachineName = "SCOM";
        PackageName = "QQQ00009";
        ProcessID = 2824;
        ProgramName = "RAR";
        SiteCode = "QQQ";
        ThreadID = 1788;
        UserContext = "NT AUTHORITY\\SYSTEM";
        WorkingDirectory = "C:\\Windows\\system32\\CCM\\Cache\\QQQ00009.1.System\\";
    ]LOG]!><time="04:24:09.318+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="event.cpp:525">
    <![LOG[Raised Program Started Event for Ad:QQQ20008, Package:QQQ00009, Program: RAR]LOG]!><time="04:24:09.321+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1788" file="executioncontext.cpp:523">
    <![LOG[Program exit code 0]LOG]!><time="04:24:12.399+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="scriptexecution.cpp:547">
    <![LOG[Looking for MIF file to get program status]LOG]!><time="04:24:12.399+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executionstatus.cpp:282">
    <![LOG[Script for  Package:QQQ00009, Program: RAR succeeded with exit code 0]LOG]!><time="04:24:12.401+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executionstatus.cpp:259">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramCompletedSuccessfullyEvent
        AdvertisementId = "QQQ20008";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091013222412.410000+000";
        MachineName = "SCOM";
        PackageName = "QQQ00009";
        ProcessID = 2824;
        ProgramName = "RAR";
        SiteCode = "QQQ";
        ThreadID = 3564;
        UserContext = "NT AUTHORITY\\SYSTEM";
    ]LOG]!><time="04:24:12.415+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="event.cpp:525">
    <![LOG[Raised Program Success Event for Ad:QQQ20008, Package:QQQ00009, Program: RAR]LOG]!><time="04:24:12.419+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executioncontext.cpp:551">
    <![LOG[Execution is complete for program RAR. The exit code is 0, the execution status is Success]LOG]!><time="04:24:12.419+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="execreqmgr.cpp:3908">
    <![LOG[CExecutionRequest::Service Windows Manager has allowed us to run.]LOG]!><time="04:24:12.554+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executionrequest.cpp:3071">
    <![LOG[Execution Request for package QQQ0000E program Setup state change from Ready to NotifyExecution]LOG]!><time="04:24:12.554+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executionrequest.cpp:488">
    <![LOG[Notify user mandatory program Setup is about to run]LOG]!><time="04:24:12.558+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3564" file="executionrequest.cpp:3112">
    <![LOG[Execution Manager timer has been fired.]LOG]!><time="04:26:19.903+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3820" file="execreqmgr.cpp:5188">
    <![LOG[Execution Manager timer has been fired.]LOG]!><time="04:29:12.150+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3840" file="execreqmgr.cpp:5188">
    <![LOG[Executing program Setup.exe in Admin context]LOG]!><time="04:29:12.161+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executionrequest.cpp:3277">
    <![LOG[Execution Request for package QQQ0000E program Setup state change from Running to NotifyExecution]LOG]!><time="04:29:12.173+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executionrequest.cpp:488">
    <![LOG[Checking content location C:\Windows\system32\CCM\Cache\QQQ0000E.1.System for use]LOG]!><time="04:29:12.196+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executioncontext.cpp:1635">
    <![LOG[Successfully selected content location C:\Windows\system32\CCM\Cache\QQQ0000E.1.System]LOG]!><time="04:29:12.196+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executioncontext.cpp:1703">
    <![LOG[Executing program as a script]LOG]!><time="04:29:12.200+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executionengine.cpp:103">
    <![LOG[Successfully prepared command line "C:\Windows\system32\CCM\Cache\QQQ0000E.1.System\setup.exe"]LOG]!><time="04:29:12.200+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="scriptexecution.cpp:523">
    <![LOG[Command line = "C:\Windows\system32\CCM\Cache\QQQ0000E.1.System\setup.exe", Working Directory = C:\Windows\system32\CCM\Cache\QQQ0000E.1.System\]LOG]!><time="04:29:12.200+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="scriptexecution.cpp:284">
    <![LOG[Created Process for the passed command line]LOG]!><time="04:29:12.395+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="scriptexecution.cpp:407">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramStartedEvent
        AdvertisementId = "QQQ20011";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        CommandLine = "\"C:\\Windows\\system32\\CCM\\Cache\\QQQ0000E.1.System\\setup.exe\"";
        DateTime = "20091013222912.413000+000";
        MachineName = "SCOM";
        PackageName = "QQQ0000E";
        ProcessID = 2824;
        ProgramName = "Setup";
        SiteCode = "QQQ";
        ThreadID = 1320;
        UserContext = "NT AUTHORITY\\SYSTEM";
        WorkingDirectory = "C:\\Windows\\system32\\CCM\\Cache\\QQQ0000E.1.System\\";
    ]LOG]!><time="04:29:12.423+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="event.cpp:525">
    <![LOG[Raised Program Started Event for Ad:QQQ20011, Package:QQQ0000E, Program: Setup]LOG]!><time="04:29:12.426+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1320" file="executioncontext.cpp:523">
    <![LOG[Execution Manager timer has been fired.]LOG]!><time="04:33:31.003+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1280" file="execreqmgr.cpp:5188">
    <![LOG[Program exit code 259]LOG]!><time="06:29:13.174+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="scriptexecution.cpp:547">
    <![LOG[Looking for MIF file to get program status]LOG]!><time="06:29:13.178+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="executionstatus.cpp:282">
    <![LOG[Program ran past its maximum runtime. It will be orphaned]LOG]!><time="06:29:13.184+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="executionstatus.cpp:232">
    <![LOG[Raising event:
    [SMS_CodePage(866), SMS_LocaleID(1049)]
    instance of SoftDistProgramExceededTime
        AdvertisementId = "QQQ20011";
        ClientID = "GUID:97CDFA0B-BE94-4B45-949F-546BFB130163";
        DateTime = "20091014002913.196000+000";
        MachineName = "SCOM";
        MaximumTime = "120";
        PackageName = "QQQ0000E";
        ProcessID = 2824;
        ProgramName = "Setup";
        SiteCode = "QQQ";
        ThreadID = 2788;
    ]LOG]!><time="06:29:13.204+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="event.cpp:525">
    <![LOG[Raised Program Exceeded Time Event for Ad:QQQ20011, Package:QQQ0000E, Program: Setup]LOG]!><time="06:29:13.206+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="executioncontext.cpp:945">
    <![LOG[Execution is complete for program Setup. The exit code is 259, the execution status is Unknown Status]LOG]!><time="06:29:13.206+000" date="10-14-2009" component="execmgr" context="" type="1" thread="2788" file="execreqmgr.cpp:3908">
    <![LOG[A user has logged on.]LOG]!><time="10:24:37.257+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3644" file="execreqmgr.cpp:4522">
    <![LOG[The logged on user is WER\admin]LOG]!><time="10:24:37.595+000" date="10-14-2009" component="execmgr" context="" type="1" thread="3644" file="execreqmgr.cpp:4540">
    <![LOG[A user has logged on.]LOG]!><time="15:55:34.833+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1708" file="execreqmgr.cpp:4522">
    <![LOG[The logged on user is WER\admin]LOG]!><time="15:55:35.776+000" date="10-14-2009" component="execmgr" context="" type="1" thread="1708" file="execreqmgr.cpp:4540">

  • Table / Function that defines if a program is being executed(not-so-urgent)

    Hi,
    Could you please help me.
    I required to know if a program is being executed in a specific moment.
    If you know any table or a function, than indicates if a program is being executed in that moment please tell me.
    I search for a function and found this one, but i dont know how to use it.
    CALL FUNCTION 'ENQUEUE_ESFUNCTION'
    EXPORTING
       MODE_TFDIR           = 'E'
       FUNCNAME             =
       X_FUNCNAME           = ' '
       _SCOPE               = '2'
       _WAIT                = ' '
       _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    Please help me !!!!!.
    Thanks for your help and best regards.
    JRZ.
    <Subject line changed>
    Edited by: Suhas Saha on Oct 28, 2011 10:37 AM

    Hi,
    You can use transaction code STAT
    writer/painter reports -view stats via SE16 in table T803J
    reports and transactions execution info is stored in table MONI.
    Also check this sample code from other thread.
    internal tables for use counterdata:
    begin of list occurs 5.
    include structure sapwlserv.
    data: end of list.
    data: begin of applicat occurs 0.
    include structure sapwlustcx.
    data: end of applicat.
    data: begin of applica_ occurs 0.
    include structure sapwlustcx.
    data: end of applica_.
    data: begin of applicau occurs 0,
    entry_id like sapwlustcx-entry_id,
    account like sapwlustcx-account,
    count like sapwlustcx-count,
    : end of applicau.
    data: wa_applicau like applicau.
    *& Form MONI
    form moni.
    data: l_host like sapwlserv-hostshort.
    m_start = p_usedt.
    get server
    call function 'SAPWL_SERVLIST_GET_LIST'
    tables
    list = list.
    do.
    loop at list.
    loop on server
    check not list-instshort is initial.
    l_host = list-instshort.
    get statistics per month and server
    perform workload using m_start l_host.
    endloop.
    add 31 to m_start.
    if m_start > sy-datum.
    exit.
    endif.
    enddo.
    sort applica_ by entry_id.
    sort applicau by entry_id count descending.
    endform. " MONI
    *& Form WORKLOAD
    form workload using p_start like sy-datum
    p_host like sapwlserv-hostshort.
    refresh: applica_.
    read application statistic from MONI
    call function 'SAPWL_WORKLOAD_GET_STATISTIC'
    exporting
    periodtype = 'M'
    hostid = p_host
    startdate = p_start
    only_application_statistic = 'X'
    tables
    application_statistic = applica_
    exceptions
    unknown_periodtype = 1
    no_data_found = 2
    others = 3.
    sort applica_ by entry_id account.
    loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE
    clear wa_applicau-entry_id.
    wa_applicau-entry_id(25) = applica_-entry_id.
    wa_applicau-account = applica_-account.
    wa_applicau-count = applica_-count.
    collect wa_applicau into applicau.
    endloop.
    sort applicau by entry_id count descending.
    applica_-ttype = space.
    applica_-account = space.
    modify applica_ transporting ttype account where ttype ne space.
    collect only enhancements statistic
    if p_temp = 'X'.
    loop at applica_.
    applica_-entry_id+25(48) = space.
    collect applica_ into applicat.
    endloop.
    else.
    loop at applica_ where entry_id(1) ge 'Y'. "#EC PORTABLE
    applica_-entry_id+25(48) = space.
    collect applica_ into applicat.
    endloop.
    endif.
    endform. " WORKLOAD
    Thanks & regards.

  • Program exited with status 8

    i have concurrent program which exited with
    Program exited with status 8
    Please let me know what does that mean?

    If you mean your program exited with an error number (also called an "errno", or
    "system call return status", or something like that), it means:
    #8 ENOEXEC "Exec format error"
    which generally means you are trying to run an executable on the wrong type of
    host. Could you provide more details on what the program is and any screen
    messages you saw?

  • Program exited with status 1

    Hi,
    While submitting the request i am getting the follwing error.can any one please help me..
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_org_id='121'
    p_anno='2012'
    p_batch_source_id='1115'
    p_tipo_fatt='1233'
    p_numero_da='87'
    p_numero_a='87'
    p_desname_path='/usr/tmp/statarch'
    p_nome_protocollo='CE'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.WE8ISO8859P1
    Enter Password:
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-421490969:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-421490969: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-0002: Unable to retr
    Report Builder: Release 10.1.2.3.0 - Production on Thu Oct 24 11:19:44 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    kgefec: fatal error 0
    kgefec: fatal error 0
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 12172406.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    0
    Thanks,

    Hi,
    Is this a standard or a custom report? See if the following note helps you:
    R12 General Ledger Journal Entry Report (JGZZGLJRN) Errors With: REP-0069, REP-57054, REP-271504897 and REP-0002 For Large Volume Report (Doc ID 1070234.1)
    Thanks &
    Best Regards,

  • Whether Workflow Program Exit works in ABAP WebDynpro

    Hi,
    I have the custom  workflow in which in each task i have given a program exit to update the status into my custom tables.
    Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be made.
    I'm getting the Workitem id from the UWL and then it lauches the Web Dynpro to choose either Approve, Reject or Change etc along with some other travel expense information.
    Now once i complete the web dynpro by calling the method 'SAP_WAPI_WORKITEM_COMPLETE', the particular work item is completed.
    I want to ask whether before this FM is called,whether the Program Exit which i have written in the Class method and which is called in the Workflow, whether it triggers or not?
    Regards,

    It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
    So closing the thread.

  • Retrieve workflow container data in programming exit

    I am trying to use a programming exit in Workflow in order to amend the task container for the receipients field of a "Send Email" step. The reason why we are not determining the receipients in the usual way is because we hold the receipients (amongst other data) in a separate Z* table - this needs to stay this way.
    I created a class and copied method CHANGE_CONT_ELEMENT to base my altered code on. The method is triggered fine when testing the workflow. Here is what it now looks like:
    method CHANGE_CONT_ELEMENT .
      DATA: container TYPE REF TO if_swf_cnt_container,
            if_swf_cnt_container,
            cont TYPE REF TO IF_SWF_IFS_PARAMETER_CONTAINER,
            name TYPE swfdname,
            lh_wihandle TYPE REF TO if_swf_run_wim_internal,
            l_exception TYPE REF TO cx_swf_cnt_container,
            l_wiid TYPE sww_wiid,
            w_container type ref to IF_SWF_IFS_PARAMETER_CONTAINER,
            w_names type SWFDNAMTAB,
            wa_names type line of SWFDNAMTAB,
            w_value(30).
      w_container = me->m_ctx->GET_WI_CONTAINER( ).
      w_names = w_container->LIST_NAMES( ).
    data: w_name type SWFDNAME.
    w_name = 'TEST-NUMBER'.
    TRY.
      loop at w_names into wa_names.
        CALL METHOD w_container->get
         EXPORTING
          name       = wa_names.
      endloop.
    CATCH CX_SWF_CNT_ELEM_NOT_FOUND .
    CATCH CX_SWF_CNT_ELEM_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_UNIT_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_CONTAINER .
    ENDTRY.
    ENDMETHOD.
    Now w_names retrieves the names of the fields fine (including my "TEST" entry which I declared in the Workflow Builder), but the GET method causes a "CX_SWF_CNT_ELEM_NOT_FOUND" exception.
    Is this the correct way to retrieve data out of a Workflow container within a WF programming exit? What am I doing wrong?
    Kind regards,
    Michael Koch

    Hi Michael, Paolo & Other experts,
    I am trying to understand when, why and how to use a 'programming exit' in a SAP workflow.
    (1) Did you figure out the solution to your problem?
    (2) Is there any material / tutorial on use of a  'programming exit' in a workflow?
    Thanks
    Abaper

  • Program exit to change workitem text

    Hi All,
    I have a requirement to change work item text at runtime, i am using program exit to change the task contrainer variable which is being used to display work item text. i have written a code in program exit to update container element, but it's not reflected to change workitem text, when i check in ln workflow log the variable shows with updated value.
    Please help to solve issue.
    Many thanks,

    Hi Gupta,
    I used below code to update container element.
    CASE im_event_name.
         WHEN swfco_event_after_creation.
            CLEAR l_value.
           CALL METHOD l_wi_cont->get
             EXPORTING
               name  = 'LV_WITEXT'
             IMPORTING
               value = l_value.
             REPLACE '$' INTO l_value WITH lv_id.
           CALL METHOD l_wi_cont->set
             EXPORTING
               name  = 'LV_WITEXT'
               value = l_value.
    With above code LV_WITEXT is updated with new value, but same is not displayed as workitem text in inbox.
    After workitem displayed in inbox if i use FM SWL_REFRESH_WORKITEM_TEXT explicitly to refresh, workitem text getting refreshed.
    Many thanks.

Maybe you are looking for

  • Subtotal calculation display in ALV report

    hi, i had made a report n alv which is almost complete but i want to add the feature that when i click on a field when output is displayed den the subtotal of all qty fields should be shown also. plz provide me with useful example as i am using the c

  • Background job getting CANCELLED

    hello, i have  a background job scheduled for a report program.it is getting cancelled and giving the following error: "TABLE_ILLEGAL_STATEMENT" You attempted to change, delete or create a line in the        internal table "???", but no valid cursor

  • Current link status within sidebar editable region library item

    Hello, I have looked all around and am still at a loss on how to address this issue. I would like the current page to be highlighted white when it is clicked on, although I am having no success. The user should see the "Into" link in white on this li

  • No internet in Wine for WoW

    Hello everyone.  Having some trouble running World of Warcraft on my Arch system under Wine.  I run wine ./Launcher.exe, and this is what I get: [World of Warcraft]$ wine ./Launcher.exe fixme:process:GetLogicalProcessorInformation (0x33e3f8,0x33e9f8)

  • Apple Keyboard with number pad doesn't work with Mac Pro?

    I have a Mac Pro, and have used an Apple Keyboard with a number pad (not bluetooth) with it for quite a while, with no problems. But then my keyboard broke and I ordered a replacement Apple Keyboard with a number pad (not bluetooth). This keyboard do