Skip to Content
avatar image
Former Member

Trigger workflow when invoice is parked

Hi,

I have created a custom workflow with biz obj ZFIPP (subtype of FIPP). I have tried triggering it via a custom report and it's working. Now, I would like to trigger it when an invoice is parked.

Will I be able to configure it in SPRO (OBWA and OBWJ) so that it will automatically trigger the workflow? Actually, I tried and failed. Is it because I am using ZFIPP instead of FIPP?

Since I am rather pressed for time, I think it's easier if I can find an enhancement point, exit or badi where I can raise the event directly. Anybody knows of any suitable point? Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 21, 2007 at 03:21 AM

    Got this from SAP notes.See if this helps you.Looks like it matches your req.

    Use the Business Add-In (BADI) INVOICE_UPDATE prior to the posting of an invoice document in order to program this event. Proceed here as follows:

    In the 'Business Object Builder' transaction (Transaction SWO1) you can find the event 'Parked' for object type BUS2081 which represents the incoming invoice. This is triggered during the creation of a parked incoming invoice and when a parked incoming invoice is changed, when the status 'Parked' is kept. An event which is only triggered during the change process does not exist.

    1. Create subtype ZBUS2081 for object type BUS2081 in the object builder. Define the event parkedChanged for this subtype.

    2. Call Transaction SE19 and enter a user-defined name for your implementation.

    3. Enter INVOICE_UPDATE as the definition name.

    4. Select interface CHANGE_BEFORE_UPDATE.

    5. Implement the correction instructions.

    6. Activate the BADI.

    7. Set the status of the event parkedChanged to 'Released' and generate object type ZBUS2081.

    8. Define your workflow in the development environment and enter the event parkedChanged as the triggering event for this workflow

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 21, 2007 at 08:53 PM

    Hi

    Have a look at Business object BUS2081, instead of FIPP. (If applicable). If you use MIR7 for parking, you will get the event Parked raised automatically.

    Please notice that you can use MIR7, MIRO and MIR4 for invoice without reference to a pruchase order as well.

    Regards

    Morten

    Add comment
    10|10000 characters needed characters exceeded