SAP ABAP Class CL_MDG_BS_CUST_IDOC_TO_BP (Map Customer IDoc to CVI Structure)
Hierarchy
MDG_APPL (Software Component) MDG Applications
   CA-MDG-APP-CUS (Application Component) MDG Customer (Central Parts)
     MDG_BS_ECC_CUSTOMER_DEBMAS (Package) Master Data Governance Data Replication DEBMAS / DEBMDM
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_BADI_CONTEXT Interface, a BAdI Context has to Implement 20101026
Properties
Class CL_MDG_BS_CUST_IDOC_TO_BP  
Short Description Map Customer IDoc to CVI Structure    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MDG_BS_ECC_CUSTOMER_DEBMAS   Master Data Governance Data Replication DEBMAS / DEBMDM 
Created 20101026   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_BADI_CONTEXT Interface, a BAdI Context has to Implement 20101026
Friends
Class CL_MDG_BS_CUST_IDOC_TO_BP has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_NO_DATA Constant Public Type reference (TYPE) CHAR1 '/' Single-Character Indicator 20101109
2 GC_ORGANIZATION Constant Private Type reference (TYPE) BU_TYPE '2' Business partner category 20101119
3 GC_PERSON Constant Private Type reference (TYPE) BU_TYPE '1' Business partner category 20120426
4 GT_STACK Static Attribute Private Type reference (TYPE) EDIDD_TT Table Type for EDIDD (IDoc Data Records) 20101026
Methods
# Method Level Visibility Method type Description Created on
1 GET_BP_FROM_IDOC Instance method Public Method Get Business Partner from IDoc 20101026
2 GET_GROUPING Instance method Private Method Get grouping 20101026
3 GET_KUNNR_HUB_ID Instance method Private Method Get Customer Hub ID 20101108
4 GET_ROLES Instance method Private Method Get roles 20101026
5 HANDLE_REFERENCE Instance method Private Method Handle Reference 20101109
6 HANDLE_REFERENCES_KNA1 Instance method Private Method Handle KNA1 references 20101109
7 HANDLE_REFERENCES_KNB1 Instance method Private Method Handle KNB1 references 20111129
8 HANDLE_REFERENCES_KNB5 Instance method Private Method Handle KNB5 references 20120224
9 HANDLE_REFERENCES_KNVP Instance method Private Method Handle KNVP references 20120224
10 MAP_DATA_FROM_DEBMAS_IDOC Instance method Private Method Map data from DEMBAS IDoc 20101124
11 READ_KEY_MAPPING Instance method Private Method Read Key Mapping 20101222
12 READ_KEY_MAPPING_CP Instance method Private Method Read Key Mapping Contact Person 20120302
13 READ_KEY_MAPPING_LIFNR Instance method Private Method Read Key Mapping Vendor 20120302
14 SET_CURRENT_STATE Instance method Private Method Set current state 20101222
15 SET_CUR_REFERENCE Instance method Private Method Set Current Reference 20110105
16 SET_CUR_REFERENCE_OF_HUB_ID Instance method Private Method Set Current Reference of Hub ID 20110105
17 SET_IDOC_STATUS Instance method Public Method Set IDoc Status 20101115
18 TRANSFORM_CUSTOMER_TO_BP Instance method Private Method Transform Customer into Business Partner 20101119
Events
Class CL_MDG_BS_CUST_IDOC_TO_BP has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GTY_VALIDITY Private See coding 20101124 BEGIN OF gty_validity, valid_from TYPE ad_valfrom, valid_to TYPE ad_valto, END OF gty_validity
Method Signatures

Method GET_BP_FROM_IDOC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PARTNER Call by reference Type reference (TYPE) MDG_BS_BP_T_EXTERN Complex External Interface of a Business Partner 20101119
2 Exporting ET_PARTNER_CP Call by reference Type reference (TYPE) MDG_BS_BP_T_CP_EXTERN External Interface of a Business Partner with contacts 20120416
3 Importing IT_EDIDD Call by reference Type reference (TYPE) EDIDD_TT Data record (IDoc) 20101026
4 Importing IV_IDOC_MESTYP Call by reference Type reference (TYPE) EDI_MESTYP Message Type 20110131
5 Importing IV_SENDER_BUS_SYS Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101104

Method GET_BP_FROM_IDOC on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method GET_GROUPING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KTOKD Call by reference Type reference (TYPE) KTOKD Customer account group 20101026
2 Returning RV_GROUPING Value transfer Type reference (TYPE) BU_GROUP Business Partner Grouping 20101026

Method GET_GROUPING on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method GET_KUNNR_HUB_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_HUB_KUNNR Call by reference Type reference (TYPE) KUNNR Customer Number 20101108
2 Importing IV_CLNT_KUNNR Call by reference Type reference (TYPE) KUNNR Customer Number 20101108
3 Importing IV_SENDER_BUS_SYS Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101108

Method GET_KUNNR_HUB_ID on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method GET_ROLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KTOKD Call by reference Type reference (TYPE) KTOKD Customer account group 20101026
2 Returning RT_ROLE Value transfer Type reference (TYPE) BUS_EI_BUPA_ROLES_T External Interface: Role Data 20101026

