SAP integration

BAPI or function calls can be used by Kofax AP Agility.

The RFC calls used by Kofax AP Agility use the following SAP functions:

BAPI_PO_GETDETAIL

Retrieves details for a given purchase order number.

BAPI_INCOMINGINVOICE_CREATE

Creates a posted MM or FI invoice.

BAPI_INCOMINGINVOICE_PARK

Parks an MM or FI invoice.

BAPI_ACC_INVOICE_RECEIPT_POST

Posts an FI invoice.

RFC_READ_TABLE

Executes a select statement on a standard SAP table us the user has the necessary permissions. This function is used as follows:

  • Validate currency entered by a users against SAP.

  • Retrieve the purchase order line conditions and their respective vendors for posting miscellaneous charges and handling third-part freight invoices.

  • Read plant data from SAP.

Aside from the purchase order line conditions, a database lookup alternative is available to minimize RFC communication with SAP.

ARCHIV_CONNECTION_INSERT

Creates a link between an SAP document and an imagine in an external archive.

Z_BW_LATE_ARCHIVE

If late archiving is required, this custom function archives an image via SAP to an external archive.

BAPI_COMPANYCODE_GETDETAIL

Retrieves the details for a given company code.

Z_BW_PARK_FI_INVOICE

This function has the same interface as the BAPI_INCOMINGINVOICE_PARK function above. It creates a parked FI invoice or credit memo as it was entered manually through the FV60 SAP transaction. SAP does not provide an equivalent so this must be installed if you want to park FI invoices via FV60.

BAPI_TRANSACTION_COMMIT

Commits changes to the SAP database once a document is created.

BAPI_TRANSACTION_ROLLBACK

Rolls back changes in the SAP database if document creation fails.

BAPI_ENTRYSHEET_GETDETAIL

Reads service entry sheet data from SAP.

It is used during the line pairing operation for all purchase orders that are set for service-based invoice verification (SR-IV) to read the entry sheet line item data. It is also used for non service-based invoice verification purchase orders to check for a multiple account assignment.

The call to this BAPI can be disabled in the system configuration if required. If however, you disable this function, the system will not be able to complete line pairing against SR-IV purchase orders. In addition, the system is unable to pose against a non-SR-IV purchase order if the entry sheet has multiple account assignments.