SAP ABAP Data Element WISP_MDC_FNAM (Name of Function Module in Master Data Check)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-MAP (Application Component) Merchandise and Assortment Planning
     WIS_PLAN (Package) Retail: Planning
Basic Data
Data Element WISP_MDC_FNAM
Short Description Name of Function Module in Master Data Check  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type FUNCNAME    
Data Type CHAR   Character String 
Length 30    
Decimal Places 0    
Output Length 30    
Value Table TFDIR    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Funct.name 
Medium 15 Function module 
Long 20 Function module 
Heading 30 Function module name 
Documentation

Definition

Clear description for a function module in the Function Builder.

Use

This function module executes a master data check for only one value per characteristic.

This is an alternative to using the usual method of checking tables or the available fixed values.
This method is recommended if more complex checks than the classic existence checks mentioned above are necessary (see the example below).

A function module is programmed to run this task and then be entered.

This function module must have the following interface:

  • IMPORT parameters
    • I_VALUE (without reference field and reference type)
      contains the feature to be checked.
    • I_FIELDNAME LIKE DFIES-FIELDNAME
      contains the characteristic to be checked.
    • I_DFIES LIKE DFIES
      contains information on characteristics from the Data Dictionary.
  • EXPORT parameters
    • E_SUBRC LIKE SY-SUBRC
      contains return codes (0 = feature contains no errors, 4 = feature contains errors).
    • E_MESG LIKE MESG
      contains a message in the event of an error occurring (E_SUBRC = 4).
      The following fields are to be filled if errors occur:
      E_MESG-ARBGB: message class
      E_MESG-MSGTY: message type (E, I, W, ...)
      E_MESG-TXTNR: message number
      E_MESG-MSGV1: variable message
      E_MESG-MSGV2: variable message
      E_MESG-MSGV2: variable message
      E_MESG-MSGV2: variable message
  • TABLES-parameter
    • IT_DEPENDENCIES LIKE WISP_VALUES
      contains features for characteristics that have been entered previously so that they can be made available for combination checks.

Example

Sales organizations are defined in table TVKO. Distribution channels are defined in table TVTW.
If both fields are entered simultaneously in this session, it is recommended that you test the existence of both fields against tables TVKO and TVTW and that you also check if the combination in table TVKOV has been defined.

History
Last changed by/on SAP  19990301 
SAP Release Created in