As we know that no standard function module or BAPIs released that may be used to change the production order components. Some one suggests to use use BAPI_ALM_ORDER_MAINTAIN to update component.However, note 1275923 inserted a missing validation in the T350 table (order type settings for PM orders) ensuring that this BAPI can no longer be incorrectly used for production orders.
Still now we don’t find a right way to achieve this requirement, now let me share how to get component by skip this check.
Use implicit enhancement to skip this order type check in FM IBAPI_H_EXEC_BU2_INTERN.
Step1 Open FM IBAPI_H_EXEC_BU2_INTERN and Click on Enhance Button
Step 2 Show implicit Enhancement Options.
Step 3 Add a new implementation to Skip this FM
e.g. like this
Use debug to change the value of es_caufvd–auart to ensure the entry is in table T350
Both options are ok.