You are on page 1of 3

RP Sales and Distribution (SAP SD)

Few facts you should know about User Exits


Posted by Balaji Parsewar in SAP ERP Sales and Distribution (SAP SD) on Apr 23, 2013
7:31:40 PM
inShare5

In this blog I want to cater user exits in detail. I will try to answer Wh questions like what,
How & Where? There are several instances where client have requirement which cannot be
fulfilled through standard SAP functionality means it cannot be achieved through standard
configuration. Then in order to cater client requirement, SAP have given provision of user
exits.

User exits are blank forms/space provided within standard SAP code in which we can write
our own code with the help of ABAP consultant to achieve functionality required by client
which cannot be catered by standard SAP. With the help of this code we can bring deviation
in standard SAP behavior. User exits allow developers to access and modify program
components and data objects in the standard SAP System.
User Exits for SD are found in IMG under

Sales & Distribution --> System Modifications --> User Exits

To see user exit, use T-Code SE38 then enter program name MV45AFZZ & click on radio
button –> source code & click on display button. In that code only purpose of that user exit
is given. If you read that description only, we will come to know utility of that user exit.

For each module, SAP has given list of user exits. Here I would like to give few examples of
SAP SD user exits& its application through a simple example:
Client was having STO process. Process is very commonly used & consists of steps -

ME21N – Create purchase order


ME29N – Release purchase order
VL10B – Outbound Delivery w.r. to purchase order
VL02n – PGI
VF01 – Proforma Invoice (Billing Document Type – JEX)
J1IIN – Excise Invoice

Standard SAP behavior is that you can generate multiple number of proforma invoices with
reference to single outbound delivery Here client came up with the requirement that system
should allow only one proforma invoice from outbound delivery. If you try to create another
one system should give error message. This was one of the requirements that could not be
catered through standard SAP. At that time we used user exit RV60AFZC & prevented
proforma invoice creation.

Few of the very popular SD user exits are –

Invoice – RV60AFZZ, RV60AFZC, RV61AFZB, RV60AFZD


Delivery –MV50AFZ1, MV50AFZZ
Sales Orders – MV45AFZZ

Regards,

Balaji

TW Typewriter Apr 23, 2013 9:48 PM
Balaji,

Could you please comment on

Here client came up with the requirement that system should allow only one
proforma invoice from outbound delivery. If you try to create another one system
should give error message. This was one of the requirements that could not be
catered through standard SAP. At that time we used user exit RV60AFZC &
prevented proforma invoice creation.

For this requirement why did you go for coding in the user exit.
To block the creation of multiple proformas (for a delivery), in copy control VTFL,
routine 311 could be used.
http://scn.sap.com/thread/1334641

Any specific reason why userexit was used?


(Probably for populating the error message)
o
Balaji Parsewar Apr 24, 2013 3:06 AM (in response to TW Typewriter)
Hi T W,

When requirement came to us, I was not aware of routine 311. Hence I have
not tried with 311.

More over customer needs very specific message if somebody tries to


create second proforma from the delivery. By keeping the requirement in
mind, we have proposed above mentioned solution. Proposed solution
worked efficiently. With that solution within 48 hours we have closed the
ticket also.

BTW any comment (praise/criticism) on the blog.


Your feedback is eagerly awaited.

Regards,

Balaji

TW Typewriter Apr 28, 2013 8:25 PM (in response to Balaji Parsewar)
Balaji,

I have enjoyed and learnt from some of your blogs.


This blog is not at that level of some of your other blogs.

This is good information! But this could be made better by


giving many business examples and the relevant program
name and userexit.
I would suggest you to search SCN / Google and give different
examples in this blog, with your comments (why a particular
userexit is better than another; in a specific requirement? etc.)
This would add so much more value to this blog.

Thank you!

' MoazzaM ' Apr 29, 2013 6:31 AM
Good document and nicely explained. Something interesting and quick learner for
new comers on SCN.
Keep posting Balaji.

Thank$
o
TW Typewriter Apr 29, 2013 6:34 AM (in response to ' MoazzaM ')
Moazzam,

Probably you could add some business requirements and the program +
userexits used. (or some links from SD forums)
It would be beneficial to the group.

Thank you, in advance!

http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/block-sales-
order-types-for-specific-sales-organization-2392418

avanish gulatee May 27, 2013 7:25 AM
Type this on SCN or google it might be helpful.

Steps for Finding User-Exit or Badi’s


-http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0041d4e6-1e43-
2e10-0db4-9386abe98fe6?quicklink=index&overridelayout=true

Regards