Where is event 'READY_FOR_WORKFLOW' triggered for invoice p-c workflow?

Dear forum members,
I am setting up process-controlled workflow in SRM 7.0 (SP 7) for invoices and have found when saving an invoice with errors that the new process-controlled workflow does not get triggered. It works OK for invoices without errors.
How can I find where the event  'READY_FOR_WORKFLOW' is triggered to check whether the workflow is only triggered on certain conditions? I have looked all over the system but can't find anywhere yet.
Thanks a lot in advance,
Nick

Hi,
I solved this myself. There are checks in include LBBP_PDF0L (form PROCDOC_SAVE) which prevent invoice approval workflow starting for us.
The checks for starting the process-controlled workflow are shown from line 505:
      ELSEIF lv_pdo_layer_active NE lc_true.
        DATA lr_status         TYPE REF TO crm_jest.
        DATA lv_start_process  TYPE abap_bool VALUE abap_undefined.
        DATA lv_version_no     TYPE char08. " initial version number
        DATA lv_process_status TYPE char4.
        CONSTANTS:
          lc_process_status_initial  TYPE char4 VALUE 'INIT'.
        " check, if 'In Approval' status (I1015) or
        " 'Currently In Release Process' (I1052 for invoice) is set as new status
        LOOP AT x_status REFERENCE INTO lr_status.
          CHECK ( lr_status->stat EQ /sapsrm/if_pdo_status_c=>gc_pdo_rel_process OR "I1015
I have created a message to SAP.
Best regards,
Nick

Similar Messages

  • Enter event not triggering for read-only checkbox

    I have some objects in a form that get "locked" when the user signs the form.  I'm not using the digital signatures.  Instead, when the user types their name into the signature text field, a script runs on the change event that makes all of the fields in the form read only.  It also unlocks the fields if the signature is deleted.
    I was worried that we would get a lot of phone calls with users that didn't understand that the form had locked ("Why doesn't this form work?!"), so I added some code to the enter event for all of the fields that would pop up a messagebox to explain to people trying to edit a signed form that the form was locked and that they would need to delete the signature to edit the form.
    This plan works perfect for my text fields and decimal fields.  It does NOT work at all for my checkboxes.  For some reason, the enter event is never triggered for read-only checkboxes.  I don't see any other events that would obviously work for me though.  Any ideas?
    Thanks

    Thanks, those are reasonable suggestions.
    In the first suggestion, I'm unclear about one aspect of how I would accomplish this.  I assume I would allow people to modify fields in the form, but that when they did, a msgbox would pop up that would inform them that, if they continued with this modification to a signed form, the signature would be removed.  I'm all good to that point.  But if they answered that they do not want to continue modifying that field and removing the signature, how can I code it to set the value back to what it was before the change?  Is there some method that will give me access to the value of the field BEFORE the attempted modification?  I went looking for something like $.previousvalue, but found nothing.
    I'd suggest that I could use a two-stage solution, in which I store the previous value on the enter event, and save it just in case they do not want to change the field when prompted by the msgbox, but since the enter event does not exist for checkboxes (my original problem), that seems like it won't work.
    As far as radio button suggestion, I like radio buttons very much except for one fatal flaw: they aren't (as far as I can tell) clearable.  That is a shame.  Clearly some people (like me) want both exclusivity AND clearability.  And we'd like the controls to have an enter event.  But I know I'm demanding   Anyway, as it is, I just end up having to use checkboxes and create a boatload of silly code to make them exclusive.
    Emily

  • Action event automatically triggered for combo box

    Hi all,
    I am facing a typical event handling problem for combo box in Swing(Using Net Beans 5.0, jdk 1.4.2)
    While adding items to combo box it is firing action event twice instead of once irrespective of no. of items added to it.
    For eg if there are 1 or more than 1 item added to combo box it is triggerring action event twice(one just after when first item is added and one again when rest all items are added)
    and if there is no item then also it is triggering once.
    Can you please help me out.
    Thanks

    post the SSCCE code, then only it is easy to find the problem

  • 'CHANGE' event not triggering for BTE 2214 on park/change from FBV1/FBV2

    I have designed a workflow template for FI parking. If the parked document is rejected, i need to trigger FIPP 'CHANGE' event for sending workitem to approver when someone changes the parked document. In SWEL event trace, the 'CHANGE' event is not getting raised.
    So i implemented a BTE 000002214 and now i am able to raise 'CHANGE' event and capture it in workflow. But this is only working when i park a document using FV50 transaction and later change it.
    But when i park a document using FBV1 and then make changes from FBV2, the 'CHANGE' event is not being triggered in SWEL. Should i implement some other BTE like 2218 etc? Can you please help?

    Hi Gokul,
    You can try handling the SAVE event instead of the CHANGED event.
    T-code FBV2 will not allow you to save the document unless you make some changes.
    Try implementing BTE 2218 and revert.
    Thanks,
    Sreekanth

  • Event not triggering for SWEC entry (MM_SERVICE) on create

    Hi All,
    I have been trying to trigger a customised event for BUS2009 based on creation of the Change Object MM_SERVICE.  I have created an entry in SWEC as follows:
    - Change Doc Object: MM_SERVICE
    - Object Cat : BOR
    - Object Type: BUS2009
    - Event: RELEASEDREQCHANGED
    - On Create
    (no field conditions)
    However, the event does not seem to publish upon an insert of ESUH-SUMLIMIT (Overall Limit on the Purchase Req - a field in Change Object MM_SERVICE), as I am not seeing the event in SWEL.  Please note I have also tried to do this with field conditions in SWEC, but to no avail. 
    Alternatively, I have tried to setting the Change Doc config via SWU_EWCD, however, it comes back with an error message saying "No change document object for business object type BUS2009" - I believe this might have to do with the incompatibility of the key structures between MM_SERVICE and BUS2009.  We have written a function module to overcome this problem and placed same in SWEC, which is why the (BUS2009) event is currently publishing for "on change" of MM_SERVICE - is there any way around this?
    On the other hand, the event will publish OK if the SWEC entry is amended to "ON CHANGE" (with field conditions) - upon changing the value of ESUH-SUMLIMIT, not insert/create.
    Would anyone be able to kindly advise how I can get the event to publish upon "ON CREATE" as well?
    Thanks in advance.
    ~Andy.

    Thanks for your prompt response Surjith.
    However, I believe the above setup in SWEC is already configured for the purpose of triggering the event.  The customised event in BUS2009 (RELEASEDREQCHANGED) is linked to the Change Document Object MM_SERVICE via "on create" in SWEC - it's just that there are no events coming up in SWEL
    I have exactly the same config setup for RELEASEDREQCHANGED, MM_SERVICE via "on change" - and this is working perfectly fine (ie. I can see the event in SWEL whenever there is a change in any of the restricted fields of MM_SERVICE).
    My understanding is that upon "on create" (in SWEC), it is not necessary to set up field restrictions in order to publish the event.  In any case, I have tried to trigger the event both with and without any field restrictions, none of which came up with any event when a field in MM_SERVICE has been inserted.  This is the reason why I tried SWU_EWCD instead, however, due to the incompatibility in the key structure between BUS2009 and MM_SERVICE, the transaction did not allow me to complete the setup.
    Is there any way around this?
    Many thanks.
    ~ Andy

  • Setting up of WF - BATCH for invoices released through workflow

    Hi all,
    i have set up the standard workflow for the Invoice Park and post which is working perfectly for the invoices. From the inbox the invoice is released by executing the work item. when i check the invoice document, the document is not getting posted, i believe there is a need to set up the user WF-BATCH, Could any body please advise as to how to set up the WF-BATCH so that the invoices get posted in the background.
    Thanks a lot in advance....

    Martin,
    Thanks for your reply. But, my question is, what and how can we tackle the witems that are struck.
    For example, in my case, the user has already taken decision from Portal side and he got a message that the approval task was successful and the witem is gone from his UWL. But, during this time, WF-BATCH was locked and so the "Result Processing" step that was done at the end of every witem execution, didn't happen. And hence the next witem also was not generated. But, if you see the wflow log, the witem status says, "COMPLETED". But if you expand the log for this step, then only we can see that the "Result Processing" was not completed by WF-BATCH.
    In this situation, will the SWPC be useful in troubleshooting the COMPLETED witems ? Pl clarify. I don't have access to SWPC right now and will definitely explore this.
    My biggest concern on this is, let us say, we have somany TRIP's in the middle of the approval process and the managers have already approved from their end. But, if the WF-BATCH is locked and no one noticed for a while, then it'll be a big task to identify each of these witems and Re-process them, even with SWPC,Right ?
    Please update on this.
    Thanks
    venu

  • How to find how & where event is triggered?

    Hi,
    At our organization, we have implemented PMS Notification Workflow. This workflow is triggered through Customized reports. I know the program which triggers the workflow and i also know the event name and Object type.
    I searched through the whole program but i am not able to find where the event is triggered. I searched for FM SWC_EVENT_CREATE and SAP_WAPI_CREATE_EVENT in the program but it could not be found.
    Please tell me how should i find where my workflow is triggered in the program.
    Regards,
    Sachin Mahajan.

    Since it is a custom report there could be a number of ways to trigger the workflow.
    Events are one thing, but it could also be triggered directly with FM SAP_WAPI_START_WORKFLOW or the older SWW_WI_START_SIMPLE.
    Or it could be part of some bapi which in the end triggers a workflow.
    If this Isn't this simply mentioned in the technical specifications, you should first find out how the workflow is triggered, then you can use that info to search the code.
    Kind regards, Rob Dielemans

  • Events triggered for the infotypes

    Good day everybody,
    I would like to know which events are triggered for the following infotypes:
    1. PA0105.
    2. PA0000.
    3. PA0002.
    4. PA0001.
    5. PA0185.
    Or can you please advice as to where to look or how to look for it
    Thanks in advance,
    Themba

    Hi...
    1) place a break point in FM "BF_FUNCTIONS_READ".
    2) excute your infotypes so that execution stops at this FM and gave the event triggered.
    Regards,
    Lokeswari.

  • 2 custom events getting triggered on user status change

    Hi all,
    In IQS21 transaction, once a user changes the user status I need to send a work item to the superior.So for this I have delegated
    the business object BUS7051 to ZBUS7051. I have created 2 custom events HOD and APP.
    I have even configured all the settings in BSVZ.
    There are 3 user statuses 1.Created 2.HOD 3 .APP
    Once user changes the status from Created to HOD a work item(notification in change mode) should go to the superior and similarly from HOD to APP also.
    The problem is when I change status from Created to HOD,APP event is also getting triggered along with HOD.
    Please tell me where I am wrong.
    Refards,
    Nishant

    Nishant,
    The APP event is used for Display the notification right? The two events are triggered for the same process. So the two events are linked with same process. Have you done anything in SWEC?
    Thanks.

  • GR notnot required for invoice

    Hello All,
    Which are the scenarios where GR is not required for invoice verification> for eg, In Blanket POs , standrad SAP suggests no GR. Similar scenarios.
    regards
    N Banu

    Hi,
    GR is basically not required when u have to do the Invoice Planning.e.g. suppose u have broadband connection for validity period of 3 month and for one month charges are Rs 100.
    Now u raise a blanket service PO for 3 months and rate fixed as Rs 100 per month.
    Now service provider can send u invoice of Rs 90 for a month. In this case no GR/SES is required....u just simply go by Invoice verification as per ur invoive planning.
    2. For PIPE material, there is no PO raised in the system and no GR is required and neither it is a stock material in store. How much you use, pay for that one either Daily, fortnightly or monthly etc.
    Hope Clear U !
    Regards,
    pardeep Malik

  • Event not getting triggered for PR generated through MRP run

    Hi All,
    Could anyone let me know how to get a workflow triggered for the ReleaseStepCreated event (obj - bus2105) when the PR is created through MRP run. The MD02 control paramters have the value '1'.
    Interstingly the workflow triggers when the value is set to '2' or '3'.
    Thanks,
    Ameekar

    Thanks Aman,
    I checked field restrictions but there are none there. Actually i checked them for other object 'AOOMARA' which is being thrown as an exception when i am creating the PR through MRP run.
    Exception says -> field not maintained.
    So i guess, i need to maintain the field for Change Document but i am not sure how. COuld you please aid me with that.
    Thanks A lot !!

  • BTE 1030 - we use for AP documents, create an event that triggers a workflow

    Hello all,
    We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.
    We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.
    It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.
    Has anybody else seen this issue and found a way to deal with it?
    Thanks
    Bruce

    AFAIK BAPI_ACC_DOCUMENT_POST and FI posting should trigger BTE 00001030 but BAPI_INCOMINGINVOICE_CREATE and AC interfacewould trigger BTE 00001050. (or is BAPI_ACC_DOCUMENT_POST also using AC interface, I will let you check it)
    Nevertheless call your FM triggered thru BTE 1030 also in a FM triggered thru BTE 1050. Also in the call check for update task
    function z_fi_00001050.
    call function 'TH_IN_UPDATE_TASK'
         importing
           in_update_task = in_update_task.
       if in_update_task eq 0 and i_xvbup eq 'X'.
         call function 'Z_FI_00001030' in update task
           exporting
             i_xvbup = ' '
           tables
             t_bkpf  = t_bkpf
             t_bseg  = t_bseg..
       else.
         call function 'Z_FI_00001030'
           exporting
             i_xvbup = ' '
           tables
             t_bkpf = t_bkpf
             t_bseg = t_bseg...
       endif.
    Regards,
    Raymond

  • Job not getting triggered for Multiple Scheduler Events

    hi,
    I would like a job to be triggered for multiple scheduler events, subscribing to a single event works fine. But, when I set multiple event condition, nothing works.
    My objective is to run a job, whenever job starts or restarts or exceeds max run duration.
    Note : Is it possible to trigger a job, when a job RESTARTS by subscribing to JOB_START ????????
    procedure sniffer_proc(p_message in sys.scheduler$_event_info)
    is
    --Code
    end sniffer_proc
    dbms_scheduler.create_program(program_name => 'PROG',
    program_action => 'sniffer_proc',
    program_type => 'stored_procedure',
    number_of_arguments => 1,
    enabled => false);
    -- Define the meta data on scheduler event to be passed.
    dbms_scheduler.define_metadata_argument('PROG',
    'event_message',1);
    dbms_scheduler.enable('PROG');
    dbms_scheduler.create_job
    ('JOB',
    program_name => 'PROG',
    * event_condition => 'tab.user_data.event_type = ''JOB_OVER_MAX_DUR''' ||*
    *' or tab.user_data.event_type = ''JOB_START''',*
    queue_spec => 'sys.scheduler$_event_queue,auagent',
    enabled => true);
    I tried this too...
    dbms_scheduler.create_job
    ('JOB',
    program_name => 'PROG',
    * event_condition => 'tab.user_data.event_type = ''JOB_OVER_MAX_DUR''' ||*
    *' and tab.user_data.event_type = ''JOB_START''',*
    queue_spec => 'sys.scheduler$_event_queue,auagent',
    enabled => true);
    Need help
    Thanks...
    Edited by: user602200 on Dec 28, 2009 3:00 AM
    Edited by: user602200 on Dec 28, 2009 3:03 AM

    Hi,
    Here is complete code which I tested on 10.2.0.4 which shows a second job that runs after a first job starts and also when it has exceeded its max run duration. It doesn't have the condition but just runs on every event raised, but the job only raises the 2 events.
    Hope this helps,
    Ravi.
    -- run a job when another starts and exceeds its max_run_duration
    set pagesize 200
    -- create a user just for this test
    drop user test_user cascade;
    grant connect, create job, create session, resource,
      create table to test_user identified by test_user ;
    connect test_user/test_user
    -- create a table for output
    create table job_output (log_date timestamp with time zone,
            output varchar2(4000));
    -- add an event queue subscriber for this user's messages
    exec dbms_scheduler.add_event_queue_subscriber('myagent')
    -- create the first job and have it raise an event whenever it completes
    -- (succeeds, fails or stops)
    begin
    dbms_scheduler.create_job
       ( 'first_job', job_action =>
         'insert into job_output values(systimestamp, ''first job runs'');'||
         'commit; dbms_lock.sleep(70);',
        job_type => 'plsql_block',
        enabled => false, repeat_interval=>'freq=secondly;interval=90' ) ;
    dbms_scheduler.set_attribute ( 'first_job' , 'max_runs' , 2);
    dbms_scheduler.set_attribute
        ( 'first_job' , 'raise_events' , dbms_scheduler.job_started);
    dbms_scheduler.set_attribute ( 'first_job' , 'max_run_duration' ,
        interval '60' second);
    end;
    -- create a simple second job that runs when the first starts and after
    -- it has exceeded its max_run_duration
    begin
      dbms_scheduler.create_job('second_job',
                                job_type=>'plsql_block',
                                job_action=>
        'insert into job_output values(systimestamp, ''second job runs'');',
                                event_condition =>
       'tab.user_data.object_name = ''FIRST_JOB''',
                                queue_spec =>'sys.scheduler$_event_queue,myagent',
                                enabled=>true);
    end;
    -- this allows multiple simultaneous runs of the second job on 11g and up
    begin
      $IF DBMS_DB_VERSION.VER_LE_10 $THEN
        null;
      $ELSE
        dbms_scheduler.set_attribute('second_job', 'parallel_instances',true);
      $END
    end;
    -- enable the first job so it starts running
    exec dbms_scheduler.enable('first_job')
    -- wait until the first job has run twice
    exec dbms_lock.sleep(180)
    select * from job_output;

  • Item close event is triggering twice for Advanced Data Grid

    HI, I'm using AdvancedDataGrid for my project. My issue is when click on item close, the item close event is triggering twice. Why it is triggering twice? Thank you...

    Hi,
    Would you mind reposting your question over on the Flex forums?  You'll most likely have better luck over there.
    Thanks,
    Chris

  • When and where IDOC is triggered for TCode MD04

    Please guide me when and where IDOC is triggered for TCode MD04. In my case it is triggering even though I am trying to save a PO with error or on hold.

    Hi,
    Idoc triggers when we save or change the PO. It depends on the message control settings in the partner profile. Check the message control settings.
    thanks
    sarvesh

