Ansicht
Dokumentation

BADI_SD_OBJ_MAPPER - BAdI: Mapping for Business Data

BADI_SD_OBJ_MAPPER - BAdI: Mapping for Business Data

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for output control in the Sales and Distribution application of SAP ERP. It enables you to transfer data to the BAdI: Modify E-Mail Settings.

Since the business data is not available in a uniform structure across programs, the interface uses various methods to support business data from different programs. These include the following:

- The SET_SD_SO_TO_GENERIC method enables you to map the sales order structure to the generic structure for the PDF program.

- The SET_SO_TO_GENERIC method enables you to map the sales order structure to the generic structure for the SAP Script program.

- The SET_SD_INV_TO_GENERIC method enables you to map the invoice structure to the generic structure for the PDF program.

- The SET_INV_TO_GENERIC method enables you to map the invoice structure to the generic structure for the SAP Script program.

- The SET_DLV_TO_ GENERIC method enables you to assign the delivery structure to the generic structure for the PDF and SAPscript programs.

- The GET_MAPPER method enables you to transfer business data to the BAdI: Modify E-Mail Settings.

This BAdI is optional. You must have implemented the BAdI: Modify Email Settingsfor this to perform as expected.

There is no additional authorization check in the standard system. As long as you do not create an implementation, every user who has authorization for changing Customizing settings can make settings for output control.

After you call up the Customizing activity, a dialog box appears, in which you can enter the name of your implementation.

If implementations have already been created for this Business Add-In, the system displays these in a dialog box. You can select one of these implementations by choosing create and proceeding as follows:

1. In the dialog box, enter a name for the BAdI implementation and choose Create. The initial screen for creating BAdI implementations appears.

2. Enter a short explanatory description of your implementation in the Short Text field on this screen.

3. If you choose the Interface tab page, you will see that the system has entered the name of the implemented class field by assigning a class name automatically, which is based on the name of your implementation.

4. Save your entries and assign the BAdI to a package.

5. To edit a method, double click on its name.

6. Enter your implementation code between the method statements ~. and endmethod.

7. Save and activate your code. Navigate back to the Change Implementation screen. Note: You can also create an implementation for a BAdI and activate this at a later point. If you want to do this, do not perform the following step.

8. Choose Activate. The code you created is run when the application program is executed.

The standard system has an example implementation for the BAdI. This implementation is stored in the example class CL_SD_SAMPLE_EMAIL_OBJ_MAPPER.






ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3377 Date: 20240523 Time: 224612     sap01-206 ( 56 ms )