Sync GL Line Items from SAP ERP to Blackline
Recipe ToolsERPDatabaseData ParserDocument/File
What it does
When a scheduled interval triggers, this automation searches SAP ERP for general ledger line items and syncs them to SQL Server in batches. It maps data to a common model, retries on error, and logs failures so the team knows what did not sync.
Who it's for
Accounting teams who need GL line items from ERP in Blackline without manual exports or data entry.
Apps used
- Scheduler by Workato
- Sap Erp
- Workato List
- Mapper by Workato
- SQL Server
- CSV tools by Workato
- Onprem Files Secondary
How teams use this
Keep GL data current in Blackline
Run the sync on a daily or hourly schedule so GL line items from ERP are always fresh in the SQL Server database. The team sees up-to-date balances without manual work.
Route failed batches to a team channel
When a batch fails to sync after the retry, add a Slack notification step that sends the batch details and error message to a channel. The team can fix the issue and rerun the batch.
Sync only changed GL items
Filter the ERP search to include only line items modified since the last sync run by adding a timestamp condition. This reduces batch size and speeds up the process for large GL accounts.
Archive synced batches to a file
After each batch is upserted to SQL Server, add a CSV export step to save the synced line items to an on-premises folder for audit and backup. The team has a record of every sync.
How it works
- Run on a scheduled interval. The automation starts at a specified time or frequency so GL line items stay current in the database.
- Search ERP for GL line items. Query SAP ERP for all general ledger account line items that match the search criteria and retrieve a total count of matching entries.
- Map and batch the results. Create batches of 200 line items and map each batch from SAP ODATA format to the Blackline common data model for database storage.
- Upsert rows to SQL Server. Create or update each line item in the SQL Server database so Blackline has the latest GL data from SAP ERP.
- Retry on error and log failures. If any batch fails to sync, retry once and save error details to an on-premises file so the team can investigate what did not reach the database.