One MCP. The entire ERP.
Try Lensing with Claude, ChatGPT, or WorkBuddy

AiSpecify

Capture custom report logic and migrate it to SAP

This team extracted legacy report logic and rebuilt it as clean-core SAP BTP application, which preserved business rules no one had ever documented.

Industry
Consulting (Utilities)
Systems
Oracle CISCayentaSAP S/4HANASAP BTP
Jobs
Report logic extractionApp generationDocumentation

Used by

SAP consultant; ERP architect; Data / reporting lead

The problem: Custom reports are difficult to migrate

People spend decades building their custom report logic, and then those reports rarely survive an ERP migration. There's so much undocumented detail and tacit knowledge that goes into building and using them, that it seems easier for the migration team to just start over. Only, they can't, because no one even knows how they were built. The business users inherited these reports and doesn't actually know how to reconstruct them. So the reports get left behind, and the new ERP's reporting is worse, for a time.

Traditionally this is just a cost of the migration. Companies end up paying consultants to trace the logic, reverse-engineer it with SQL, interrupt business teams to interview them, and at least partially document it all for transfer. But one team wanted to know if they could use Lensing to build a lightweight, in-ERP app on SAP's Business Technology Platform (BTS) just to manage transferring report logic automatically.

What AiSpecify was given

Instructions

Analyze legacy Oracle and Cayenta reporting systems and extract the logic, data sources, and business rules behind custom reports. Generate SAP-compatible reporting specifications and applications using SAP BTP that replicate and improve these reports while maintaining clean-core principles. Additionally, identify key report outputs and metrics, map underlying data sources, translate logic into SAP-compatible structures, and generate UI for report consumption.

  • Legacy report definitions
  • SQL queries / scripts
  • Database schemas
  • Historical report outputs
  • Documentation (if available)
  • User-provided context on report usage

What AiSpecify generated

AiSpecify created structured documentation of each custom report. It extracted business logic and calculation rules, mapped data sources to SAP data models, considered SAP BTP application architecture translations for reports, generated interface prototypes for report dashboards, and wrote specifications for implementation and testing. In some cases, it fully generated the reporting applications and integration logic to pull data from SAP S/4HANA, no work needed.

  • DOC — Report documentation + extracted business logic

  • DOC — Data source mapping to SAP

  • APP — SAP BTP reporting applications

  • GIF — UI prototypes for report dashboards

  • DOC — Implementation and testing specs

Systems involved

Source

Oracle CIS

Legacy ERP

Source

Cayenta

Analytics

Target

SAP S/4HANA

New ERP

Extensions

SAP BTP

Extensions for custom reports

The impact

The new, report-translating clean-core SAP BTS app significantly reduced the time needed to rebuild their custom reports. It reliably interprets and captures business logic that had previously escaped users, and eliminated the need to reverse-engineer reports or interview business teams. This allowed the team to transition to SAP with no loss in reporting fidelity.

  • Captured invisible business logic

  • Created durable documentation that could survive the migration

  • Eliminated the need for outside consultants or reverse-engineering

Share this use case

See more AiSpecify use cases

Rebuilding custom reports during an SAP migration?

Legacy report logic is the last thing anyone documents and the first thing the business misses. See how AiSpecify extracts it and generates SAP BTP reporting apps.

Used By

Genista Biosciences logo

Frequently asked questions

As well as some infrequently asked ones that are nevertheless quite smart.