Professional Documents
Culture Documents
Purpose
This wiki page would discuss about various Userexits relevant for SAP Sales and
Distribution module.
Introduction
An user exit is a place in a software program where a customer can arrange for
their own tailor-made program to be called. In R/3, some user exits use Include
statements to include customer program enhancements that are called from
the program. Other user exits use tables that are accessed through
customization.
User exit is commonly used in SD module. There are many exits provided by
SAP in the areas of Sales, Shipping, Transportation, or Billing. Generally, user
exit is designed to make some changes when standard SAP is not capable to ful
fill the requirements. And surely, user exit is contains of some lines of code, so
little understanding of ABAP is very needed when you want to write your own
exit (especially when there is no ABAPER available. User exit
To be able to access what exits exist in each area of sales, you can go to IMG
using this path: IMG > Sales and Distribution > System Modifications > User
Exits. Here, any documentation’s for each exit available in the areas of SD that
you want to modified is explained.
For example, I want to show how to find exit available in Sales Document
Processing (contract, quotation, or sales order). Just follow the path above and
continued to expand the node User Exits in Sales > User Exits in Sales
Document Processing.
Click on icon documentation (file & spectacles) to see user exits available in
Sales Document Processing.
Click on icon file & spectacles to find user exits exist in Sales Documents
Read the list carefully, then choose the appropriate user exit you want to
apply.
List of User Exits in Sales Document Processing
For this example, I used user exit MV45AFZB. Use transaction code SE38 and
click Display.
Create Implementation
Choose Type of Enhancement: Code.
Continued with Create and fill the appropriate field. Then choose Enter.
Fill the appropriate package used. Then save.
Customer Exits
Enhancement Description
Code
plan
Include Routines
Include Description
Customer Exits
Enhancement Description
code
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
Customer Exits
Enhancement Description
Code
V50R0004 Calculation of Stock for POs for Shipping Due Date List
Include Routines
Include Description
MV50AFZK The user exits in this include can be used to fill the condition
tables for material listing and material exclusion (KOMKG and
KOMPG) and product selection (KOMKD and KOMPD) with own
data.
MV50AFZL In delivery creation process for sales orders there is the possibility
to restrict the delivery creation to some order items. If these
order items are member of a delivery group, but not all items of
this delivery group are includes in the restriction range of the
order item numbers, you can specify in this routine what to do.
MV50AFZP This user exit can be used to modify change mode of pricing
screens in delivery processing.
Include Routines
Include Description
Include Description
MV56AFZY You can include your own FORM routines in this program. They
can contain your own adjustments for shipment processing.
detail in the
"New fields in
pricing" section.
display of
subtotals. This
user exit is also
used in order
processing.
condition screen
to your
requirements
by changing the
display attributes
of the screen
fields.
This user exit is
also used in
order processing.
record (KONVD)
that
is always
redetermined
(i.e. it is not
stored in
database table
KONV).
determined via a
condition record.
Note: as of Release 4.6A, the display of the condition screen (screen 6201) has
been converted from a full screen to a subscreen. The full screen is included in
the SAPMV61A module pool, the subscreen, however, in program SAPLV69A.
Therefore, instead of MV61AFZA and MV61AFZB, the user exits in LV69AFZZ
should be used. For reference, see OSS note 313569.
EXIT_SAPLV09A_001 You can use this user exit to control whether an address
that was entered manually and has already been used
in other documents (referenced), should be referenced
again if it changes or whether a new address should be
created (duplicated).
EXIT_SAPLV09A_003 Use this user exit to control the origin of partners in the
partner determination procedure (origin X, Y or Z). If X,
Y, or Z has been entered in the Origin field, this user exit
is automatically called up during partner determination.
For more detailed information, see the program documentation for each of
the user exits.
LVKMPFZ1 USER_CREDIT_CHECK1
LVKMPFZ2 USER_CREDIT_CHECK2
LVKMPFZ3 USER_CREDIT_CHECK3
RVKMPUS2 Using this user exit, you can define new forms of payment
guarantee.
• BILLING_SCHEDULE_DELTA
For milestone billing a percentage value is fully
invoiced for each billing deadline. In the case of
deviations between
the original item value and any later changes, you can
use the user exit to determine whether the difference
should be stored in the final invoice or sent to the
User exit Include Description
next deadline.
• USEREXIT_MOVE_FIELD_TO_FPLT : This user exit
allows you to create your own fields in table FPLT.
• USEREXIT_MOVE_FIELD_TO_FPLA : This user exit
allows you to create your own fields in table FPLA.
• USEREXIT_PRICING_PREPARE_TKOMX
This user exit is used to copy or create an additional
field in the definitive communication structure for
pricing.
The user exit is also often used to change the
duration of a billing plan deadline. You can do this by
overwriting
the following fields:
• tkomp-anz_tage (Number of days in a deadline)
• tkomp-anz_monate (Number of months in a deadline)
• tkomp-anz_jahre(Number of years in a deadline)
• tkomp-anz_wochen (Number of weeks in a deadline)
• USEREXIT_DATE_PROPOSAL
In the standard release deadlines are set according to
a template in the billing plan. This grid entry list sets
the deadlines for each day but you can adjust the
template with the user exit so that the grid entry list
could, for example, follow a monthly
pattern instead.
Modification report for billing plan SDFPLA02
This report enables you to update the header data for
a billing plan with the result that new billing plan
deadlines are determined and set in the billing plan.
In this way you can, for example, set the goods issue
date as the starting date for the billing plan.
Additions to billing plan with transaction SMOD
User exit Include Description
USEREXIT_ADD_FIELD_TO_HEADER FV45VFZZ
USEREXIT_ADD_FIELD_TO_LINE
USEREXIT_DELIVERY_GROUPS FV45VFZY
USEREXIT_MVERF_INIT
USEREXIT_QUOTA_KEY_VALUE
internal table.
•
• USEREXIT_INV_REQ_ITEM
•
• USEREXIT_INV_REQ_ITEM_PARTNER
You can use the following user exits for resource-related billing as of Release
4.5A:
• V46H0001 enhancement
• EXIT_SAPLV46H_001
The internal number range used in the standard system is specified in the
billing type table and can be changed in this user exit. This user exit is only
called when the billing documents is created.
In this user exit additional fields for account determination that are not
provided in the standard system are copied into communication structure
KOMKCV (header fields).
In this user exit additional fields for account determination that are not
provided in the standard system are copied into communication structure
KOMPCV (item fields).
Depending on the number range, table TVFKD is used to set the billing date
(country-specific requirements in Italy). USEREXIT_NUMBER_RANGE is
automatically deactivated when this user exit is being applied.
•
• USEREXIT_NEWROLE_XVBPAK_AVBPAK
•
• USEREXIT_NEWROLE_XVBPAP_AVBPAK
The following user exits are available in report SAPLV60B for transfer to
accounting (function group V60B):
With this user exit for the general billing interface, deviating address data for
different partner functions can be copied from the interface.
With this user exit for the general billing interface, new partner functions can
be copied from the interface.
With this user exit for the general billing interface, a key field can be added in
the aggregated flow.
• USEREXIT_XVBAPF_KEY_CANC (in Include RV60AFZA)
Special user exit for the general billing interface with which a key field can be
added in the aggregated flow.
User Exits For Sales Support
In Sales Support, you can use the following SAP enhancements:
• V43MLIS - Expand LIS fields for address lists. This enhancement contains the
following user exit:
• EXIT_SAPLV43M_007
RVKPRFZ2 This allows the sort sequence for the first issue of the list to be
defined.
RVKPRFZ1 This allows you to deposit your own user codes.
There are two additional user exits for listing sales documents, which influence
the way in which the communication structure is filled. These user exits do not
affect the structure of the list but the way in which the data is transferred and
how the new additional fields are filled.
• CUSTOMER_FILL_1
• CUSTOMER_FILL_2
PTARQ - Test Environment for Leave request Personnel Time Management - Personnel Time
Management
Read
more: http://www.tcodesearch.com/tcodes/search?q=transporting+request+one+server+to+anoth
er+server#ixzz4mcUtaa2U