Method GET_ROLES on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method HANDLE_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_API_DATA Call by reference Type reference (TYPE) ANY API data structure 20101109
2 Changing CS_API_DATAX Call by reference Type reference (TYPE) ANY API datax structure 20101109
3 Importing IS_COMPANY_KEY Call by reference Type reference (TYPE) CMDS_EI_COMPANY_KEY Ext. Interface: Company Code Data / Key Fields 20111129
4 Importing IS_DUNNING_KEY Call by reference Type reference (TYPE) CVIS_EI_DUNNING_KEY Ext. Interface: Dunning Data / Key Fields 20120302
5 Importing IS_FUNCTIONS_KEY Call by reference Type reference (TYPE) CMDS_EI_FUNCTIONS_KEY Ext. Interface: Partner Roles / Key Fields 20120302
6 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Customer Data 20110104
7 Importing IS_SALES_KEY Call by reference Type reference (TYPE) CMDS_EI_SALES_KEY Ext. Interface: Sales Data / Key Fields 20120302
8 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222
9 Importing IV_FIELDN Call by reference Type reference (TYPE) FIELDNAME Field Name 20101109
10 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222

Method HANDLE_REFERENCE on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method HANDLE_REFERENCES_KNA1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_API_DATA Call by reference Type reference (TYPE) ANY API data structure 20101109
2 Changing CS_API_DATAX Call by reference Type reference (TYPE) ANY API datax structure 20101109
3 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Customer Data 20110104
4 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222
5 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222

Method HANDLE_REFERENCES_KNA1 on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method HANDLE_REFERENCES_KNB1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_API_DATA Call by reference Type reference (TYPE) ANY API data structure 20111129
2 Changing CS_API_DATAX Call by reference Type reference (TYPE) ANY API datax structure 20111129
3 Importing IS_COMPANY_KEY Call by reference Type reference (TYPE) CMDS_EI_COMPANY_KEY Ext. Interface: Company Code Data / Key Fields 20111129
4 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Vendor Data 20111129
5 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20111129
6 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20111129

Method HANDLE_REFERENCES_KNB1 on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method HANDLE_REFERENCES_KNB5 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_API_DATA Call by reference Type reference (TYPE) ANY API data structure 20120224
2 Changing CS_API_DATAX Call by reference Type reference (TYPE) ANY API datax structure 20120224
3 Importing IS_COMPANY_KEY Call by reference Type reference (TYPE) CMDS_EI_COMPANY_KEY Ext. Interface: Company Code Data / Key Fields 20120224
4 Importing IS_DUNNING_KEY Call by reference Type reference (TYPE) CVIS_EI_DUNNING_KEY Ext. Interface: Dunning Data / Key Fields 20120302
5 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Vendor Data 20120224
6 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120224
7 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120224

Method HANDLE_REFERENCES_KNB5 on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method HANDLE_REFERENCES_KNVP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_API_DATA Call by reference Type reference (TYPE) ANY API data structure 20120224
2 Changing CS_API_DATAX Call by reference Type reference (TYPE) ANY API datax structure 20120224
3 Importing IS_FUNCTIONS_KEY Call by reference Type reference (TYPE) CMDS_EI_FUNCTIONS_KEY Ext. Interface: Partner Roles / Key Fields 20120302
4 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Vendor Data 20120224
5 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120224
6 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120224

Method HANDLE_REFERENCES_KNVP on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method MAP_DATA_FROM_DEBMAS_IDOC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_CUSTOMER Call by reference Type reference (TYPE) CMDS_EI_EXTERN Complex External Interface for Customers 20101124
2 Changing CT_FAX Call by reference Type reference (TYPE) CVIS_EI_FAX_T Ext. Interface: Fax Numbers 20101124
3 Changing CT_PHONE Call by reference Type reference (TYPE) CVIS_EI_PHONE_T Ext. Interface: Telephone Numbers 20101124
4 Changing CT_TLX Call by reference Type reference (TYPE) CVIS_EI_TLX_T Ext. Interface: Telex Numbers 20101124
5 Changing CT_TTX Call by reference Type reference (TYPE) CVIS_EI_TTX_T Ext. Interface: Teletex Numbers 20101124
6 Importing IS_E1KNA1M Call by reference Type reference (TYPE) E1KNA1M Master customer master basic data (KNA1) 20101124
7 Importing IS_VALIDITY Call by reference Type reference (TYPE) GTY_VALIDITY 20101124

Method MAP_DATA_FROM_DEBMAS_IDOC on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method READ_KEY_MAPPING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_HUB_CUST_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20101222
2 Importing IV_CLNT_CUST_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20101222
3 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222
4 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20101222

Method READ_KEY_MAPPING on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method READ_KEY_MAPPING_CP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_HUB_CP_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20120302
2 Importing IV_CLNT_CP_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20120302
3 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120302
4 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120302

Method READ_KEY_MAPPING_CP on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method READ_KEY_MAPPING_LIFNR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_HUB_VEND_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20120302
2 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120302
3 Importing IV_CLNT_VEND_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20120302
4 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20120302

