Ansicht
Dokumentation

CNV_PE_MC_SIMULATE - Simulate Instances

CNV_PE_MC_SIMULATE - Simulate Instances

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

You can use this report to simulate the transfer of migration object instances.

Integration

Prerequisites

  • The selection must have been executed for the chosen migration object.

Features

Options for Simulating Instances:

Choose the set of instances, for which you want to execute a simulation:

  • Simulate All Instances
All selected migration object instances will be simulated.
  • Simulate Instances With Errors
All selected migration object instances with selection or simulation errors will be simulated. If you want to simulate instances with specific errors (for example: only simulation errors), you can provide this criterion in Simulate Specific Instances.
  • Simulate Number of Instances
You provide the maximum number of instances that shall be simulated.
  • Simulate Specific Instances
You provide semantic criteria for instances in the dialog that opens when choosing Select Instances. You can provide criteria for any data field of migration object instances and for the technical fields Migration Instance ID, Status,and Action.

Options for Debugging During Simulation

Internally, the original data of an instance (content of Source Tables) must go through the transformation defined in Structureand Field Mapping before a call of the target function (target API), that is used for creating the corresponding instance in the target system. As a rule, target function module has a complex signature with multiple parameters (importing, tables, etc.). The transformed instance data fits exactly to the format of all relevant signature parameters.

Simulating the transfer of an instance is done in two steps:

  1. All mappings defined in Structureand Field Mappingare applied to the original instance data.
  2. the target API is called in the test mode. As a rule, one signature parameter (for example IV_TEST) is automatically set to 'X' indicating a simulation run. During the real transfer, this test parameter is left blank.

You have two options to debug the process:

  • Breakpoint Before Mapping
If you set this flag, you can debug the transformation process (application of assigned mappings) of instance data. The simulation process stops at a breakpoint in the generated technical function module after reading original instance data from database and before applying assigned mappings. This option corresponds to the first step of the simulation process.
  • Breakpoint Before API Call
If you set this flag, you can debug the simulation process of an instance (application function module call with transformed instance data). The simulation process stops at a breakpoint in the generated technical function module afterapplying assigned mappings and before target function call. This option corresponds to the second step of the simulation process.

View Instances That Will Be Simulated

You have two options to vies instance data:

  • View Instances Before Mapping
If you set this flag, you will be able to see original data of instances that are currently being simulated. For each instance system brings up a popup that displays its data before applying assigned mappings.
  • View Instances After Mapping
If you set this flag, you will be able to see transformed data of instances that are currently being simulated. For each instance system brings up a popup that displays its data after applying assigned mappings.
Note, for a parameter of the function module signature, that is deeply nested (for example, tables parameter that itself has components of type table or structure), only fields of the first level can be displayed in the popup. Content of nested components cannot be displayed, but is still considered during simulation. You can see this content in the debugger if you choose debugging option Breakpoint Before API Call.

In case you simulate more than five instances and have activated either the debugging or view option, you will be asked after each five instances, whether you want to continue with this setting. You can continue with activated option by choosing Yes, continue with deactivated option by choosing No or cancel the simulation process by choosing Stop.

Selection

Standard Variants

Output

Activities

Example






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5978 Date: 20240531 Time: 234213     sap01-206 ( 102 ms )