User Exit in Sales Document Processing
User Exit in Sales Document Processing
User Exit in Sales Document Processing
While implementing SAP R/3 System, we often using user exit or system modification
to suit our company’s specific requirements. Sometime we may be necessary to create
new data fields or to use standard existing fields in functions in addition. We may also
have to develop new requirements and routines.
In my experiences, sales and distribution is one of module that has many variants
business process. No wonder, SAP provides more user exits and routines for SD module
than others.
Here are some user exit that I often used to meet the business process:
This user exit can be used for deleting data which was stored in a separate table during
sales document creation, for example, if the sales document is deleted.
This user exit can be used to modify the attributes of the screen fields.
Use this user exit to assign values to new fields at sales document header level. It is
described in the section “Transfer of the customer master fields into the sales document”.
Use this user exit to assign values to new fields at sales document item level. It is
described in the section “Copy customer master fields into the sales document”.
Use this user exit to assign values to new fields at the level of the sales document
schedule lines.
Use this user exit to assign values to new fields for business data of the sales document. It
is described in the section “Copy customer master fields into sales document”.
Use this user exit if We want to include and assign a value to an additional header field in
the communication structure KOMK taken as a basis for pricing.
Use this user exit if We want to include or assign a value to an additional item field in the
communication structure KOMP taken as a basis for pricing.
We use this user exit if further additional tables are to be read when importing TA01 or
TA02.
Use this user exit to make certain changes or checks immediately before saving a
document. It is the last possibility for changing or checking a document before posting.
Use this user exit to include or assign values to additional header fields in the
communication structure KOMKD taken as a basis for the material determination.
Use this user exit to include or assign values to additional item fields in the
communication structure KOMPD taken as a basis for the material determination.
Use this user exit to include or assign values to additional fields in the communication
structure KOMKG taken as a basis for material determination and material listing.
USEREXIT MOVE FIELD TO KOMPG
Use this user exit to include or assign values to additional fields in the communication
structure KOMPG taken as a basis for material determination and material listung.
With this user exit, We can reset certain customer-specific fields as soon as processing of
a sales document is finished and before the following document is edited.
In this user exit, We can enter additional data for deletion of an item. If the criteria are
met, the item is not deleted (unlike in the standard system).
In this user exit, We can enter additional data for deletion of a schedule line. If the
criteria are met, the schedule line is not deleted (unlike in the standard system).
This user exit can be used to carry out additional checks (e.g. for completion) in the
document header.
This user exit can be used to carry out additional checks (e.g. for completion) at item
level.
The user exit can be used to carry out additional checks (e.g. for completion) on the
business data in the order.
This user exit can be use to carry out additional checks (e.g. for completion) on the
schedule line. During BOM explosion, for example, We may want certain fields to be
copied from the main item to the sub-items (as for billing block in the standard system).
In this user exit, We can enter additional criteria for deletion of the serial number.
We can use this user exit to fill additional fields in the sub-item with data from the main
item.
We can use this user exit to influence text determination for header texts.
We can use this user exit to influence text determination for item texts.
The following user exits all apply to structure COBL, in which the data for account
determination is copied to item level.
Option to assign values from the document header to the new fields.
A changed field can be copied from the structure into the item. We could use the user exit
to display a certain field in the account assignment block (see also MV45AFZB).
A changed field can be copied from the structure to the header (see source text
MV45AFZB)
USEREXIT SOURCE DETERMINATION
We can use this user exit to determine which plant will be used for the delivery. In the
standard system, the delivering plant is copied from the customer master or the customer-
material info record. If We want to use a different rule, then We must enter it in this user
exit.
With this user exit We can include additional fields for the following fields:
Option to include new fields for the variant configuration. Fields that are included in
structure SDCOM can be processed and then returned to the order.
We can use this user exit to format additional work areas for the variant configuration.
We will find notes on the user exit in MV45AFZB.
The following user exits can only be used for the first data transfer.
We can use this user exit to include new fields for batch determination (document
header).
We can use this user exit to include new fields for batch determination (document item).
We can use this user exit to set another customer number in the customer material info
record (e.g. with a customer hierarchy)
Option for entry of preconditions for carrying out pricing again (e.g. changes made to a
certain item field could be used as the precondition for pricing to be carried out again).
Option for entry of preconditions for carrying out pricing again (e.g. changes to the
customer group or price group could be set as the preconditions for the system to carry
out pricing again).
The BOM is exploded in the order with the entry date. We can use this user exit to
determine which data should be used to explode the BOM (explosion with required
delivery date, for example).
In the standard SAP R/3 System, the quantity and confirmed date of the sales document
schedule line is changed automatically if a purchase requisition is allocated, and it or the
sales document is changed (for example, quantity, date).
If We want to change this configuration in the standard system, We can define certain
requirements in order to protect Wer sales orders from being changed automatically. Use
this user exit for this purpose. Decide at this point whether the schedule lines are to be
changed.
In this user exit We can We can store a specification for the reserve fields in VBUK
(header status). Reserve field UVK01 could, for example, be used for an additional order
status (as for rejections status, etc.).
In this user exit We can We can store a specification for the reserve fields for VBUP
(item status).
We can use this user exit to influence billing status at header level.