SAP Knowledge Base Article - Public

3014509 - CustomMLDataSelectionWrite BAdI is Not Displayed in SAP Cloud Application Studios - SDK


You are unable to find the CustomMLDataSelectionWrite BAdI in your SAP Cloud Application Studios (SDK).


SAP Cloud for Customer

Reproducing the Issue

  1. Navigate to SAP Cloud Application Studios (SDK).
  2. Click View.
  3. Click Repository Explorer.
  4. Attempt to locate namespace
  5. Attempt to locate the BAdI CustomMLDataSelectionWrite.
  6. See no results are displayed.


The CustomMLDataSelectionWrite BAdI is the same as MachineLearningDataSelectionQueryWrite BAdI, as only the name was changed.


As highlighted in the help document, this enhancement option is applicable for the Machine Learning Scenario Code 001 and 002.

In addition, it says it works only from Machine Learning Admin EC, and this is because this enhancement is only called during the training of the model. With this enhancement, selection clause is set and only the filtered data is given to the model for training. Trained model is not used for prediction until it is activated.

After model activation, if the prediction has to be determined only for selected service request / ticket, then this enhancement option MachineLearningObjectPredictionWrite must be used along with MachineLearningDataSelectionQueryWrite enhancement.


Machine Learning, BAdI, SDK, PDI, Ticket, Service Request, ML, Enhancement, CustomMLDataSelectionWrite, MachineLearningDataSelectionQueryWrite, Cloud Application Studios, SAP Cloud Application Studios, , KBA , LOD-CRM-ML-SRV , Machine learning for service cloud , How To


SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions