I am doing one user exit. could you please guide me . I have a requirement like this.
When a sales order is saved (either during creation mode VA01 or change mode (VA02), and the sales order is not en ECOM order (EDI/WEB/XML), a new system message must be processed in case a sales hold code was applied at one of the sales order items or at sales order header level.
The system message itself will be set up in SAP with the following text:
Sales Order i.e Order number has been saved. Holds exist. Please check.
For this requirement i found exit by name Userexit_Save_Document_Prepare.
In this exit how we are going to the code. please guide me.