cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger workflow when invoice is parked

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

morten_nielsen
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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