Symptom
After successful execution of application log, Mass Data Run job is not Creating/Updating the custom object instances.
Environment
SAP Business ByDesign; Cloud for Customer Addins.
Reproducing the Issue
- Go to Custom WC MDRO XXXX ( XXXX stands for custom work center name)
- Open Mass data Run YYYY run ID ( YYYY stands for custom MDR run ID)
- Schedule the job as immediately
- Save
- We see that application log is successful but the instances are not being updated to custom object.
Cause
The reason why the data is not getting updated in the Custom Business Object is because the instances are queried using the Query.ExecuteDataOnly() function.
The ExecuteDataOnly function provides for the same parameters for selection and sorting as the Execute function.However, ExecuteDataOnly function returns a collection of business object node data instead of the business object nodes themselves.
Resolution
You must explicitly retrieve the business object nodes, kindly either execute the Query using the Execute() function, or use the Retrieve() function to retrieve each instance individually so that their modifications will be saved accordingly.
See Also
Please refer to SAP Cloud Application Studio help documenation for more details.
Keywords
MDRO not updating; Custom Object not updating; Application log successful. , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem