In VA01 standard program MV45AFZZ there is one user exit written to check the customer group for one specific order type..
If the order type is X,
check the customer group from the input customer, if the customer group is not matching it will throw the error....
This is working fine when we create order directly thru transaction(VA01)....(It will throw the error when the input customer is not matching with specified customer grp,
But thru bapi(BAPI_SALESORDER_CREATEFROMDAT2), the order is registering even the customer grp is wrong, bapi is not checking the user exit.
It should throw the same error even thru bapi......
Pls advice, how to enable the user exit check through BAPI....
Thanks & Regards