In remodeling, you can use a customer exit to fill added or replaced characteristics and key figures with initial values.
...
1. To implement a user-specific class, in the SAP Easy Access menu, choose Tools → ABAP Workbench → Development → Class Builder.
2. Enter a name for your implementation and choose create.
3. Select Class as the object type.
4. Enter a description and select the following options:
○ Instantiation: Public
○ Usual ABAP Class
○ Final
Save your entries. The Class Builder appears.
5. Use the IF_RSCNV_EXIT interface. This has the EXIT method with the following parameters:
Parameter |
Description |
I_CNVTABNM |
Name of the remodeled table. You require this parameter if you want to use the same customer exit for more than one remodeling rule. |
I_R_OLD
|
Structure of the table before remodeling |
C_R_NEWFIELD |
Result of the routine, which is assigned to the new field |
6. Implement your class and save your entries.
All classes that implement the IF_RSCNV_EXIT interface are available in remodeling. They are listed in the input help for the customer exit.