SAP Menu: Tools > ABAP Workbench > Development > Class Builder
T/code: SE24
Create the following 2 interfaces as shown in the screenshots:
Figure 1: Example of Interface Method
For Interface YIF_SAPI_BADI_DATA, the Parameters can be copied from the corresponding IF_EX_RSU5_SAPI_BADI method, i.e. DATA_TRANSFORM.
Figure 2: Interface for General Data Transfer - Parameters
For Interface YIF_SAPI_BADI_HIER, the Parameters can be copied from the corresponding IF_EX_RSU5_SAPI_BADI method, i.e. HIER_TRANSFORM.
Figure 3: Interface for Hierarchy Data Transfer - Parameters
Don’t forget to include the Tag Interface for BAdIs IF_BADI_INTERFACE.
Figure 4: Tag Interface for BAdIs
SAP Menu: Tools > ABAP Workbench > Utilities > Business Add-Ins > Business Add-Ins > Definition
T/code: SE18
Create the following Enhancement Spot as shown in the screenshot:
Figure 5: Enhancement Spot
On the overview screen of the Enhancement Spot you are able to create one or more BAdI Definitions. Create the following BAdIs definitions as shown in the screenshots:
The settings of both BAdI Definitions are basically the same and will be explained by showing the screenshots for BAdI Definition YBW_SAPI_BADI_DATA.
Figure 6: BAdI Definition - Overview
Note: Although not shown on the screenshot, deactivate Multiple Use, activate Limited Filter Use and choose Reusing Instantiation instead of Newly Creating Instantiation.
Figure 7: BAdI Definition - Interface
Figure 8: BAdI Definition - Filter (1)
Figure 9: BAdI Definitions - Filter (2)
SAP Menu: Tools > ABAP Workbench > Utilities > Business Add-Ins > Business Add-Ins > Implementation
T/code: SE19
Create the following implementation of standard SAP BAdI RSU5_SAPI_BADI as shown in the screenshots:
Figure 10: BAdI Implementation (1)
Figure 11: BAdI Implementation (2)
The source code of the Implementing Class YCL_IM_RSU5_SAPI_BADI has to be maintained. It can be copied from the attached file YCL_IM_RSU5_SAPI_BADI_v1.txt using the Source Code-Based mode of the Class Builder (t/code SE24).
SAP Menu: Tools > ABAP Workbench > Utilities > Business Add-Ins > Business Add-Ins > Implementation
T/code: SE19
This is a recurring action for every new extraction enhancement. Every enhancement gets its own implementing class. Here you can program the actual enhancement independently of any other enhancement.
Create a new implementation of Enhancement Spot as shown in the screenshots.
Figure 12: Create Enhancement Implementation (1)
Figure 13: Create Enhancement Implementation (2)
Choose the appropriate BAdI Definition according to your needs: BAdI YBW_SAPI_BADI_DATA in general or YBW_SAPI_BADI_HIER for hierarchy DataSources.
Figure 14: Create Enhancement Implementation (3)
Figure 15: Enhancement Implementation - Overview
Figure 16: Enhancement Implementation - Implementing Class
The Filter must be populated with the DataSource name.
Figure 17: Enhancement Implementation - Filter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |