Executive Summary
BAC Partners is an Australian digital transformation and customer experience consultancy. It helps organisations improve sales, marketing, customer service and operations through strategy, process optimisation, CRM platforms and automation.
BAC Partners engaged Peritos Solutions to build an automated data pipeline between SAP Business One and HubSpot, using a purpose-built MySQL staging database on Ubuntu cloud infrastructure. Across four phases in six weeks, the team migrated 5,754 companies, 5,346 contacts and 147,398 deals into HubSpot, complete with RFM scores, lifetime revenue metrics and parent-child company hierarchies.
Project outcomes
Results & Impact
Demo System provided
SAP
5+ integrated
SAP Scenarios
For New Sales deal
Demo Support
147k+
Background
BAC Partners’ client, a dental practice group, held its operational data in SAP Business One. Its sales and marketing teams needed that data in HubSpot in a clean, structured format that stayed up to date automatically, without manual exports or re-keying.
BAC Partners also wanted the application to be Python-based and configuration-driven, so it could be replicated for future clients simply by updating a configuration file.

Challenge
SAP and HubSpot use different data models, so data had to be normalised and enriched with custom business rules before it could be pushed into HubSpot’s companies, contacts and deals objects.
Data quality was a major issue. Some contacts had missing or malformed emails, some companies had no names, and SAP’s website field contained email addresses that HubSpot rejected. The dataset also held 5,577 item codes, exceeding HubSpot’s 5,000-option limit for multi-select properties.
Several companies shared the same email address, which HubSpot rejects as a duplicate. Initial RFM values were also incorrect because the query was missing the price-times-quantity calculation.
Solution
Python scripts extract company and deal data from SAP’s SQL Server into MySQL (DB-2), where business rules and calculated fields are applied. Further scripts push the staged data into HubSpot through its REST API, creating companies, proxy contacts and deals with all relationships linked.
CRON jobs keep the data in sync automatically, and change-pointer logic uses last-modified columns in SAP to update only changed records. A daily script refreshes RFM scores and days since last order every morning.
Key Solution Capabilities
- Automated Sync: Keep HubSpot aligned with SAP through scheduled CRON jobs.
- RFM Scoring: Rank customers using recency, frequency and lifetime revenue.
- Revenue Metrics: Track days since last order, lifetime order count and lifetime revenue.
- Company Hierarchies: Preserve parent-child relationships between dental practices.
- Change Detection: Update only modified records using change-pointer logic.
- Config-Driven Reuse: Deploy for new clients by updating a single config file.
- Zero Middleware Cost: Run on pure Python and Ubuntu with no iPaaS licensing.
Approach
Phase A covered SSH and database access, field-level data mapping, custom HubSpot properties and a risk and gap analysis, all signed off before any code was written.
Data quality issues were resolved through agreed rules. Invalid emails were skipped, blank company names fell back to the card code, and item codes and company domains were removed from the mapping by agreement. Duplicate email errors are caught in code, and those contacts are linked to the first-created record. The RFM query was corrected with nine-decimal precision to match BAC Partners’ validation figures.
A 1,000-record test push was verified in HubSpot before the full migration. The project closed with one week of hypercare and full documentation, with all scripts maintained in GitHub and CRON execution logged for auditing.
Executive Summary
DeepIQ simplifies industrial analytics with a self-service application for end-to-end Data and AI operations in the industrial world. It helps subject-matter experts digitise their expertise and lets data teams build and deploy robust analytic pipelines, with offices in the USA, India and Canada.
Peritos Solutions delivered a SAP Vendor and Work Order integration proof of concept for DeepIQ across three structured phases. Starting with an assessment completed in under two weeks, the team designed and built custom ABAP BAPIs, exposed SOAP and REST web services, and handed over a fully tested, documented solution within a compressed timeline.
Project outcomes
Results & Impact
Demo System provided
SAP
5+ integrated
SAP Scenarios
For New Sales deal
Demo Support
< 8 weeks
Demo ready
Background
DeepIQ needed an integration layer to extract vendor master data and work order information from its SAP system and expose it to external applications. The aim was to evaluate viable integration patterns, including SOAP, REST and BAPI/RFC, and deliver a working, reusable service layer that could later be extended to production.
The scope covered vendor list and detail data, work orders filtered by vendor number and date range, and a custom BAPI with up to 10 input and 50 output fields. Production deployment and middleware configuration were out of scope for this phase.

Challenge
SAP’s web service authentication settings needed careful tuning, and several configurations were tested before external SOAP calls could succeed.
Initial work order queries returned records outside the requested date range, and vendor numbers carried leading zeros that did not match the format expected by the consuming application.
All phases also had to fit around DeepIQ’s internal scheduling constraints, which meant working iteratively with short feedback cycles.
Solution
In the SOAP phase, Peritos created a custom BAPI (Z_VEN_WRK_ORDS) using ABAP object-oriented programming and exposed it as a simplified web service with a WSDL definition. Vendor list and detail endpoints were validated in SOAP UI.
In the REST phase, a wrapper class implementing IF_HTTP_EXTENSION was registered as an SICF service. Responses are serialised to JSON using /ui2/cl_json and were verified in Postman for vendor list, vendor detail and work order queries. Access uses HTTP Basic Auth with service user credentials.
Key Solution Capabilities
- Vendor Master Access: Retrieve vendor lists and detailed vendor records from SAP.
- Work Order Retrieval: Filter work orders by vendor number and date range.
- SOAP Web Services: Consume SAP data through WSDL-based endpoints.
- REST APIs: Access the same data through REST endpoints with JSON output.
- Native SAP Exposure: Expose services directly from SAP, with no middleware needed for the POC.
- Reusable Service Layer: Extend endpoints to other SAP objects without re-architecture.
- Validated Approach: Integration design checked against SAP R/3 and S/4HANA constraints.
Approach
The engagement began with an assessment covering requirement gathering, SAP system access, and a risk and gap analysis of SAP version constraints, authentication settings and BAPI structural gaps. A customised assessment report with architecture recommendations was signed off before any code was written.
Peritos corrected the ABAP selection logic to enforce strict date boundaries, reformatted output dates to DD/MM/YYYY and normalised vendor numbers with CONVERSION_EXIT_ALPHA_OUTPUT. Daily stand-ups and two-to-three-day feedback cycles kept delivery on track.
The project closed with one week of hypercare, during which all bugs were resolved with a 100% test pass rate. WSDL definitions, the ABAP code bundle, unit test evidence and architecture notes were handed over to the client.









