ABAP Development for Materials Management in SAP (第9页)

第 207 页 / 共 275 页

Purchasing A.1

BAdI SMOD_MRFLB001

With this BAdI, you can also influence the release creation in scheduling agree-

ments. For example, it allows you to add or delete items, or you can revise the

result of the tolerance check.

EE Release

from SAP R/3 4.7

EE Call point

EE Scheduling agreements release creation (Transaction ME84)

EE Methods

EE EXIT_RM06EFLB_001

EE EXIT_RM06EFLB_002

Enhancement MM06E008

With this enhancement, you can monitor the release value with regard to contract

release orders for a value contract and, for example, to display warning or error

messages when a specific threshold value has been exceeded.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transactions ME21(N) and ME22(N)

EE Component

EE EXIT_SAPMM06E_021

Enhancement MMFAB001

This exit runs when scheduling agreement releases are generated (Report

RM06EFAB) and provides you with the option to revise the list of selected sched-

uling agreement items. You can remove and delete items before the releases are

finally generated.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Report RM06EFAB

207

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 208 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Component

EE EXIT_RM06EFAB_001

Enhancement MRFLB001

In the RM06EFLB release creation program (Transaction ME84), this user exit is used

to revise the scheduling agreement items (see also MMFAB001 enhancement). This

enhancement for the SMOD_MRFLB001 BAdI was migrated following Release 4.7.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Report RM06EFLB

EE Transaction ME84

EE Component

EE EXIT_RM06EFLB_001

Enhancement MEETA001

You can use these user exits to influence the release creation in scheduling agree-

ments. This enhancement for the BAdI ME_RELEASE_CREATE was migrated following

Release 4.7.

EE Release

following SAP R/3 4.6C (or earlier)

EE Call points

EE Scheduling agreements

EE Component

EE EXIT_SAPLEINL_001

A.1.4 Pricing

The enhancement options listed in this section are used for the pricing in purchas-

ing documents.

BAdI ME_DEFINE_CALCTYPE

With this BAdI, you can specify custom conditions to trigger a new pricing and

override the pricing type used.

208

© 2013 by Galileo Press Inc., Boston (MA)

第 209 页 / 共 275 页

Purchasing A.1

EE Release

from SAP R/3 4.7

EE Call points

EE Pricing in Transactions ME21N and ME22N

EE Method

EE DEFINE_CALCTYPE

BAdI ME_PO_PRICING_CUST

You use this BAdI to revise the KOMK and KOMP communications structures, which

are the basis of the pricing. In releases earlier than SAP-Basis ECC 6.0, the EXIT_

SAPLMEKO_001 (enhancement LMEKO001) and EXIT_SAPLMEKO_002 (enhancement

LMEKO002) user exits are alternatively provided.

EE Release

from SAP ECC 6.0

EE Call points

EE Pricing in Transactions ME21N and ME22N

EE Methods

EE PROCESS_KOMK

EE PROCESS_KOMP

Enhancement LMEKO001

You can use this enhancement to revise the KOMK communications structure, which

is a basis of the pricing. Following SAP ECC 6.0, the ME_PO_PRICING_CUST BAdI is

alternatively provided.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Pricing in Transactions ME21(N) and ME22(N)

EE Component

EE EXIT_SAPLMEKO_001

209

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 210 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

Enhancement LMEKO002

You can use this enhancement to revise the KOMP communications structure, which

is the basis of the pricing. Following SAP ECC 6.0, the ME_PO_PRICING_CUST BAdI

is alternatively provided.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Pricing in Transactions ME21(N) and ME22(N)

EE Component

EE EXIT_SAPLMEKO_002

Enhancement LMEXF001

With this user exit, you can control whether conditions on an item can be main-

tained in purchase order and outline agreements, even when no invoice receipt

is allowed.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transactions ME21(N) and ME22(N)

EE Transactions ME31K and ME32K

EE Transactions ME31L and ME32L

EE Component

EE EXIT_SAPLMEXF_001

A.1.5 Commitment Functions

The enhancements in this section are provided for commitment management in

MM.

BAdI ME_COMMITMENT_PLAN

(ES_COMMITMENT_PLAN Enhancement Spot)

With this BAdI, you can change a commitment plan for contracts or store custom

checks. When you create a commitment plan, you can set it up completely with

default values.

210

© 2013 by Galileo Press Inc., Boston (MA)

第 211 页 / 共 275 页

Purchasing A.1

EE Release

from SAP ECC 6.0

EE Call point

EE Contract

EE Methods

EE OPEN

EE PROCESS

BAdI ME_COMMITMENT_RETURN

With this BAdI, you can use the commitment functions for return items in pur-

chase orders to return the value of the item again to the budget.

EE Release

following SAP ECC 6.0

EE Call points

EE Purchase orders

