Hierarchy
⤷ IS-AD-MPN (Application Component) Manufacturer Part Number
⤷ ADPIC (Package) A&D Parts Interchangeability Enhancements
IMG Activity
ID | BADI_PIC_AUTOXCHGINF | Add-In: Automatic Determination of Material and Quantity for Exchange |
Transaction Code | S_ALI_97000056 | (empty) |
Created on | 20040319 | |
Customizing Attributes | BADI_PIC_AUTOXCHGINF | Automatic Determination of Material and Quantity for Exchange |
Customizing Activity | BADI_PIC_AUTOXCHGINF | Add-In: Automatic Determination of Material and Quantity for Exchange |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_PIC_AUTOXCHGINF |
Use
This BAdI enables the automatic exchange of materials in an application document (for example, in a stock transport order). The method DETERMINE_EXCHGINFO_AUTO can accept the material and associated data and will return the interchangeable materials.
Requirements
Parameter it_atpcsx is required if the selection is to be made depending on the availability check.
Standard settings
The default implementation of the BAdI method DETERMINE_EXCHGINFO_AUTO selects the materials in the order given below until the entire quantity is met:
1. The input material is chosen with the available quantity if there is any.
2. Leading material in the MPN-MRP set defined for the input material is chosen if there is any available quantity.
3. The material with the highest available quantity is chosen.
The input parameters of the method are:
IV_MATNR - Requested material number
IV_ACTVT - Create/display/change mode for determining the authorization for restricted interchangeable materials
IV_PROCESS_CODE - Process code as given in table ADPIC_SETTING in Customizing under Logistics General ->Interchangeability of Parts ->Define Settings for Item Generation and Restricted Interchangeability
IV_PICCODE - Interchangeability code for restricted interchangeability
IV_FFFC - X to select fully interchangeable materials, leave blank to not select fully interchangeable MPN materials
IV_RIC - X to select restricted interchangeable materials, leave blank to not select restricted interchangeable MPN materials
IV_MRPGR - X to select MRP set details, leave blank to not select MRP set details
IV_SUS - X to select supersession, leave blank to not select supersession
IV_WERKS - Plant for which the materials should be checked
IV_LGORT - Storage location for which the materials should be checked
IV_BERID - MRP area for which the materials should be checked
IV_CHARG - Batch for which the materials should be checked
IV_DATFR - Date from which the material is valid for supersession material
IV_REQSTD_QTY - Requested quantity
IV_MEINS - Unit of measure
IV_REQSTD_DATE - Date for which the quantity of the material is requested
IV_SOBKZ - Special stock indicator
IV_KUNNR - Customer for the customer stock
IV_KDAUF - Sales order for the sales order stock
IV_KDPOS - Position of the sales order
IV_PSPNR - WBS element for the project stock
IV_OWNER - Owner for the RTP stock
IT_ATPCSX - Table of the parameters for ATP check
IS_EKPO - Application data for the purchase orders
ET_EXCHG_INFO - Output table with the materials and the quantity which can be used for exchange
Activities
Example
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 1 | Mandatory activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | BADI_PIC_AUTOXCHGINF | 0 | KAD0000008 | Manufacturer Part Number |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20040319 |
SAP Release Created in | 500 |