SAP ABAP Class CL_MDG_BS_BP_SEARCH (MDG Customer Search)
Hierarchy
MDG_FND (Software Component) MDG Foundation
   CA-MDG-APP-BP (Application Component) MDG Business Partner (Central Part)
     MDG_BS_BP_SEARCH (Package) MDG: Business Partner - Search
Properties
Class CL_MDG_BS_BP_SEARCH  
Short Description MDG Customer Search    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MDG_BS_BP_SEARCH   MDG: Business Partner - Search 
Created 20100506   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
Class CL_MDG_BS_BP_SEARCH has no interface implemented.
Friends
Class CL_MDG_BS_BP_SEARCH has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_BP_MODEL Static Attribute Public Type reference (TYPE) USMD_MODEL 'BP' Data model 20100506
2 GC_USMD_ACTIVE Constant Public Type reference (TYPE) USMD_ACTIVE '1' Active/Inactive Data Record 20111221
Methods
# Method Level Visibility Method type Description Created on
1 GET_TEXT_ACADEMIC_TITLE Static method Public Method Get Academic Title Text (Business Address Services) 20120104
2 GET_TEXT_ADR_TITLE Static method Public Method Get text for title (address) 20120104
3 GET_TEXT_BP_GROUP_TYPE Static method Public Method Get text for BP group type 20120105
4 GET_TEXT_COUNTRY Static method Public Method Get text for country 20111222
5 GET_TEXT_DOMAIN_VALUE Static method Public Method Get text for domain fixed value 20120104
6 GET_TEXT_LANGU Static method Public Method Get text for language key 20120104
7 GET_TEXT_LEGAL_ENTITY Static method Public Method Get text for BP legal entity 20120105
8 GET_TEXT_LEGAL_FORM Static method Public Method Get text for BP legal form 20120105
9 GET_TEXT_MARITAL_STATUS Static method Public Method Get text for marital status code 20120105
10 GET_TEXT_NAME_PREFIX Static method Public Method Get text for Name Prefixes (Business Address Services) 20120104
11 GET_TEXT_NAME_SUFFIX Static method Public Method Get text for Name Suffixes/Title (Bus.Address Services) 20120104
12 GET_TEXT_NATIONALITY Static method Public Method Get text for nationality 20120105
13 GET_TEXT_NON_DELIVERY_REASON Static method Public Method Get text for non-delivery reason (Business Address Services) 20120103
14 GET_TEXT_OCCUPATION Static method Public Method Get text for BP occupations/groups 20120105
15 GET_TEXT_REGION Static method Public Method Get text for region 20111222
16 GET_TEXT_TIME_ZONE Static method Public Method Get text for time zone 20120103
17 MAP_BP_DATA2SOA Instance method Public Method Map BP central and address data to external SOA structure 20111221
18 MAP_RESULT_LIST Instance method Public Method 20100507
19 READ_ATTRIBUTES Instance method Public Method Read requested BP attributes (not hidden in VC_USMD006) 20100813
20 READ_BP_DATA Instance method Public Method Read BP common and address data 20111221
21 RETURNTAB_HAS_ERROR Static method Public Method Error message in return table? 20111221
22 SEARCH Instance method Public Method Search BP's and read requested attributes 20100506
23 SEARCH2 Instance method Public Method Search Bp's and get common and address data 20111221
24 SEARCH_BP Instance method Public Method 20100813
25 SEARCH_BY_ENTITY Instance method Public Method 20100506
Events
Class CL_MDG_BS_BP_SEARCH has no event.
Types
Class CL_MDG_BS_BP_SEARCH has no local type.
Method Signatures

Method GET_TEXT_ACADEMIC_TITLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) AD_TITLE1 Academic Title: Key 20120104
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120104
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120104
4 Returning RV_TEXT Value transfer Type reference (TYPE) AD_TITLE1D Academic title description 20120104

Method GET_TEXT_ACADEMIC_TITLE on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_ADR_TITLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) AD_TITLE Form-of-Address Key 20120104
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120104
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120104
4 Returning RV_TEXT Value transfer Type reference (TYPE) AD_TITLETX Title text 20120104

Method GET_TEXT_ADR_TITLE on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_BP_GROUP_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) BU_GRPTYP Group type 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) BU_TEXT40 Country Name 20120105

Method GET_TEXT_BP_GROUP_TYPE on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_COUNTRY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) LAND1 Country Key 20111222
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20111222
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20111222
4 Returning RV_TEXT Value transfer Type reference (TYPE) LANDX50 Country Name 20111222