EE Method

EE IS_ACTIVE

BAdI ME_REQ_OI_EXT

With this BAdI, you can specify whether a commitment update follows when pur-

chase requisitions are created and changed from foreign applications.

EE Release

from SAP R/3 4.7

EE Call points

EE Purchase requisitions

EE Method

EE IS_REQUESTED

A.1.6 Cross-Document

The following enhancements are used from various purchasing documents and

cannot be assigned to one of the previous groups.

211

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 212 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

BAdI ME_CHDOC_ACTIVE

This BAdI is used to additionally update changes to document conditions, docu-

ment links, subcontractor components, or export/import data.

EE Release

from SAP R/3 4.7

EE Call points

EE Purchasing documents (query, quotation, purchase order, contract, schedul-

ing agreement)

EE Purchase requisitions (only document links and subcontractor components)

EE Method

EE IS_ACTIVE

BAdI ME_CIP_ALLOW_CHANGE

You can use this BAdI to control the changeability of configuration data in purchas-

ing documents and purchase requisitions.

EE Release

from SAP R/3 4.7

EE Call points

EE Purchasing documents configuration

EE Purchase requisitions configuration

EE Method

EE GET_DISPLAY

MEQUERY1 Enhancement

With this enhancement, you can enhance the document overview in purchase req-

uisitions using custom selection variants, enhance or remove standard selections,

or store custom display variants. You can find an example of this in Section 3.2,

Customization of the Document Overview in Purchase Requisitions or Purchase

Orders, in Chapter 2.

EE Release

from SAP R/3 4.6C (or earlier)

212

© 2013 by Galileo Press Inc., Boston (MA)

第 213 页 / 共 275 页

Purchasing A.1

EE Call points

EE Purchase requisitions

EE Purchase orders

EE Components

EE EXIT_SAPLMEQUERY_001

EE EXIT_SAPLMEQUERY_002

LMEQR001 Enhancement

This user exit runs in the source. The number of possible sources found can then

be reduced to just one.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Source

EE Component

EE EXIT_SAPLMEQR_001

LWSUS001 Enhancement

This enhancement provides the option to implement a custom source.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Source

EE Component

EE EXIT_SAPLWSUS_001

MM06E003 Enhancement

This enhancement is used to assign a custom document number or to specify a

number range ID when a purchasing document is generated.

EE Release

from SAP R/3 4.6C (or earlier)

213

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 214 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Call points

EE Purchasing documents

EE Component

EE EXIT_SAPMM06E_001

Enhancement MM06E005

You can define custom fields in the purchasing documents at header and item level

using this enhancement. The data is usually attached as an include structure to

Table EKKO (CI_EKKODB structure) or Table EKPO (CI_EKPODB structure). If required,

you can also update data in custom tables.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Purchasing documents

EE Components

EE EXIT_SAPMM06E_006

EE EXIT_SAPMM06E_007

EE EXIT_SAPMM06E_008

EE EXIT_SAPMM06E_009

EE EXIT_SAPMM06E_012

EE EXIT_SAPMM06E_013

EE EXIT_SAPMM06E_014

EE EXIT_SAPMM06E_016

EE EXIT_SAPMM06E_017

EE EXIT_SAPMM06E_018

MM06E009 Enhancement

An icon appears in the purchasing documents at item level as soon as item texts

are available. With this enhancement, you can control for which type of texts this

icon appears.

EE Release

from SAP R/3 4.6C (or earlier)

214

© 2013 by Galileo Press Inc., Boston (MA)

第 215 页 / 共 275 页

Purchasing A.1

EE Call points

EE Purchasing documents

EE Component

EE EXIT_SAPMM06E_022

MM06E010 Enhancement

The field control of fields of the vendor address in purchasing document is only

possible to a slight extent in Customizing. This user exit provides you with com-

plete flexibility to control these fields if required.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Purchasing documents

EE Component

EE EXIT_SAPMM06E_005

MMDA0001 Enhancement

The MMDA0001 enhancement is used for the custom proposal of the delivery address

in purchasing documents. In the standard system, the delivery address is determined

via the combination plant/storage — if no storage location address is maintained, the

plant address is suggested.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Purchasing documents

EE Component

EE EXIT_SAPLMMDA_001

A.1.7 Vendor Evaluation

Enhancement options for vendor evaluations are presented in this section.

215

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 216 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

MM06L001 Enhancement

It’s possible via the user exits of this enhancement to overwrite the scores deter-

mined in the standard for both the general and quality criteria of the vendor evalu-

ation through the results of custom logic.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction ME61

EE Transaction ME63

EE Transaction ME65

EE Components

EE EXIT_RM06LBAT_001

EE EXIT_RM06LBEW_001

EE EXIT_SAPLMEL0_001

EE EXIT_SAPMM06L_001

