SAP ABAP IMG Activity W_CM_BADI_0001 (BAdI: Attribute Checks)
Hierarchy
☛
EA-RETAIL (Software Component) SAP Enterprise Extension Retail
⤷ LO-MD (Application Component) Logistics Basic Data
⤷ WRF_CM_MD (Package) Category Management - Master Data
⤷ LO-MD (Application Component) Logistics Basic Data
⤷ WRF_CM_MD (Package) Category Management - Master Data
IMG Activity
ID | W_CM_BADI_0001 | BAdI: Attribute Checks |
Transaction Code | S_XB4_60000028 | (empty) |
Created on | 20040319 | |
Customizing Attributes | W_CM_BADI_0000 | BAdIs for Article Hierarchy |
Customizing Activity | W_CM_BADI_0001 | BAdI: Attribute Checks |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_MATGRP_ATTR_CHK |
Use
This BAdI provides methods that you can use to check attributes of the article hierarchy in a modification-free customer enhancement. Methods ATTR_MANDATORY_CHECK and ATTR_RESTRICT_ASSIGNM_CHECK are delivered with an example implementation. Method ATTR_MULTI_ASSIGNM_CHECK is delivered with a default implementation. All attributes of the article hierarchy are passed on as structure parameters in the method interface. You can extend the structure with additional attribute fields modification-free.
Methods
- ATTR_MANDATORY_CHECK
Here you can check whether maintaining the attribute assignment is mandatory within article hierarchy maintenance. You can check, for example, whether assignment of the price band group to an article hierarchy node is mandatory. If the check fails, a RAISE MANDATORYFLAG must be output. - ATTR_RESTRICT_ASSIGNM_CHECK
In the standard system, attributes can be attached to all nodes in the article hierarchy in article hierarchy maintenance. You can implement restrictions to certain hierarchy levels with a modification-free customer enhancement. You can then check whether assigning an attribute to an article hierarchy is allowed, which means maintaining the attribute assignment is generally desired. The method is performed whenever a node at a level of the article hierarchy is processed. If the check fails, a RAISE RESTRICT_ASSIGNM_NOT_ALLOWED must be output. - ATTR_MULTI_ASSIGNM_CHECK
In the standard delivery, attribute values can be assigned to multiple nodes in the article hierarchy in article hierarchy maintenance. You can use this modification-free customer enhancement to make sure that attributes are only assigned once within an article hierarchy. If the check fails, a RAISE MULTI_ASSIGNM_NOT_ALLOWED must be output. - ATTR_ASSIGNM_CHECK
You can check here whether values of certain article hierarchy attributes can only be changed for specific levels within article hierarchy maintenance. You can also check whether the values of certain attributes will be copied to the node description.
Requirements
Standard settings
An example implementation is provided for the following methods:
- ATTR_MANDATORY_CHECK
- ATTR_RESTRICT_ASSIGNM_CHECK
A default implementation is provided for the following methods:
- ATTR_MULTI_ASSIGNM_CHECK
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 |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20040319 |
SAP Release Created in | 111 |