Hierarchy
⤷ LO-MD-MM (Application Component) Material Master
⤷ WCA1 (Package) Customizing R/3 material master Retail
IMG Activity
ID | W_ZF_ST_0351 | BAdI: Changeability of Structured Materials |
Transaction Code | S_AL0_96000586 | (empty) |
Created on | 20011220 | |
Customizing Attributes | W_ZF_ST_0351 | BAdI: Changeability of Structured Materials |
Customizing Activity | W_ZF_ST_0351 | BAdI: Changeability of Structured Materials |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | WSTR_CHG_RESTRICTION |
Use
This BAdI allows you to determine changea to component lists for structured materials.
Structured materials cannot be changed if they are used in logistics processes. Logistics processes involve the following:
- Product catalogs
- Purchase orders
- Sales and distribution documents
- Stocks
Some customers still find these standard checks too restrictive. Depending on the business process, it may still be necessary to change structured materials if purchase orders already exist, for example. It is then up to the customer to create some kind of check so that no inconsistencies occur.
Requirements
Standard settings
Activities
The application transfers:
- The material number of the structured material
- The structured material category (set, prepack, display) and
- The maintenance mode (create, change) to the BAdI.
Based on this information, you can run consistency checks using your own programming logic. The calling program expects the following results:
- An indicator as to whether the component list can be changed (value 1) or not (value 0). If nothing is returned (blank), then the standard checks (see above) can be carried out.
- A message that is meant to be issued can be returned more remotely. It should include type S (success), I (information), or W (warning). If several messages are returned, then only the first message is sent in the standard delivery.
Example
You want to influence how prepack materials are changed. All other checks should remain as they are in the standard delivery.
Implement the BAdI and check in the coding whether the material category is 'L' (see the domain default values). In this case (prepack material), you can run individual check routines. The result might be that the component list may be changed, although the user is alerted by a system message that certain things should be taken into account (follow-up actions, consulting the relevant departments, and so on).
The risks when you do not adhere to the standard checks are explained briefly in the following purchase order examples:
- A structured material has already been ordered (and will be delivered as it has been ordered). If you now decide to change the component list after placing the order, the stock postings (in the store, for example) will be incorrect when the structured material is broken down, because the component list in the system no longer matches the actual content of the structured material.
- A structured material has already been ordered. If you change the component list, this can alter the price of the material. If you adjust the price of the material, but forget to change the price in the purchase order as well, then FI postings will be incorrect and you can expect problems to arise in the invoice verification.
For this reason, you should think carefully about making changes to the standard logic. You must find a suitable method for counteracting the risk of inconsistent postings.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20020107 |
SAP Release Created in | 470 |