A.1.8 IDoc Processing

The enhancements for IDocs are provided in EDI processing.

BAdI MM_EDI_DESADV_IN

In the EDI inbound processing, you can enhance inbound deliveries with DESADV

type (DELVRY01 basic IDoc).

EE Release

from SAP R/3 4.7

EE Call point

EE IDOC_INPUT_DESADV1

EE Method

EE PROCESS_KOMDLGN_PO

216

© 2013 by Galileo Press Inc., Boston (MA)

第 217 页 / 共 275 页

Purchasing A.1

LMELA010 Enhancement

With this enhancement, you can copy additional fields from the IDoc with the

inbound processing of an IDoc to generate a shipping notification that is not usu-

ally copied (e.g., the batch).

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE IDOC_INPUT_DESADV1

EE Component

EE EXIT_SAPLEINM_010

MM06E001 Enhancement

With this enhancement, you can influence the inbound and outbound data of IDocs

or enhance segments. In the inbound processing, you have access to the ORDRSP

(order confirmation) and DESADV (shipping notification) messages. In the outbound

processing, the messages are ORDERS (outgoing purchase order), ORDCHG (purchase

order change notice), REQOTE (query), and DELFOR and DELINS (scheduling agree-

ment schedule). Moreover, BLAREL (release documentation) is provided in the

inbound and outbound processing.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE IDoc inbound processing/outbound processing (see description)

EE Components

EE EXIT_SAPLEINM_001

EE EXIT_SAPLEINM_002

EE EXIT_SAPLEINM_003

EE EXIT_SAPLEINM_004

EE EXIT_SAPLEINM_005

EE EXIT_SAPLEINM_006

EE EXIT_SAPLEINM_007

EE EXIT_SAPLEINM_008

EE EXIT_SAPLEINM_009

217

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 218 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

A.1.9 Logistics Information Systems

In the Logistics Information System (LIS), the following enhancements are

provided.

LWBON001 Enhancement

You can use this enhancement to enrich the LIS update by enhancing the MCKONA

communications structure (sales and revenues).

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE LIS updating

EE Components

EE EXIT_SAPLWN08_001

EE EXIT_SAPLWN12_001

EE EXIT_SAPLWN35_001

A.1.10 Archiving

The enhancement options presented in this section are for archiving purchasing

documents.

BAdI ARC_MM_EBAN_PRECHECK

In this BAdI, you can execute custom checks in the preprocessing program on the

archivability of purchase requisitions.

EE Release

following SAP ECC 6.0

EE Call point

EE Preprocessing Program RM06BV70

EE Method

EE CHECK

218

© 2013 by Galileo Press Inc., Boston (MA)

第 219 页 / 共 275 页

Purchasing A.1

BAdI ARC_MM_EBAN_CHECK

In this BAdI, you can execute custom checks on the archivability of purchase req-

uisitions in the write program.

EE Release

from SAP ECC 6.0

EE Call point

EE Write Program RM06BW70

EE Method

EE CHECK

BAdI ARC_MM_EBAN_WRITE

With this BAdI, you can enhance the volume of archiving of the write and deletion

program for purchase requisitions with other database tables (e.g., also archiving

with custom tables with custom data).

EE Release

from SAP ECC 6.0

EE Call points

EE Write Program RM06BW70

EE Deletion Program RM06BD70

EE Methods

EE WRITE

EE DELETE

BAdI ARC_MM_EINA_CHECK

This BAdI is provided for custom checks for the archivability in the write program

of purchasing information records.

EE Release

from SAP ECC 6.0

EE Call point

EE Write Program RM06IW47

EE Method

EE CHECK

219

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 220 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

BAdI ARC_MM_EINA_WRITE

With this BAdI, you can enhance the volume of archiving of the write and dele-

tion program for purchasing information records with other database tables (e.g.,

custom tables with custom data).

EE Release

from SAP ECC 6.0

EE Call points

EE Write Program RM06IW47

EE Deletion Program RM06ID47

EE Methods

EE WRITE

EE DELETE

BAdI ARC_MM_EKKO_CHECK

This BAdI is used to execute custom checks for the archivability in the write pro-

gram of purchase orders.

EE Release

from SAP ECC 6.0

EE Call point

EE Write Program RM06EW47

EE Method

EE CHECK

BAdI ARC_MM_EKKO_WRITE

With this BAdI, you can enhance the volume of archiving of the write and deletion

program for purchase orders with other database tables (e.g., custom tables with

custom data). Further information is contained in SAP Note 673030.

EE Release

from SAP ECC 6.0

EE Call points

EE Write Program RM06EW47

EE Deletion Program RM06ED47

220

© 2013 by Galileo Press Inc., Boston (MA)

第 221 页 / 共 275 页

External Services Management A.2

EE Methods

EE WRITE

