GOAL synchronizes master and transactional data with SAP Business One (per-company SQL Server / HANA connections via CompanyAction + SB1Adapter).
| Entity | Direction | SAP object | GOAL identity |
|---|---|---|---|
| Business partners | SAP → GOAL (queue, CLI, API) | OCRD |
code = CardCode, remote_id = DocEntry |
| Products / items | SAP → GOAL (queue, CLI, API) | OITM |
code = ItemCode, remote_id = DocEntry |
| Business partners (outbound) | GOAL → SAP | OCRD |
Updates via adapter from domain actions |
| Sales documents | GOAL → SAP | varies | see sales modules |
| Profile-based master sync | SAP → GOAL | gproc views / tables |
SB1SynchronizationProfile |
remote_id (DocEntry)When ERP users change CardCode or ItemCode, GOAL must not create a duplicate row. Inbound sync resolves existing records by code first, then remote_id (DocEntry).
Full reference: Master data sync (remote_id).
Quick CLI:
php artisan goal:business-partners:sync-from-sap --company=9
php artisan goal:products:sync-from-sap --company=9
ObjectChangesQueuerAction enqueues bulk jobs when SB1 change tracking marks rows pending:
| SAP source | Job | Canonical action |
|---|---|---|
ocrd |
BusinessPartnerSyncJob |
SyncBusinessPartnerFromSapAction |
oitm |
ProductSyncJob |
SyncProductAction |
UpdateBusinessPartnerAction) use try/catch so SAP downtime does not block local saves.