Hierarchy
⤷
⤷
IMG Activity
| ID | BADI_PIC_PREPXCHDATA | Add-In: Prepare PO Data Before Calling Exchange to Create Subitems in PO |
| Transaction Code | S_ALI_97000057 | (empty) |
| Created on | 20040319 | |
| Customizing Attributes | BADI_PIC_PREPXCHDATA | Prepare PO Data Before Calling Exchange to Create Subitems in PO |
| Customizing Activity | BADI_PIC_PREPXCHDATA | Add-In: Prepare PO Data Before Calling Exchange to Create Subitems in PO |
Document
| Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
| Document Name | BADI_PIC_PREPXCHDATA |
Use
This BAdI is used in the component Manufacturer Part Number (IS-AD-MPN).
The method EXCHANGE_MAT_IN_PO of class CL_ADPIC_EXCHANGE_PO, which is called to perform a material exchange from the goods movement transaction MIGO, only considers the tables POITEM and POSCHEDULE, in other words general item scheduling lines data.
If a system is set up in a way that any other field is mandatory for the sub-item creation, method EXCHANGE_MAT_IN_PO would encounter an error. With the method PREPARE_EXCHANGE_DATA of BAdI BADI_PIC_PREPXCHDATA, you can fill such fields. The method receives the filled tables from the method EXCHANGE_MAT_IN_PO and the purchase order number. It also receives a table, which contains the user input from the goods movement via MIGO (IT_IMSEG). It returns almost all possible tables of BAPI_PO_CHANGE, which can be filled and then are considered when the BAPI is called.
You may not change the sub-item material or the sub-item quantity. This is checked in method EXCHANGE_MAT_IN_PO and if either of these has changed, the system cancels processing.
Note: IT_IMSEG does not contain the actual item numbers because the item numbers for the sub-item creation are determined later. The current item numbers can be found in table IT_POITEM.
Requirements
Standard settings
There is no standard implementation of this BAdI.
Activities
Example
Business Attributes
| ASAP Roadmap ID | 257 | Create User Exits |
| Mandatory / Optional | 2 | Optional activity |
| Critical / Non-Critical | 2 | Non-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_PREPXCHDATA | 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 |