EE DELETE

A.2 External Services Management

In External Services Management, you have the enhancement options shown in

this section.

BAdI MMSRV_SM_BAPI_CUST

In this BAdI, two methods are provided to change the data of the BAPI interface

in the inbound and outbound processing if required.

EE Release

from SAP ECC 6.0

EE Call points

EE BAPI_SERVICE_CREATE

EE BAPI_SERVICE_CHANGE

EE Methods

EE INBOUND

EE OUTBOUND

BAdI MMSRV_SM_MAIN

The methods of this BAdI run while the service master data is processed when the

call follows via the previously mentioned BAPIs.

EE Release

from SAP ECC 6.0

EE Call points

EE BAPI_SERVICE_CREATE

EE BAPI_SERVICE_CHANGE

EE Methods

EE PROCESS_SSC_DATA

EE PROCESS_CUST_DATA

221

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 222 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

BAdI MMSRV_SM_NOTIFY

The NOTIFY method always runs when a service master data record is created or

changed. The method can be used to send a message if a change has taken place

in the service master.

EE Release

from SAP ECC 6.0

EE Call points

EE Transaction AC03

EE BAPI_SERVICE_CREATE

EE BAPI_SERVICE_CHANGE

EE IDOC_INPUT_SRVMAS

EE Method

EE NOTIFY

BASO0001 Enhancement

With the exit of this enhancement, you can revise the IDoc data when sending

service master data.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE IDoc outbound processing service master

EE Components

EE EXIT_SAPLBASO_001

EE EXIT_SAPLBASO_002

Enhancement SRVDET

This enhancement is used to integrate custom fields into the service entry detail

screen. The data can be attached via the CI_ESLLDB append to the ESLL table.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

222

© 2013 by Galileo Press Inc., Boston (MA)

第 223 页 / 共 275 页

External Services Management A.2

EE Components

EE EXIT_SAPLMLSP_040

EE EXIT_SAPLMLSP_041

SRVEDIT Enhancement

Using this exit controls whether the user can change the service specification in

the service entry sheet.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

EE Component

EE EXIT_SAPLMLSR_001

SRVESI Enhancement

For the import or export of service data from or to external systems, the interface

data in these user exits is provided for processing.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction ML86

EE Transaction ML87

EE Components

EE EXIT_SAPLMLSX_002

EE EXIT_SAPLMLSX_003

SRVESKN Enhancement

With this enhancement, an account assignment can be specified for new service

lines. For multiple account assignments, the percentage or quantity amount can

also be provided. You can find an example of this in Section 4.1, Prepopulating

Account Assignment for Service Lines, in Chapter 4.

EE Release

from SAP R/3 4.6C (or earlier)

223

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 224 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Call points

EE Relevant purchasing documents

EE Component

EE EXIT_SAPLMLSK_001

SRVESLL Enhancement

It is possible to check the input of the service lines via the user exits of this

enhancement (ESLL structure/table). You can find an example of this in Section 4.2,

Input Check of the Service Lines, in Chapter 4.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Relevant purchasing documents

EE Components

EE EXIT_SAPLMLSP_030

EE EXIT_SAPLMLSP_031

SRVESSR Enhancement

When you create an entry sheet, you can prepopulate the header data using this

enhancement (ESSR structure/table). You can find an example of this in Section 4.3,

Prepopulation of the Header Data in the Data Entry Sheet, in Chapter 4.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

EE Component

EE EXIT_SAPLMLSR_010

SRVEUSCR Enhancement

This enhancement enables the integration of custom fields at the header data level

of the entry sheet. Data can be saved via an (CI_ESSRDB) append for the ESSR

table.

224

© 2013 by Galileo Press Inc., Boston (MA)

第 225 页 / 共 275 页

External Services Management A.2

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

EE Components

EE EXIT_SAPLMLSR_020

EE EXIT_SAPLMLSR_021

EE Dynpro SAPLXMLU 0399

SRVKNTTP Enhancement

With an external creation of an entry sheet, an account assignment type U

(unknown) may possibly exist, which can result in problems. The account assign-

ment type can be specified using this enhancement.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML87

EE Component

EE EXIT_SAPLMLSX_001

SRVLIMIT Enhancement

You have the option to execute a custom limit check. Display an error message in

the user exit to reject the input of the user.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

EE Component

EE EXIT_SAPLMLSL_001

225

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 226 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

SRVMAIL1 Enhancement

Although this enhancement is still available, it should no longer be used. The

SRVESI enhancement has existed since Release 4.0B, which provides a wider scope

of functions.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction ML86

EE Transaction ML87

EE Components

EE EXIT_SAPLMLSX_010

EE EXIT_SAPLMLSX_011

SRVMSTLV Enhancement

Using the user exit of this enhancement, you can convert the units of measure

