Sunday, 8 May 2016

How to find user exits in Sales & Distribution

Userxits allow us to add our own functionality to SAP standard program without modifying it. These are implemented in the form of subroutines and hence are also known as FORM EXITs.

The userexits are generally collected in includes and attached to the standard program by the SAP.

All Userexits start with the word USEREXIT

for example

its start with FORM USEREXIT_& end with ENDFORM.


Main challenge in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z. in the form routine.

e.g.
USEREXIT_NUMBER_RANGE -This userexit is used to assign a different internal document number to the

sales order(VA01) when it is created depending on some criteria like a different SALES RGANIZAION(VKORG)


Now ,How to find correct user exits

Userexits can be found in number of ways:

To find userexits in SD module , goto object navigator(SE80) and select development class from the list and enter VMOD in it. 

All of the userexits in SD are contained in the development class VMOD. Press enter and you will find all the includes which contain userexits in SD for different functions like PRICING, ORDER PROCESSING etc. 

Select the userexit according to the requirement and read the comment inserted in it and start coding..

...