Sync GL Line Items from SAP ERP to Blackline DB

Recipe ToolsERPDatabase

What it does

When a scheduled interval triggers, this automation searches SAP ERP for general ledger line items. It batches them, maps the data to Blackline's GL common data model, and upserts rows to SQL Server with automatic retry on error.

Who it's for

Accounting teams who need GL line items from SAP ERP kept in sync with Blackline without manual exports.

How teams use this

Keep Blackline GL in sync with SAP

Run this automation on a daily or weekly schedule so Blackline always has the latest GL line items from SAP ERP without someone having to export and import manually.

Route syncs to different Blackline instances

Point the automation to a different Blackline database by changing the SQL Server connection, so multiple instances stay in sync with one SAP ERP source.

Filter GL items by cost center before sync

Add a condition to the SAP ERP search so only GL line items for specific cost centers are synced to Blackline, keeping the database lean and focused.

Include GL balance amounts in the sync

Extend the field mapping to include balance amounts and posting dates from SAP ERP so Blackline has richer GL detail for reconciliation.

How it works

  1. Trigger on a specified interval. On a schedule you set, this automation wakes up and begins to sync GL line items from SAP ERP to Blackline.
  2. Search and batch GL line items. Search SAP ERP for GLV_GL_ACCOUNT_LINE_ITEMs, get the total count, and create batches of 200 lines each to process in sequence.
  3. Map to Blackline GL data model. For each batch, map the SAP ERP fields to the Blackline GL common data model so the data matches the target schema.
  4. Upsert rows to Blackline database. Create or update each row in the sap_master.GL_ACCOUNT_LINE_ITEMS_SRV table in SQL Server so Blackline has the latest GL line items.
  5. Retry on error up to two times. If an error occurs during the sync, retry all steps in the monitor block up to two times before stopping.