when a standard service catalog is read from a file.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction MLS5

EE Component

EE EXIT_SAPLMLST_001

SRVREL Enhancement

Using this enhancement, you can change the CESSR communications structure to

influence the release strategy used for an entry sheet.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction ML81N

EE Component

EE EXIT_SAPLEBND_003

226

© 2013 by Galileo Press Inc., Boston (MA)

第 227 页 / 共 275 页

Inventory Management A.3

SRVSEL Enhancement

If you trigger the SELECTION_POSSIBLE exception via RAISE in EXIT_SAPLMLSP_010,

the Copy from non-SAP System function appears in the menu on the service

selection. After you have selected this function, the EXIT_SAPLMLSP_011 function

modules are executed, and service data can be copied to the directory.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transactions ME21N/ME22N

EE Transaction ML81N

EE Components

EE EXIT_SAPLMLSP_010

EE EXIT_SAPLMLSP_011

A.3 Inventory Management

The following enhancement options are available in the area of Inventory

Management.

A.3.1 Material Documents in General

The following enhancements are provided for material documents in this

section.

BAdI MB_DOCUMENT_BADI

In the MB_DOCUMENT_BEFORE_UPDATE method, you can call custom update modules

to post additional data. You should avoid, where possible, using the MB_DOCUMENT_

UPDATE method, which already runs automatically in the update and therefore

allows the direct update in database tables for performance reasons.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document update

227

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 228 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Methods

EE MB_DOCUMENT_BEFORE_UPDATE

EE MB_DOCUMENT_UPDATE

BAdI MB_MIGO_ITEM_BADI

In Transaction MIGO, you can use this BAdI to automatically fill the item text

(SGTXT field) or to suggest the storage location. It is also possible to execute input

checks in standard fields. For this, all data of the material document is provided.

You can find an example of this in Section 5.3, Checking and Prepopulating Stan-

dard Fields, in Chapter 5.

EE Release

from SAP R/3 4.7

EE Call point

EE Transaction MIGO, item entry

EE Method

EE ITEM_MODIFY

BAdI MB_MIGO_BADI

MB_MIGO_BADI is a very comprehensive BAdI for implementing tabstrips with cus-

tom data at the header and item level. It’s also possible to execute custom input

checks in standard fields and prepopulate some standard fields. You can find an

example of this in Sections 5.1, Custom Fields in Transaction MIGO, and 5.2,

Other Functions of the BAdI MB_MIGO_BADI, in Chapter 5.

EE Release

from SAP R/3 4.7

EE Call point

EE Transaction MIGO

EE Methods

EE INIT

EE PBO_DETAIL

EE PAI_DETAIL

EE LINE_MODIFY

EE LINE_DELETE

228

© 2013 by Galileo Press Inc., Boston (MA)

第 229 页 / 共 275 页

Inventory Management A.3

EE RESET

EE POST_DOCUMENT

EE CHECK_ITEM

EE MODE_SET

EE STATUS_AND_HEADER

EE HOLD_DATA_SAVE

EE HOLD_DATA_LOAD

EE HOLD_DATA_DELETE

EE PBO_HEADER

EE PAI_HEADER

EE CHECK_HEADER

EE PUBLISH_MATERIAL_ITEM

BAdI MB_CHECK_LINE_BADI

This BAdI runs for each item directly prior to inclusion in the lock table and can

be used to execute custom checks.

EE Release

from SAP R/3 4.7

EE Call point

EE Material document item entry

EE Method

EE CHECK_LINE

BAdI MB_INSMK_WIP_CHANGE

(MB_GOODSMOVEMENT Enhancement Spot)

When reposting a WIP batch (Work in Progress; see documentation on the LOG_

PP_WIP_BATCH business function), you can change the stock type using this BAdI

and therefore repost the batch to the blocked stock.

EE Release

from SAP ECC 6.0 (Enhancement Package 4, LOG_MM_OM_1 Business Function)

EE Call point

EE Transaction MIGO

229

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 230 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Method

EE CHANGE_WIP_INSMK_TO_BLOCKED

MB_CF001 Enhancement

This module is called in the update of the material document directly prior to

COMMIT WORK and is used to call custom update modules (to update custom tables).

Alternatively, you can also the MB_DOCUMENT_BADI enhancement for this.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document update

EE Component

EE EXIT_SAPLMBMB_001

MBCF0002 Enhancement

In this enhancement, various pieces of information from the header and item level

of the document are provided to fill the item text (SGTXT field) when document

items are entered. The item text is copied to the field of the accounting document

of the same name. From Release 4.7, you can use instead the MB_MIGO_ITEM_BADI

enhancement (only Transaction MIGO).

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document item entry

EE Component

EE EXIT_SAPMM07M_001

MBCF0005 Enhancement

