Service Invoice Check

Purpose

If you offer services in your leases in addition to physical objects, you have to make sure that you post and pay only those service invoices that are covered by your customer's lease. In the case of invoices for services that are not covered by the lease, you either bill the customer or, in the case of errors, file an objection with the invoicing party.

Because the service invoices are received in SAPERP (agency business) but the leases are stored in SAPCustomer Relationship Management (SAP CRM), the two systems must exchange this data. To do this, you use SAP NetWeaver Exchange Infrastructure .

Prerequisites

  • You have entered the basic settings in SAP NetWeaver Exchange Infrastructure . For more information, see SAP Help Portal at Start of the navigation pathhelp.sap.com Next navigation step SAP NetWeaver Next navigation step SAP NetWeaver 7.0 (2004s) Next navigation step SAP NetWeaver 7.0 Library, English/German Next navigation step SAP NetWeaver Library Next navigation step SAP NetWeaver by Key Capability Next navigation step Process Integration by Key Capability Next navigation step SAP NetWeaver Exchange Infrastructure.End of the navigation path

  • To connect SAP CRM and SAP NetWeaver Exchange Infrastructure , you have created a site with the type External Interfaces for XI in the middleware for SAP CRM. To enable communication between the two systems, you have created a subscription for the site with the type All Business Transactions .

    For more information, see Customizing for SAP CRM under Start of the navigation pathCRM Middleware and Related Components Next navigation step Exchanging Data with External Components Next navigation step XIF Adapter Setup Next navigation step Outbound Direction Next navigation step Create Sites and Subscriptions.End of the navigation path

  • You have assigned the BDoc type and the interface CRMXIF_SERV_CONF_NOTIF_SAVE to the site.

    For more information, see Customizing for SAP CRM under Start of the navigation pathCRM Middleware and Related Components Next navigation step Exchanging Data with External Components Next navigation step XIF Adapter Setup Next navigation step Outbound Direction Next navigation step Assign Site and BDoc Type to Interface Type.End of the navigation path

Process Flow

The figure below illustrates the components and actions involved:



To enable you to perform the invoice check, we provide XI content with the following interface and mapping objects:

  1. Send invoice data to be checked (SAPERP)

    The system performs this check if an invoice relates to a previously planned service, that is, if the invoice has a service order number. SAP ERP transfers the service order number and the object reference, for example the license plate number, to SAPCRM.

    Interface in Software ComponentEA-APPLEA-APPL 603 or Higher:

    Message interface

    InvoiceDataToCheck_Out (synchronous, outbound)

    Namespace

    http://sap.com/xi/AB/FS/VP

    Message type (request)

    InvoiceData

    Message type (response)

    True

    Fault message type

    StandardMessageFault

  2. Receive invoice data to be checked (SAPCRM)

    SAPCRM receives the service order number from the agency business in SAPERP. The system checks whether the service order number exists with the object reference in SAPCRM.

    • If this check is successful, the system can perform further invoice checks.

    • If this check is not successful, the system displays an error message. You must correct your entries for in the invoice in the agency business.

      Interface in Software ComponentSAP BBPCRMSAP CRM ABAP 7.0:

      Message interface

      InvoiceDataToCheck (synchronous, inbound)

      Namespace

      http://sap.com/xi/CRM/FS

      Message type (request)

      InvoiceData

      Message type (response)

      True

      Fault message type

      StandardMessageFault (http://sap.com/xi/CRM)

  3. Send invoice information (SAPERP)

    If you enter service invoices in a settlement request list in SAPERP and save this data, the system transfers the invoice data to SAPCRM to create a service confirmation for each single invoice.

    Interface in Software ComponentEA-APPLEA-APPL 603 or Higher:

    Message interface

    InvoiceInformation_Out (asynchronous, outbound)

    Namespace

    http://sap.com/xi/AB/FS/VP

    Message type

    InvoiceInformation

  4. Receive invoice information (SAPCRM)

    In SAPCRM, the system uses the invoice data from agency business to create a service confirmation.

    The system searches for a service order and for the lease for the service confirmation and checks whether these correspond to the service confirmation.

    Interface in Software ComponentSAP BBPCRMSAP CRM ABAP 7.0:

    Message interface

    InvoiceInformation_In (asynchronous, inbound)

    Namespace

    http://sap.com/xi/CRM/FS

    Message type

    InvoiceInformation

    Fault message type

    StandardMessageFault (http://sap.com/xi/CRM)

  5. Send service confirmation notification (SAPCRM)

    When the service confirmation has been created and compared with the documents in SAPCRM, SAPCRM transfers the notification that the service confirmation has been created to SAPERP.

    Interface in Software ComponentSAP BBPCRMSAP CRM ABAP 7.0:

    Message interface

    ServiceConfirmationNotification_Out (asynchronous, outbound)

    Namespace

    http://sap.com/xi/CRM/FS

    Message type

    ServiceConfirmationNotification

  6. Receive service confirmation notification (SAPERP)

    If the check in SAPCRM is successful, the system releases the invoice item in the settlement request list. If the check is not successful, the invoice item remains open in the settlement request list and you must postprocess this manually.

    Interface in Software ComponentEA-APPLEA-APPL 603 or Higher:

    Message interface

    ServiceConfirmationNotification_In (asynchronous, inbound)

    Namespace

    http://sap.com/xi/AB/FS/VP

    Message type

    ServiceConfirmationNotification

    Fault message type

    StandardMessageFault

More Information

For more information, see Checking of Service Invoices .