SAP Integration

Direct SAP Integration

One platform for ECC, S/4HANA OnPrem, and S/4HANA Cloud. PUSH, PULL, and F110 payment tracking come standard — no extra modules.

Architecture

Data flow between Xpensio and SAP.

1. Mobile OCR

Employee photographs receipt — Gemini Vision parses Turkish e-invoice/e-archive (BIM) format.

2. Approval Chain

Grade-based cascade: Manager → Upper Manager → CFO → Finance. Auto-escalates when limit exceeded.

3. SAP FI Posting

After approval, posts directly via BAPI_ACC_DOCUMENT_POST or API_JOURNALENTRY_POST.

4. F110 Payment

Daily cron pulls payment status from F110; employee sees it live.

PUSH Mode

Xpensio → SAP. Approved expense flows directly to SAP.

  • BAPI_ACC_DOCUMENT_POST (ECC + S/4 OnPrem)
  • API_JOURNALENTRY_POST (S/4HANA Cloud OData)
  • Document number returns immediately
  • On error, queued for retry
  • GL account + cost center + VAT code auto-resolved

PULL Mode

SAP → Xpensio. ABAP program pulls expense list from Xpensio.

  • ZEXP_GET_EXPENSES Z-program runs periodically
  • Xpensio returns expense list as JSON
  • Posting is performed inside SAP
  • Result reported back via POST /pull/reports/:id/posted
  • Customer SAP IT controls the flow — no open RFC required

Supported SAP Variants

9 IdP/HR adapters + 4 SAP FI adapters. Pick what matches your stack.

VariantFI PostingHR SyncAuth
SAP ECC 6.0BAPI / RFCBAPI_EMPLOYEE_GETDATARFC over VPN
S/4HANA OnPremBAPI / ODataHCMFAB_EMPLOYEE_SRVRFC or OData
S/4HANA CloudAPI_JOURNALENTRY_POST (OData)SuccessFactors / Core HR APIOAuth2 + BTP
SuccessFactorsEmployeeCentral ODataOAuth2

Local Compliance & SAP Concepts

Turkey-specific SAP configuration ships standard.

KKEG (Law 7194)

Personal vehicle expenses and other non-deductible costs auto-split via KKEGGLACCOUNT mapping.

V-Code VAT

V0=0%, V1=1%, V2=8%, V3=18%, V4=10%, V5=20%. Automatic VAT account selection per Turkish Ministry of Finance circular.

UMSKZ

0=N (Normal), 1=O (Corporate Card → 309), 2=I (Company-Paid → 195 Business Advance), 3=N. Configured via ZEXP_CFG_02.

RELID / Cost Center

RELID = SAP HCM org code, mapped to Xpensio User.costCenterCode. Joined with CostCenter master.

F110

SAP Payment Run module. Xpensio polls daily and detects paid expenses.

GL Maintenance

GL account mapping managed from admin panel (/admin/gl-mappings). Separate screen for KKEG (/admin/gl-kkeg-mappings).

Security