Maintaining Event Type Linkages for Invoices

Objective

After completing this lesson, you will be able to maintain Event Type Linkages for Invoices to enable attachments and comments for invoices.

Maintaining Event Type Linkages for Invoices

Event linkages in SAP are connections between a business event, such as a document being created, changed, or deleted, and a receiver action like starting a workflow, running a function module, calling a method, or sending data to another system. ​

Event linkages are part of SAP Business Workflow and Event Management. They can be used both for internal process automation and for integration with external systems such as SAP Ariba through the Managed Gateway for Spend&Network. ​

When any business event occurs, such as a purchase order being approved, an invoice being posted, or a sales order being created, the linked receiver is triggered. The event linkage activates a predefined receiver, whether it's a workflow, a report, or an integration logic. The action is performed automatically, and follow-up tasks happen without manual intervention. ​

Event linkages are commonly used to trigger workflows when a new document is created in the SAP system, send data to an external application in real time, notify specific teams when a service entry sheet is approved, or initiate follow-up processes like goods shipment after sales order creation.​

General Benefits of Event Linkages:​

  • Real-Time Process Automation: Event linkages trigger processes immediately when a business event occurs, eliminating delays caused by manual actions or scheduled jobs.​
  • Reduced Manual Intervention: Event linkages remove the need for users to run separate programs or transactions after a business event.​
  • Improved Data Consistency: Because processing happens at the moment of the event, data is less likely to become outdated or mismatched between systems.​
  • Better Monitoring and Tracking: Events and their linkages can be monitored in transaction SWEL/SWELS, helping administrators trace processing steps and troubleshoot issues faster.​
  • Upgrade-Safe Customization: Event linkage allows you to add custom triggers without modifying SAP standard programs, preserving system stability during upgrades.​
  • Enhanced User Experience: Automating follow-up actions reduces repetitive tasks for end-users, letting them focus on value-added work.

In the Managed Gateway-AddOn, you need to establish the necessary event type linkage and activate it to receive attachments and comments in invoices. Maintaining event linkage for invoices in the Managed Gateway-AddOn ensures that specific SAP events related to invoices automatically trigger the corresponding inbound processing logic. The standard SAP IDoc doesn’t support attachments and comments, so this event linkage must be activated to manage them.​

Follow these steps to maintain Event Linkage for enabling attachments and comments for invoices:​​

​​

  1. Using the transaction code SPRO, navigate to Integration with Other SAP Components>Managed Gateway for Spend&Network for Buyer>SAP Business Network Integration>Application Specific Settings>Invoice.​​Image of step 1.
  2. Expand the Invoice section and select IMG-Activity for Maintain Event Type Linkages for Invoices.Image of step 2.
  3. On the Change View "Event Type Linkages": Overview screen, select New Entries.Image of step 3.
  4. On the New Entries: Details of Added Entries screen, maintain the following values:
    1. Object Category: BOR Object
    2. ObjectType: IDOCINVOIC​​
    3. Event:INPUTSUCCESS​​
    4. Receiver Type: ARBCIG_INVOIC​​
    5. Receiver Call: Method​​
    6. Class Name: CL_ARBCIG_INB_IDOC_SUCS_EVENT​​
    7. Interface Name: BI_EVENT_HANDLER_STATIC​​
    8. Method Name: ON_EVENT​​
    9. Event delivery: Using tRFC (Default)​​
    10. Linkage Activated: Check the box​​
    11. Behavior Upon Error Feedback: 0 System defaults​​
    12. Receiver Status: 0 No errors​​
  5. Choose Save.Image of step 4.

Note

  • When you enter Class Name, CL_ARBCIG_INB_IDOC_SUCS_EVENT, the values for the Interface Name and Method Name fields will auto-populate.​​
  • If you don’t check the Linkage Activated box, the event will not get triggered.​​
  • The SAP ERP system users can also use alternate values in these fields:​​
  • Object Type: IDPKINVOIC​​
  • Event: MASSINPUTFINISHED​​
  • Receiver Type: ARBCIG_INVOIC​​
  • Receiver Call: Function Module​​
  • Receiver Function Module: ARBCIG_INB_IDOC_SUCCESS_EVENT​​

Summary

Event linkages in SAP are essential for automating processes and integrating systems efficiently. By connecting business events like document creation or approval with receiver actions such as workflows or method calls, these linkages ensure real-time process automation, reducing manual intervention and increasing data consistency.​

Event linkages improve monitoring and tracking capabilities, allowing administrators to trace and resolve issues quickly. They also enhance user experience by automating follow-up actions, which minimizes repetitive tasks. Specifically, for processing invoices in the Managed Gateway-AddOn, maintaining event linkages enables attachments and comments to be managed effectively due to the custom settings required to support these features.