!--a11y-->
Mass Document Change: Business Add-In
(BAdI) 
You use this function to add any number of standard fields or customer-specific fields to the Mass Document Change (MDC) screens. You can then use these fields during execution of the MDC.
The MDC Business Add-In (BAdI) is available separately for different screens in MDC, namely selection screen, changes screen and adjust update screen and are independent of each other.

In the previous releases, MDC screens had certain standard fields for which you can use your MDC logic. It was not possible to add any new fields to these MDC screens according to your business needs so that they could also be used in the MDC logic.
You are already using the standard MDC application.
You must do the following:
1. Create custom fields required for the different screens (selection screen, changes screen and adjust update screen) in MDC.
○ To create custom fields for Selection Screen, in Customizing, choose Sales and Distribution ® Sales ® Sales Documents ® Custom fields in AFS Mass Document Change ® Selection Screen ® Add Details of Custom Fields.
○ To create custom fields for Changes Screen, in Customizing, choose Sales and Distribution ® Sales ® Sales Documents ® Custom fields in AFS Mass Document Change ® Changes Screen ® Add Details of Custom Fields.
○ To create custom fields for Adjust Update Screen, in Customizing, choose Sales and Distribution ® Sales ® Sales Documents ® Custom fields in AFS Mass Document Change ® Adjust Update Screen ® Add Details of Custom Fields.
2. Enter all the necessary details required for these custom fields and save them.
3. Generate the screen controls for all these custom fields in Customizing, by choosing Sales and Distribution ® Sales ® Sales Documents ® Custom fields in AFS Mass Document Change ® Generation of Screen Controls for the Custom Fields.
4. Create your own implementation for the different MDC screen BAdIs. According to your business needs, write your own custom logic inside the BAdI methods relevant for the new fields that you have added to the MDC screens.
5. Activate the individual BAdIs for the different MDC screens in Customizing, by choosing Sales and Distribution ® Sales ® Sales Documents ® Custom Fields in AFS Mass Document Change.
After you activate the BAdI implementation and all of its methods, the system uses your custom logic during execution of the standard MDC application for the new fields.
All the current standard checks and other validations will be active even for the newly added customer-specific fields. The appropriate results are displayed in the MDC application according to the combination of the standard logic and the custom logic written inside all the appropriate BAdI methods.

Only a single implementation must be active for this BAdI.

If you have not implemented the BAdI methods for the newly added custom fields efficiently, performance of the MDC application gets affected.
For more information, see the sample implementations created for all the BAdI methods mentioned below:
● MDC selection screen - /AFS/MDC_SELECT_EXAMPLE_CLASS
● MDC changes screen - /AFS/MDC_CHANGE_EXAMPLE_CLASS
● MDC adjust update screen for the custom process execution - /AFS/MDC_ADJUST_EXAMPLE_CLASS