Using this enhancement, you can overwrite standard text elements for printing

goods receipt/issue slip or to fill custom fields of the transfer structure to display

these on a goods receipt/issue slip.

EE Release

from SAP R/3 4.6C (or earlier)

230

© 2013 by Galileo Press Inc., Boston (MA)

第 231 页 / 共 275 页

Inventory Management A.3

EE Call point

EE Material document item entry

EE Components

EE EXIT_SAPM07DR_001

EE EXIT_SAPM07DR_002

MBCF0009 Enhancement

If a storage location is necessary to enter document items from a dialog transac-

tion, this enhancement will run, and you can specify the storage location according

to a custom logic. From Release 4.7, you can use instead the MB_MIGO_ITEM_BADI

enhancement (only Transaction MIGO).

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document item entry

EE Component

EE EXIT_SAPMM07M_009

MBCFC003 Enhancement

If a new batch is specified for a material movement, this enhancement will run.

You have the option to overwrite some information on the batch master and to

use it for the creation.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document batch entry

EE Component

EE EXIT_SAPMM07M_003

MBCFC004 Enhancement

If a material movement is executed with a batch reference, you can evaluate the

free characteristics of the batch in this enhancement.

231

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 232 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document batch entry

EE Component

EE EXIT_SAPMM07M_004

IQSM0007 Enhancement

If you work with serial numbers, this user exit can be used to prepare data of the

material document in the function group of the exit so that the latter can be used

in other user exits. A sensible usage is therefore only possible when combined

with other enhancements of the serial number management. Further details can

be found in the documentation of this enhancement.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Material document update

EE Component

EE EXIT_SAPLIE01_007

XMBF0001 Enhancement

These two user exits always run when a stock determination is performed. You

have the option to set the stock determination rule and to customize the stock

determination item table if required.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Stock determination

EE Components

EE EXIT_SAPLMDBF_001

EE EXIT_SAPLMDBF_002

232

© 2013 by Galileo Press Inc., Boston (MA)

第 233 页 / 共 275 页

Inventory Management A.3

A.3.2 Goods Receipt

To post goods receipts, you have the enhancement options presented in this

section.

BAdI MB_GOODSMOVEMENT_DCI

(MB_GOODSMOVEMENT Enhancement Spot)

With this BAdI, you have the option via custom logic to determine whether and

when the inward delivery completed indicator of a purchase order is to be set.

EE Release

from SAP ECC 6.0 (Enhancement Package 4, Business Function LOG_MMFI_P2P)

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Method

EE SET_DCI

BAdI MB_ACCOUNTING_DISTRIBUTE

(MB_GOODSMOVEMENT Enhancement Spot)

During the processing of goods receipt items with multiple account assignments,

you can specify the distribution to the individual account assignment objects using

this BAdI.

EE Release

from SAP ECC 6.0 (Enhancement Package 4, Business Function LOG_MM_MAA_1)

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Method

EE CHANGE_DISTRIBUTION

LMELA002 Enhancement

This enhancement is used to copy a batch number from the shipping notification

to the goods receipt. For this, the LMELA010 enhancement is necessary, through

233

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 234 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

which you copy the batch number to a shipping notification (enhancement in pur-

chasing; see Section A.1.8, IDoc Processing).

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Component

EE EXIT_SAPLEINR_002

MBCF0006 Enhancement

When you post a goods receipt for a subcontractor purchase order, this enhance-

ment runs during the determination of the subcontracting components to be

cleared. You have the option here to influence the WBS element (element of the

project structure) to be posted for this operation.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Components

EE EXIT_SAPLMIGO_001

EE EXIT_SAPMM07M_005

MEFLD004 Enhancement

This user exit is run when posting a goods receipt for a purchase order. You can

specify the earliest delivery date, and therefore reject a goods receipt if required.

You can find an example of this in Section 5.4, Check of the Earliest Delivery Date,

in Chapter 5.

EE Release

from SAP R/3 4.6C (or earlier)

234

© 2013 by Galileo Press Inc., Boston (MA)

第 235 页 / 共 275 页

Inventory Management A.3

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Component

EE EXIT_SAPLEINR_004

MEVME001 Enhancement

These user exits run when posting a goods receipt for a scheduling agreement.

Using the scheduling agreement, you can specify the default quantity for the goods

receipt to be posted and overwrite the quantity that the tolerance check will refer

to. You can find an example of this in Section 5.5, Tolerance Limits for Scheduling

Agreements, in Chapter 5.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transaction MIGO

EE Transaction MB01

EE Components

EE EXIT_SAPLEINR_001

EE EXIT_SAPLEINR_003

A.3.3 Reservations

The following enhancement options are provided for reservations.

BAdI MB_RESERVATION_BADI

Using this BAdI, you have the option to prepopulate fields with values or to check

