Screen enhancement vs BAPIs
I developed an enhancement to substitute one of the subscreens used in the Material Maintenance (Retail) to release some of the standard validations in the Forecast Planning subscreen.
It was done by creating a copy of the Standard subcreen, and modifying the function module in charge of the validations. Additionally it was changed the customizing of the screens sequence.
When the transaction MM42 is executed and the new subscreen is called, the desired validations are working correctly.
In a related process it is called a BAPI (BAPI_MATERIAL_MAINTAINDATA_RT) that can maintain the data in the Forecast subcreen. When the BAPI is used, it uses the standard subscreen, then the validations executed are the standard ones. So, the BAPI is not considering the new customizing of the subscreens secuence.
Any idea of why is this happening? Should the BAPI execute the validations in the standard subscreen or the ones available for the custom subscreen? Can the BAPI consider the custom subscreen?