Maybe you are looking for

  • Slow on authentication windows

    My work 15" MacBook Pro (2.3 GHz i7) running 10.8.5 has a strange problem that I have not been able to figure out why it's happening. When I am away from work, my MB Pro is very slow on any sort of OS X authentication: - Password prompt when deactiva

  • Dynamic List and Security Issue

    Hi I have a Dynamic List Wizard for orders, which the user can click on edit to edit or modify the order and if the user choose "Yes" to submit ( the order form has a submit filed which has Yes / No Values)then the EDIT button disappear and the user

  • Asha 210 Yahoo Inbox not showing

    I just got a new Asha 210 phone.  I have two mail accounts with it connected.  The Hotmail one works fine.  The Yahoo one always shows the Inbox as (empty) even after refresh.  It shows that it is busy doing the refresh but the Inbox always shows as

  • Can anyone tell me why the padlock opens itself in my network  settings

    can anyone tell me why the padlock opens in my network settings window without me doing it???

  • FCP export to "QuickTime Movie" distorts aspect ratio of all text, displays video correctly.

    Hi you all, My name is Alexander, I'm from Belgium. I'm working on Final Cut Pro 6.0.6, on a MacBook Pro with a 2.53 GHz Intel Core 2 Duo Processor, running version 10.7.2 of Mac OS X (Lion). I'm editing a 'making of' of a Flemish feature film. I sho