the data entered by the user, and to display error messages if applicable. You can

find an example of this in Section 5.6, Enhancement of Reservations, in Chapter

5.

EE Release

from SAP R/3 4.7

EE Call points

EE Transactions MB21 and MB22

235

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 236 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Methods

EE DATA_MODIFY

EE DATA_CHECK

MBCF0007 Enhancement

This enhancement is run during the update of reservations and can also be used

to update custom tables. Changes to standard tables should no longer be imple-

mented at this point.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transactions MB21 and MB22

EE Component

EE EXIT_SAPMM07R_001

A.3.4 Archiving

The following enhancement options are for archiving inventory and material

documents.

BAdI ARC_MM_MATBEL_CHECK

The CHECK method of this BAdI runs in the write program for the MM_MATBEL

archiving object (material documents). Using custom criteria, you have the option

here to check whether the archivability for a document has been specified.

EE Release

from SAP R/3 4.7

EE Call point

EE Write Program RM07MARCS

EE Method

EE CHECK

236

© 2013 by Galileo Press Inc., Boston (MA)

第 237 页 / 共 275 页

Inventory Management A.3

BAdI ARC_MM_MATBEL_WRITE

The methods of this BAdI run in the write and deletion program for the MM_MATBEL

archiving object (material documents) and are used to process additional (custom)

data.

EE Release

from SAP R/3 4.7

EE Call points

EE Write Program RM07MARCS

EE Deletion Program RM07MADES

EE Methods

EE PREPARE_WRITE

EE WRITE

EE DELETE

BAdI ARC_MM_INVBEL_CHECK

The CHECK method of this BAdI runs in the write program for the MM_INVBEL

archiving object (inventory documents). Using custom criteria, you can check

whether the archivability for a document has been specified.

EE Release

from SAP ECC 6.0

EE Call point

EE Write Program RM07IARCS

EE Method

EE CHECK

BAdI ARC_MM_INVBEL_WRITE

The methods of this BAdI run in the write and deletion programs for the MM_INV-

BEL archiving object (inventory documents) and are used to process additional

(custom) data.

EE Release

from SAP ECC 6.0

237

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 238 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Call points

EE Write Program RM07IARCS

EE Deletion Program RM07IDELS

EE Methods

EE WRITE

EE DELETE

A.4 Valuation and Account Assignment

The following enhancement options exist in the area of valuation and account

assignment.

LIFO0040 Enhancement

With this enhancement, the LIFO valuation (last-in/first-out) can be influenced.

Among these is the assignment of material numbers for material pools, the influ-

encing of the pool-splitting procedure, and the lowest value comparison.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Transactions MRF1 and MRF3

EE Components

EE EXIT_SAPLLIFS_001

EE EXIT_SAPLLIFS_002

EE EXIT_SAPLLIFS_003

NIWE0000 Enhancement

In the balance sheet valuation, you can change or replace stock quantities, con-

sumption quantities, and goods received quantities using this enhancement.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction MRF1

238

© 2013 by Galileo Press Inc., Boston (MA)

第 239 页 / 共 275 页

Valuation and Account Assignment A.4

EE Components

EE EXIT_SAPLNIWE_003

EE EXIT_SAPLNIWE_004

EE EXIT_SAPLNIWE_005

NIWE0001 Enhancement

By influencing the market price analysis with regard to determination of lowest

value, you can exclude purchasing documents, override document types, or com-

pletely change the determined market price.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction MRF1

EE Components

EE EXIT_SAPLNIW0_001

EE EXIT_SAPLNIW0_002

EE EXIT_SAPLNIW0_003

NIWE0002 Enhancement

In this enhancement, you can influence the procedures for coverage and move-

ment rate with regard to the lowest value determination. This includes changing

the devaluation percentages, the devaluation indicators, or the creation date of the

material masters, excluding the materials of the devaluation.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction MRF1

EE Components

EE EXIT_SAPLNIW1_001

EE EXIT_SAPLNIW1_002

EE EXIT_SAPLNIWE_001

239

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 240 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

Enhancement NIWE0003

This enhancement is used to influence the loss-free valuation in the lowest value

determination. For this, essential account determination keys can be changed.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call point

EE Transaction MRF1

EE Components

EE EXIT_SAPLNIW3_001

EE EXIT_SAPLNIW3_002

LMR1M002 Enhancement

With this enhancement, an override of the account modification constant for the

GR/IR account determination and of the GR/IR account is possible. You can find

an example of this in Section 6.1, GR/IR Account, in Chapter 6.

EE Release

from SAP R/3 4.6C (or earlier)

EE Call points

EE Goods receipt posting

EE Invoice verification (Transactions MIRO and MR1M)

EE Component

EE EXIT_SAPLKONT_011

A.5 Logistics Invoice Verification