Method GET_TEXT_COUNTRY on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_DOMAIN_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DOMAIN Call by reference Type reference (TYPE) DOMNAME Domain name 20120104
2 Importing IV_INITIAL_KEY Call by reference Type reference (TYPE) BOOLE_D ABAP_FALSE Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') 20120104
3 Importing IV_KEY Call by reference Type reference (TYPE) BU_TYPE Business partner category 20120104
4 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120104
5 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D ABAP_TRUE 'X' = return "" if no text is found 20120104
6 Returning RV_TEXT Value transfer Type reference (TYPE) VAL_TEXT 20120104

Method GET_TEXT_DOMAIN_VALUE on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_LANGU Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) SPRAS Language Key 20120104
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120104
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120104
4 Returning RV_TEXT Value transfer Type reference (TYPE) SPTXT Name of Language 20120104

Method GET_TEXT_LANGU on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_LEGAL_ENTITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) BU_LEGAL_ORG Legal Entity of Organization 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) BU_TEXT60 Name 20120105

Method GET_TEXT_LEGAL_ENTITY on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_LEGAL_FORM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) BU_LEGENTY Legal Form of Organization 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) BU_TEXT40 Country Name 20120105

Method GET_TEXT_LEGAL_FORM on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_MARITAL_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) BU_MARST Marital Status of Business Partner 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) BU_BEZ20 Short name 20120105

Method GET_TEXT_MARITAL_STATUS on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_NAME_PREFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) AD_PREFIX Name Prefix (Key) 20120104
2 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120104
3 Returning RV_TEXT Value transfer Type reference (TYPE) AD_PREFIXT Name prefix 20120104

Method GET_TEXT_NAME_PREFIX on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_NAME_SUFFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) AD_TITLES Name supplement key 20120104
2 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120104
3 Returning RV_TEXT Value transfer Type reference (TYPE) AD_TITLEST Name supplement, e.g. noble title (written form) 20120104

Method GET_TEXT_NAME_SUFFIX on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_NATIONALITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) LAND1 Country Key 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) NATIO50 Nationality 20120105

Method GET_TEXT_NATIONALITY on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_NON_DELIVERY_REASON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) AD_NO_USE Not Deliverable Flag 20120103
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120103
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120103
4 Returning RV_TEXT Value transfer Type reference (TYPE) AD_DELI_D Reason for Non-Delivery (Text) 20120103

Method GET_TEXT_NON_DELIVERY_REASON on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_OCCUPATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) BU_JOBGR Occupation/group 20120105
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120105
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120105
4 Returning RV_TEXT Value transfer Type reference (TYPE) BU_BEZ30 Description 20120105

Method GET_TEXT_OCCUPATION on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_REGION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COUNTRY Call by reference Type reference (TYPE) LAND1 Country Key 20111222
2 Importing IV_KEY Call by reference Type reference (TYPE) REGIO Region key 20111222
3 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20111222
4 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20111222
5 Returning RV_TEXT Value transfer Type reference (TYPE) BEZEI20 Description 20111222

Method GET_TEXT_REGION on class CL_MDG_BS_BP_SEARCH has no exception.

Method GET_TEXT_TIME_ZONE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KEY Call by reference Type reference (TYPE) TZNZONE Time Zone 20120103
2 Importing IV_LANGU Call by reference Type reference (TYPE) SPRAS SY-LANGU Language Key 20120103
3 Importing IV_SHOW_MISSING_TEXT Call by reference Type reference (TYPE) BOOLE_D 'X' 'X' = return "" if no text is found 20120103
4 Returning RV_TEXT Value transfer Type reference (TYPE) TZNDESCTZN Time Zone Text 20120103

Method GET_TEXT_TIME_ZONE on class CL_MDG_BS_BP_SEARCH has no exception.

Method MAP_BP_DATA2SOA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_BP_SOA Call by reference Type reference (TYPE) MDG_BPBSC_DATA_BY_ELMNTS_RSP_7 BusinessPartnerBasicDataByElementsResponse: BusinessPartner 20111221
2 Importing IS_ADDRESS_DATA Call by reference Type reference (TYPE) BAPIBUS1006_ADDRESS SAP BP: BAPI Structure for Address Data 20111221
3 Importing IS_BUT000 Call by reference Type reference (TYPE) BUT000 BP: General data I 20111221
4 Importing IS_CENTRAL Call by reference Type reference (TYPE) BAPIBUS1006_CENTRAL General BP Data, Independent of Business Partner Category 20111221
5 Importing IS_CENTRAL_GROUP Call by reference Type reference (TYPE) BAPIBUS1006_CENTRAL_GROUP SAP BP: BAPI Structure for Group Data 20111221
6 Importing IS_CENTRAL_ORG Call by reference Type reference (TYPE) BAPIBUS1006_CENTRAL_ORGAN SAP BP: BAPI Structure for Organization Data 20111221
7 Importing IS_CENTRAL_PERS Call by reference Type reference (TYPE) BAPIBUS1006_CENTRAL_PERSON SAP BP: BAPI Structure for Personal Data 20111221

