Ansicht
Dokumentation

W_CM_BADI_0002 - BAdI: Hierarchy Checks

W_CM_BADI_0002 - BAdI: Hierarchy Checks

CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

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.

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






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4292 Date: 20240523 Time: 200605     sap01-206 ( 82 ms )