‎2009 Jan 23 7:49 AM
Hi,
While creating the contract in the line item one field product hierarchy is a mandatory field.In our project we maintain upto 3rd level of product hierarchy but if user maintain upto first level only in the sales document system is not throwing an error while saving the contract.Now through user exit we want to throw an error message if product hierarchy field is not maintained upto 3rd level.
Anybody please tell which user exit shall i use or in which user exit VBAP table in transaction VA41 & VA42 hits?
I gone through IMG documenation in SD--User exit but not getting clarity.
Regards,
SATYA
‎2009 Jan 23 8:17 AM
You can code here. program MV45AFZZ.
FORM: USEREXIT_SAVE_DOCUMENT_PREPARE
‎2009 Jan 23 8:38 AM
Use BADI BADI_SD_SALES
Method SAVE_DOCUMENT
Hope this helps...
‎2009 Feb 27 5:02 PM
Hi,
I happend to view this thread. As per my understanding, the only way to handle this is with Userexit 'SAVE_DOCUMENT_PREPARE' under MV45AFZZ. The BADI 'BADI_SD_SALES' is for the SAP internal use and the customer can't create any implementation for the same.
I would appreciate your views on this.
Thanks,
Pooja