The following enhancements are provided in Logistics Invoice Verification.

A.5.1 General

You have the following enhancement options when you generate logistics incom-

ing invoices.

240

© 2013 by Galileo Press Inc., Boston (MA)

第 241 页 / 共 275 页

Logistics Invoice Verification A.5

BAdI MRM_ERS_HDAT_MODIFY

With the automatic invoicing of delivery costs in the ERS procedure (Evaluated

Receipt Settlement), this BAdI is provided to partly revise the header data of the

document to be generated.

EE Release

from SAP ECC 6.0

EE Call point

EE Report RMMR1MDC

EE Method

EE ERS_HEADERDATA_MODIFY

BAdI MRM_ERS_IDAT_MODIFY

With the automatic invoicing of planned delivery costs in the ERS procedure (Eval-

uated Receipt Settlement), this BAdI is provided to revise the document lines of

the document to be processed.

EE Release

from SAP ECC 6.0

EE Call points

EE Report RMMR1MDC (Transaction MRDC)

EE Report RMMR1MRS (Transaction MRRL)

EE Method

EE ERS_ITEMDATA_MODIFY

BAdI MRM_ITEM_CUSTFIELDS

This BAdI allows you to implement a custom tab so that you can manage custom

fields at item level. You can find an example of this in Section 7.1, Custom Fields

in Transaction MIRO, in Chapter 7.

EE Release

from SAP ECC 6.0

EE Call points

EE Transaction MIRO

EE Transaction MIR7

241

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 242 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

EE Methods

EE TABPAGE_LABEL_SET

EE CUSTOMDATA_MODIFY

EE INVOICE_DATA_TRANSFER

EE CUSTOM_DATA_TRANSFER

EE CUSTOM_DATA_GET

EE INVOICE_DATA_GET

BAdI MRM_HEADER_CHECK

With this BAdI, you can execute additional checks on document header data, as

well as item data.

EE Release

from SAP ECC 6.0

EE Call point

EE Entry of incoming invoice

EE Method

EE HEADERDATA_CHECK

BAdI MRM_HEADER_DEFAULT

With the method of this BAdI, you can copy default values to the header data of

incoming invoices.

EE Release

from SAP R/3 4.7

EE Call points

EE Transaction MIRO

EE Transaction MIRA

EE Transaction MIR7

EE Method

EE HEADER_DEFAULT_SET

242

© 2013 by Galileo Press Inc., Boston (MA)

第 243 页 / 共 275 页

Logistics Invoice Verification A.5

BAdI MRM_MRIS_HDAT_MODIFY

When you post a document with Transaction MRIS (invoicing plan settlement with

Logistics Invoice Verification), you can change individual fields of the header data

using this BAdI.

EE Release

from SAP R/3 4.7

EE Call point

EE Transaction MRIS

EE Method

EE MRIS_HEADERDATA_MODIFY

BAdI MRM_MRIS_IDAT_MODIFY

When you post a document with Transaction MRIS (invoice plan settlement with

Logistics Invoice Verification), you can change the document lines using this

BAdI.

EE Release

from SAP R/3 4.7

EE Call point

EE Transaction MRIS

EE Method

EE MRIS_ITEMDATA_MODIFY

BAdI MRM_MRKO_HDAT_MODIFY

In the consignment and pipeline settlement (RMVKON00 report), you can overwrite

the supplier and the document type using this BAdI.

EE Release

from SAP R/3 4.7

EE Call point

EE Report RMVKON00 (Transaction MRKO)

EE Method

EE MRKO_HEADERDATA_MODIFY

243

Personal Copy for Yang Meteor, user id a8103f58-81fe-4f49-acf6-cfb58959c618

第 244 页 / 共 275 页

A User Exits and BAdIs in SAP Materials Management

BAdI MRM_PAYMENT_TERMS

With this BAdI, you can check or change the terms of payment that have been

copied from the purchase order or entered manually.

EE Release

from SAP R/3 4.7

EE Call point

EE Entry of incoming invoice

EE Method

EE PAYMENT_TERMS_SET

BAdI MRM_RELEASE_CHECK

During the release of locked incoming invoices in Transaction MRBR, you can use

this BAdI to execute additional checks and prevent the release if applicable.

EE Release

from SAP R/3 4.7

EE Call point

EE Transaction MRBR

EE Method

EE DOCUMENT_CHECK_RELEASE

BAdI MRM_TOLERANCE_GROUP

You can usually assign only one tolerance group to one supplier. With this BAdI,

you have the option to determine a tolerance group according to custom criteria

during the invoice entry.

EE Release

from SAP R/3 4.7

EE Call point

EE Entry of incoming invoice

EE Method

EE TOLERANCE_GROUP_SET

244

© 2013 by Galileo Press Inc., Boston (MA)

返回ABAP参考资料列表