ERPClimb logoERPClimb
ABAP Cloud and Released APIs
RAP / CDS / ODataadvanced 8 min read

ABAP Cloud Part 3: Replacing Direct Table and Classic API Dependencies

Preview · a free account unlocks the full lesson

Key takeaway

Remediate classic dependencies step by step: inventory tables, function modules, classes and statements used; find released successors; replace table reads with CDS, BAPIs with RAP interfaces or wrappers, and system fields with released classes.

In this lessonShow sections

Visual overview

ABAP Cloud Part 3: Replacing Direct Table and Classic API Dependencies — learning sheetFlow: Run ATC cloud readiness on the package → Group findings by dependency → For each dependency, record the successor (ADT, Accelerator Hub, Cloudification Repository) → Refactor with the patterns in the code example; compare results; re-run ATC. Key ideas: INVENTORY; FIND SUCCESSORS; REPLACEMENT PATTERNS; SEMANTIC DIFFERENCES. Watch out: Check field semantics when switching to CDS — names, units and filters differ from tables.ERPClimb.com / RAP / LESSON 3/7 / LEARNING SHEETABAP Cloud Part 3: Replacing Direct Table and Classic APIDependencies1 · HOW IT FLOWS1Run ATC cloudreadiness on thepackage2Group findingsby dependency3For eachdependency,record the…4Refactor withthe patterns inthe code…2 · KEY IDEAS EXPLAINEDInventoryList every SAP object your code touches: tablesand views, function modules and BAPIs, classes,BAdIs, transactions called, statements used…Find SuccessorsADT: the API state of the object, including asuccessor if SAP defined one ("use I_…instead").SAP Business Accelerator Hub: released APIs byproduct.Replacement PatternsTable read → released CDS view: VBAK/VBAP →I_SalesOrder/I_SalesOrderItem; LFA1 → I_Supplier;MARA → I_Product.Change via BAPI/FM → EML on a released RAP BOinterface (…TP) or a released API class.Semantic DifferencesCDS views are not 1:1 copies of tables: names arereadable (SalesOrganization instead of VKORG),some filters apply (e.g. only certain document…3 · REMEMBER · WATCH OUTRememberFirst inventory every SAP dependency, then find a released successorfor each.Tables → released CDS views; BAPIs/FMs → released RAP BO interfaces orclasses; sy fields → released classes.No successor? → tier 2 wrapper (on-premise/private cloud) or redesign.!Watch outCheck field semantics when switchingto CDS — names, units and filtersdiffer from tables.4 · IN A REAL PROJECTA team ported a supplier evaluation report to ABAP Cloud and replaced LFA1 reads with I_Supplier in oneafternoon. In testing, the number of suppliers differed: the report now excluded some one-time suppliers thatthe old table read had included. Instead of reverting, they checked the CDS view's semantics, confirmed with…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 and 2 set the goal. Migrating existing code, or porting a design, to ABAP Cloud is mostly a matter of dependency remediation, and this part gives the method for doing it.

The first step is an inventory: listing every SAP object the code touches — tables and views, function modules and BAPIs, classes, BAdIs, transactions called, and statements used such as WRITE, SUBMIT, CALL TRANSACTION, or dynpro logic. ATC cloud readiness findings, covered in Part 4, produce most of this list automatically.

The next step is finding successors for each dependency. ADT shows the API state of an object, including a successor if SAP has defined one, often phrased as "use I_… instead." The SAP Business Accelerator Hub lists released APIs by product. And SAP's Cloudification Repository offers a public list of classic objects alongside their released successors.

A number of replacement patterns recur often. A table read becomes a released CDS view — VBAK/VBAP becomes I_SalesOrder/I_SalesOrderItem, LFA1 becomes I_Supplier, MARA becomes I_Product. A change made via a BAPI or function module becomes EML against a released RAP BO interface (named with a …TP suffix) or a released API class. sy-uname, sy-datum and sy-uzeit become cl_abap_context_info.

Number ranges become cl_numberrange_runtime, which is released. The application log becomes cl_bali_log and related released classes. HTTP calls become cl_web_http_client_manager together with cl_http_destination_provider. Lists and reports become a RAP service with Fiori Elements, or a console class for technical tools. Background processing becomes application jobs, using released job APIs.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.