Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 5 of 5

Testing and transporting objects

11 min

Listen to this lesson

0:00 / 17:18

A modeled object is software. It needs the same discipline as any other development: tests at several levels, a defect process, and a controlled path from development through test into production. Migration teams that treat modeler changes as "just configuration" find out in the final load that the object in production is not the object they tested.

Test levels for a modeled object

Full-volume and timing testMock loads: all records, parallel processing, run time measured for the cutover plan
Reconciliation and validationCounts and values against the source; owners check samples and use the data in processes
Object test in the cockpitTargeted records through template, simulation and migration; results displayed in the target
Unit test of the function moduleDeveloper calls the module directly with test data, with and without the test-run flag
Test levels for a custom or adapted object, from the developer's unit test up to full-volume mocks.
The Sign-Off Table · thesignofftable.com/academy/sap-dmg-301

Start small. The developer tests the function module directly: valid data, each kind of invalid data, the test-run flag (nothing saved, all messages returned) and repeated calls. Then the specialist runs a targeted set through the cockpit. Only when that set behaves does the object join a mock with full volume.

A targeted test set for a custom object

CaseExample recordExpected result
Valid header with several itemsFlotillas Monterrey with deposits for two alternator modelsAgreement created; items match; success messages
Missing referenceAgreement for a customer not yet loadedRejected with a clear message naming the customer
Invalid valueDeposit category not in the translation objectReported as a mapping task or error; never defaulted
BoundaryLongest allowed text; zero and maximum deposit amountsAccepted or rejected exactly as specified
SimulationAny valid record in simulationMessages returned; nothing saved in the target table
Repeat loadThe same record loaded twiceSecond attempt rejected as duplicate, or behavior as specified

Targeted tests for the Wave 2 core return agreement object. Each case has a written expected result.

A modeled object moves forward only through development, transport and tests; every defect sends it back to CMD, never to a fix in place.
The Sign-Off Table · thesignofftable.com/academy/sap-dmg-301

Moving objects across systems

Build and change migration projects and objects only in the development system. In current on-premise and Private Edition releases, a staging table migration project can be transported with the standard change and transport system: the project is assigned to a development package when it is created in the Migrate Your Data app, and in LTMOM you add projects, objects and rules to a transport request. A project in the local package $TMP cannot be transported, and the package assignment cannot be changed later, so choose it deliberately. In quality and production systems, which are normally not modifiable, transported projects can be run but not changed.

Transports carry the definitions, but mapping values reach each system by a separate, controlled step that must be reconciled every mock.
The Sign-Off Table · thesignofftable.com/academy/sap-dmg-301
  1. Development (CMD)Build ABAP objects, project and modeler changes; record them on transport requests
  2. Release transportsDictionary objects and function modules with or before the migration project
  3. Quality (CMQ)Import; run the targeted set; maintain mapping values for this system
  4. Mock loadsRun full Wave 2 mocks in a production-like copy with the same transports
  5. Production (CMP)Import the same, tested transports; run the final load from the cutover plan
The transport path for migration objects. Production runs exactly what was tested.
The Sign-Off Table · thesignofftable.com/academy/sap-dmg-301

Release support for transporting projects has grown over time, and details differ for the staging table and direct transfer approaches. Check SAP's documentation and notes for your release before the first transport, and rehearse the full path in the first mock rather than discovering a gap on go-live weekend.

  1. Was the change made in the development system?No → redo it in development; never change objects in test or production · Yes → next question
  2. Are the function module and dictionary objects on transports released with or before the project?No → fix the transport order · Yes → next question
  3. Were mapping values maintained and checked in the target system?No → maintain from the approved specification · Yes → run the targeted tests in that system
Checks before running a transported object in a new system.
The Sign-Off Table · thesignofftable.com/academy/sap-dmg-301

What would you do?

During Wave 2 Mock 3, the specialist finds a mapping error in the core return object and offers to fix it directly in the mock system "to save a day". What should Priya decide?

A release checklist for every mock

Before each Wave 2 mock, Priya asks the migration specialist to complete a short release checklist for every adapted or custom object. It turns "we transported it" into evidence that the mock system holds exactly what was tested.

CheckWhoEvidence
Transports for project, objects, rules and ABAP objects imported in the right orderKenji's developer and SamImport log with transport numbers
Same Migration Cockpit corrections as the last tested systemSamNote list compared between CMQ and the target system
Mapping values maintained from the approved specification versionMigration specialistUploaded mapping file and reconciliation against the specification
Targeted test set rerun after importMigration specialist; owner reviewsMessage log export plus target displays
Object version recorded in the runbookLuisRunbook step references the specification and transport versions

Release checklist per adapted or custom object, completed before each mock and before the final load.

Key points
  • Test modeled objects at four levels: unit, object in the cockpit, reconciliation and validation, full volume and timing.
  • Targeted test sets cover valid, missing reference, invalid value, boundary, simulation and repeat cases.
  • Change only in development; transport projects, objects and rules with their ABAP objects; $TMP cannot be transported.
  • Mapping values do not travel with definitions; maintain and reconcile them in each system.

Check your understanding · not graded

Lesson check

  1. 1. What should the unit test of a custom object's function module include?

  2. 2. Why can a project in package $TMP not move to the test system?

  3. 3. Which of these is not carried by transporting a translation object definition?

  4. 4. A defect is found in a mock system. Where is it fixed?