Method READ_KEY_MAPPING_LIFNR on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method SET_CURRENT_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_PARTNER Call by reference Type reference (TYPE) MDG_BS_BP_S_EXTERN Structure for business partner 20101222

Method SET_CURRENT_STATE on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method SET_CUR_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_DATA Call by reference Type reference (TYPE) ANY Customer data structure 20110105
2 Changing CS_DATAX Call by reference Type reference (TYPE) ANY Customer datax structure 20110105
3 Importing IS_COMPANY_KEY Call by reference Type reference (TYPE) CMDS_EI_COMPANY_KEY Ext. Interface: Company Code Data / Key Fields 20111129
4 Importing IS_DUNNING_KEY Call by reference Type reference (TYPE) CMDS_EI_DUNNING_KEY Ext. Interface: Dunning Data / Key Fields 20120302
5 Importing IS_FUNCTIONS_KEY Call by reference Type reference (TYPE) CMDS_EI_FUNCTIONS_KEY Ext. Interface: Partner Roles / Key Fields 20120302
6 Importing IS_HEADER Call by reference Type reference (TYPE) CMDS_EI_HEADER Ext. Interface: Header for Vendor Data 20110105
7 Importing IS_PAR_DATA Call by reference Type reference (TYPE) ANY Customer data of parent 20110105
8 Importing IS_SALES_KEY Call by reference Type reference (TYPE) CMDS_EI_SALES_KEY Ext. Interface: Sales Data / Key Fields 20120302
9 Importing IV_CLNT_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20110105
10 Importing IV_FIELDN Call by reference Type reference (TYPE) FIELDNAME Field Name 20110105
11 Importing IV_HUB_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Business System 20110105

Method SET_CUR_REFERENCE on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method SET_CUR_REFERENCE_OF_HUB_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_DATA Call by reference Type reference (TYPE) ANY Customer data structure 20110105
2 Changing CS_DATAX Call by reference Type reference (TYPE) ANY Customer datax structure 20110105
3 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Customer data 20111129
4 Importing IV_FIELDN Call by reference Type reference (TYPE) FIELDNAME Field Name 20110105
5 Importing IV_HUB_CUST_ID Call by reference Type reference (TYPE) MDG_OBJECT_ID_BS Key Mapping: Object ID Value 20110105
6 Importing IV_MABER Call by reference Type reference (TYPE) MABER Dunning 20120302
7 Importing IV_PARVW Call by reference Type reference (TYPE) PARVW Partner Function 20120302
8 Importing IV_SPART Call by reference Type reference (TYPE) SPART Division 20120302
9 Importing IV_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20120302
10 Importing IV_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20120302

Method SET_CUR_REFERENCE_OF_HUB_ID on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method SET_IDOC_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_IDOC_STATUS Call by reference Type reference (TYPE) BDTIDOCSTA Table Type for BDIDOCSTAT 20101115
2 Changing CT_RETURN_VARIABLES Call by reference Type reference (TYPE) BDTWFRETVA Assignment of IDoc or document no. to method parameter 20101115
3 Changing CV_APPLICATION_VARIABLE Call by reference Type reference (TYPE) APPL_VAR Variable to be used by application as required 20101115
4 Changing CV_CALL_TRANSACTION_DONE Call by reference Type reference (TYPE) UPDATETASK Flag: Application has triggered update task 20101115
5 Changing CV_IN_UPDATE_TASK Call by reference Type reference (TYPE) UPDATETASK Flag: Application has triggered update task 20101115
6 Changing CV_WORKFLOW_RESULT Call by reference Type reference (TYPE) WF_RESULT Final value of method 20101115
7 Importing IT_MESSAGE Call by reference Type reference (TYPE) APPLMSGTAB Return Table for Messages 20101115
8 Importing IV_CLNT_KUNNR Call by reference Type reference (TYPE) KUNNR Customer Number 20101115
9 Importing IV_CREQ_ERROR Call by reference Type reference (TYPE) ABAP_BOOL 20101115
10 Importing IV_IDOC_DOCNUM Call by reference Type reference (TYPE) EDI_DOCNUM Control record (IDoc) 20101115
11 Importing IV_IDOC_ERROR Call by reference Type reference (TYPE) ABAP_BOOL 20101115

Method SET_IDOC_STATUS on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.

Method TRANSFORM_CUSTOMER_TO_BP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting CT_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20101119
2 Exporting ES_PARTNER Call by reference Type reference (TYPE) MDG_BS_BP_S_EXTERN Structure for business partner 20101119
3 Exporting ES_PARTNER_CP Call by reference Type reference (TYPE) MDG_BS_BP_S_CP_EXTERN Structure for Business Partner with Contact persons 20120416
4 Importing IS_CUSTOMER Call by reference Type reference (TYPE) CMDS_EI_EXTERN Complex External Interface for Customers 20101119

Method TRANSFORM_CUSTOMER_TO_BP on class CL_MDG_BS_CUST_IDOC_TO_BP has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 606