/SAPAPO/MVM_CONS_CHK_EXAMPLE - Example, Check Module

CL_GUI_FRONTEND_SERVICES - Frontend Services   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Functionality

This function module shows the interface for a customer-specifically executed model consistency check.You can implement model consistency checks that are specific to your company, by writing a new function module that refers to the same interface as the existing function module.

Define the interface

The interface of the function module to be created should include the following parameters:

Import parameters:

  • I_VERSION: Planning version that the master data objects to be checked belong to
  • I_MODELID: APO model that the planning version belongs to
  • I_CHKDATE: Check date that the model consistency check refers to
  • CONS_CHK_FLG: Indicator whether strict check criteria are needed or not.

Table parameters:

  • I_OBJ_CONS_CHK_TAB: Table where all master data objects to be checked are transferred to the function module.
This table is based on the structure /SAPAPO/OBJ_CONS_CHK with the following fields:
  • OBJ: Object GUID

  • OBJ_TYPE: Object type (Include /SAPAPO/SCC_GLOBAL_CONST includes every object type and their constant names)

  • OBJ_NAME: Object name

  • OBJ_DESCR: Object long text

  • LOCID: Location GUID in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • LOC_TYPE: Location type in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • LOC_NAME: Location name in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • LOC_DESCR: Location long text in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • MATID: Project GUID in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • MAT_TYPE: Product type in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • MAT_NAME: Product name in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • MAT_DESCR: Product long text in the case of a location product (object type g_bobjt_prodloc_con (1015))

  • LOCFR: Start location GUID in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCFR_TYPE: Start location type in the case of a transportation lane (object type g-bobjt_tl_con (2001))

  • LOCFR_NAME: Start location name in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCFR_DESCR: Start location long text in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCTO: Destination location GUID in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCTO_TYPE: Destination location type in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCTO_NAME: Destination location name in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • LOCTO_DESCR: Destination location long text in the case of a transportation lane (object type g_bobjt_tl_con (2001))

  • E_CONS_CHK_MESS_TAB: Table where the generated messages of the model consistency check are transferred to the function module for display purposes.
This table is based on the structure /SAPAPO/S_MVM_CHK_MESS with the following fields:
  • MSGTY: Type of message to be displayed (attributes: E, W, I)

  • MSGID: Message class of message to be displayed

  • MSGNO: Message number of message to be displayed

  • MSGV1 to MSGV4: Message variables of message to be displayed.

Include function module

Enter the function modules in the view /SAPAPO/V_USRCHK (transaction SM30).

The view has the following fields:

  • Function module: Name of function module
  • Status: If this indicator is set, the function module is considered in the model consistency check.
  • Text: Description of function module

The function modules of view /SAPAPO/V_USRCHK are considered if the indicator User-specific checks is set in the profile used, on the tab page Master data.

All user-specific messages in table E_CONS_CHK_MESS_TAB are displayed in the model consistency check, together with the messages generated by the standard consistency checks.

The user-specific messages are displayed in the view sorted according to the master data/applicationarea and in the view sorted according to the master data objects in the User-specific directory.

Example

Notes

Further information


Parameters

CONS_CHK_FLG
E_CONS_CHK_ERR_TAB
E_CONS_CHK_MESS_TAB
I_CHKDATE
I_CHKID_TAB
I_MODELID
I_OBJ_CONS_CHK_TAB
I_VERSION

Exceptions

Function Group

APO/SAPLMVM_CONS

CPI1466 during Backup   General Data in Customer Master  
This documentation is copyright by SAP AG.


Length: 7074 Date: 20120525 Time: 034658     triton ( 181 ms )