SAP ABAP IMG Activity W_CM_BADI_0002 (BAdI: Hierarchy 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
IMG Activity
ID W_CM_BADI_0002 BAdI: Hierarchy Checks  
Transaction Code S_XB4_60000029   (empty) 
Created on 20040319    
Customizing Attributes W_CM_BADI_0000   BAdIs for Article Hierarchy 
Customizing Activity W_CM_BADI_0002   BAdI: Hierarchy Checks 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_MATGRP_HIER_CHK    

Use

This BAdI provides methods that you can use to implement checks for the article and node assignments in the article hierarchy, and for the validity periods of the assignments, in a modification-free customer enhancement.

Methods:

  • ARTICLE_ASSIGNM_CHECK
    You can check scheduled changes to article assignments in a modification-free customer enhancement within article hierarchy maintenance. If the check fails, a RAISE ERRORFLAG must be output.
  • ARTICLE_ASSIGNM_ATTR_CHECK
    In the standard delivery, an article can be assigned to any node in the article hierarchy within article hierarchy maintenance. You can use this method to check whether article assignment is not allowed for certain nodes and certain values of the assigned attributes. The method is given the hierarchy ID, the article assignment to create, the direct node assignment of the article, and the hierarchy level of the article assignment in structure ARTICLE_ASSIGN_PARAMETER.
  • ARTICLE_MANDATORY_CHECK
    In the standard delivery, it is not necessary to assign an article to a node in the article hierarchy in article hierarchy maintenance. If assignment is mandatory, you can use this BAdI to override the stadnard check. If the check fails, a RAISE MANDATORYFLAG must be output.
  • ARTICLE_MAIN_ASSIGNM_CHECK
    In the standard delivery, only one main assignment can be defined for an article within an article hierarchy. If multiple main assignments are required, you can use this BAdI to override the standard check in article hierarchy maintenance. If the check is successful, a RAISE MAIN_ASSIGNM_ALLOWED must be output.
  • VALIDITY_PERIOD_CHECK
    A modification-free customer enhancement lets you prevent gaps in the validity periods. If the check fails, a RAISE NO_FRAGMENTARY_PERIOD must be output.
  • NODE_ASSIGNM_CHECK
    You can check scheduled changes to the node assignment in article hierarchy maintenance with a modification-free customer enhancement. If the check fails, a RAISE ERRORFLAG must be output.
  • NO_PLANED_HIER
    You can set the parameter EX_NO_PLANED_HIER to prevent the assignment of shops to planned article hierarchies. If you do, the system does not check if all shops are assigned to a category when you activate the article hierarchy.
  • NODE_ASSIGNM_VALIDITY_CHECK
    You can check changes to the validity periods of node assignments in the article hierarchy maintenance in a customer enhancement without modification. If you do not want to change the validity periods, you can issue a RAISE NO_VALIDITY_CHANGE_ALLOWED.
  • ARTICLE_ASSIGNM_VALIDITY_CHECK
    You can check changes to the validity periods of material assignments in the article hierarchy maintenance in a customer enhancement without modification. If you do not want to change the validity periods, you can issue a RAISE NO_VALIDITY_CHANGE_ALLOWED.
  • VALIDITY_CHECK_FOR_ARTICLE
    You can prevent the check of the validity periods of material assignments from the check of the validity periods of node assignments in a customer enhancement without restriction. If you do not want the validity period of a material assignment to be checed when the validity period of the directly assigned node is changed, you issue a RAISE NO_VALIDITY_CHECK_ALLOWED.

Requirements

Standard settings

The standard system delivery includes an example implementation for the following methods:

  • ARTICLE_ASSIGNM_CHECK
  • ARTICLE_MANDATORY_CHECK
  • ARTICLE_MAIN_ASSIGNM_CHECK
  • VALIDITY_PERIOD_CHECK
  • NODE_ASSIGNM_VALIDITY_CHECK
  • ARTICLE_ASSIGNM_VALIDITY_CHECK

The standard system delivery includes a default implementation for the following method:

  • VALIDITY_CHECK_FOR_ARTICLE

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