Method MAP_BP_DATA2SOA on class CL_MDG_BS_BP_SEARCH has no exception.

Method MAP_RESULT_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SEARCH_RESULT Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_RESULT_T MDG table of search results 20100507
2 Importing IT_SEARCH_ATTRIBUTES Call by reference Type reference (TYPE) USMD_TS_SEL Sorted Table: Selection Condition (Range per Field) 20100507
3 Importing IT_USMD_RESULT Call by reference Type reference (TYPE) USMD_T_SEARCH_RESULT 20100507

Method MAP_RESULT_LIST on class CL_MDG_BS_BP_SEARCH has no exception.

Method READ_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20100813
2 Exporting ET_SEARCH_RESULT Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_RESULT_T MDG table of search results 20100817
3 Importing IT_MDG_SEARCH_RESULT Call by reference Type reference (TYPE) USMD_T_SEARCH_RESULT Search for Entities: Search Results 20100817
4 Importing IT_SEARCH_FIELDS Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_VAL_T MDG Search criteria 20100813

Method READ_ATTRIBUTES on class CL_MDG_BS_BP_SEARCH has no exception.

Method READ_BP_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20111221
2 Exporting ES_BP Call by reference Type reference (TYPE) MDG_BPBSC_DATA_BY_ELMNTS_RSP_7 Business Partner Data 20111221
3 Importing IV_PARTNER_ID Call by reference Type reference (TYPE) BU_PARTNER Business Partner Number 20111221

Method READ_BP_DATA on class CL_MDG_BS_BP_SEARCH has no exception.

Method RETURNTAB_HAS_ERROR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20111221
2 Returning RV_ERROR Value transfer Type reference (TYPE) BOOLE_D Flag: error occured 20111221

Method RETURNTAB_HAS_ERROR on class CL_MDG_BS_BP_SEARCH has no exception.

Method SEARCH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20100506
2 Exporting ET_SEARCH_RESULT Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_RESULT_T MDG table of search results 20100506
3 Importing IT_SEARCH_FIELDS Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_VAL_T MDG Search criteria 20100506
4 Importing IV_MAX_HITS Call by reference Type reference (TYPE) INT4 Natural number 20100506

Method SEARCH on class CL_MDG_BS_BP_SEARCH has no exception.

Method SEARCH2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_BUSINESS_PARTNERS Call by reference Type reference (TYPE) MDG_BPBSC_DATA_BY_ELMNTS_R_TAB Table with found Bus.Partners 20111221
2 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20111221
3 Importing IT_SEARCH_FIELDS Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_VAL_T MDG Search criteria 20111221
4 Importing IV_BUSINESS_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Requesting Business System 20120823
5 Importing IV_MAX_HITS Call by reference Type reference (TYPE) INT4 Max.Records 20111221

Method SEARCH2 on class CL_MDG_BS_BP_SEARCH has no exception.

Method SEARCH_BP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) USMD_T_MESSAGE Messages 20100813
2 Exporting ET_SEARCH_RESULT Call by reference Type reference (TYPE) MDG_BS_DUPL_SEARCH_RESULT_T MDG table of search results 20100813
3 Importing IT_SEARCH_ATTRIBUTES Call by reference Type reference (TYPE) USMD_TS_SEL Sorted Table: Selection Condition (Range per Field) 20100813
4 Importing IV_ENTITY Call by reference Type reference (TYPE) USMD_ENTITY Entity Type 20100813
5 Importing IV_MAX_HITS Call by reference Type reference (TYPE) INT4 max. result lines 20100813

Method SEARCH_BP on class CL_MDG_BS_BP_SEARCH has no exception.

Method SEARCH_BY_ENTITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) USMD_T_MESSAGE Messages 20100506
2 Exporting ET_USMD_SEARCH_RESULT Call by reference Type reference (TYPE) USMD_T_SEARCH_RESULT MDG table of search results 20100813
3 Importing IT_SEARCH_ATTRIBUTES Call by reference Type reference (TYPE) USMD_TS_SEL Sorted Table: Selection Condition (Range per Field) 20100506
4 Importing IV_BUSINESS_SYSTEM Call by reference Type reference (TYPE) MDG_BUSINESS_SYSTEM Requesting Business System 20120823
5 Importing IV_ENTITY Call by reference Type reference (TYPE) USMD_ENTITY Entity Type 20100506
6 Importing IV_MAX_HITS Call by reference Type reference (TYPE) INT4 max. result lines 20100616

Method SEARCH_BY_ENTITY on class CL_MDG_BS_BP_SEARCH has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 703