‎2008 Jul 16 8:09 AM
Dear Experts,
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
Sachin
‎2008 Jul 25 9:17 AM
Hi,
Sometimes BAPI don't validate some fields value because the validations might available only from screen. For example for date field, it is often that you can put value 99999999 and the data stored smoothly to database. So what I can suggest it to make the user exit in FM or Include and you call it in MV45AFZZ and in the program using BAPI_SALESORDER_CREATEFROMDAT2.
You also might want to ask this to SAP through OSS.
Regards,
Teddy