SAP ABAP Class CL_MMPUR_DB_UTILITY_GENERAL (Database Accesses from Purchasing Documents)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-PUR (Application Component) Purchasing
     MMPUR_BASE (Package) Purchasing: Basis Components
Meta Relationship - Used By
# Relationship type Used by Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_MMPUR_MEPO_DB_UTILITY MEPO Database Accesses 20060103
2 Inheritance (c INHERITING FROM c_ref)  CL_MMPUR_MEREQ_DB_UTILITY Database Accesses for MEREQ 20071211
Properties
Class CL_MMPUR_DB_UTILITY_GENERAL  
Short Description Database Accesses from Purchasing Documents    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MMPUR_BASE   Purchasing: Basis Components 
Created 20070323   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_MMPUR_DB_UTILITY_GENERAL has no forward declaration.
Interfaces
Class CL_MMPUR_DB_UTILITY_GENERAL has no interface implemented.
Friends
Class CL_MMPUR_DB_UTILITY_GENERAL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MS_KNA1 Static Attribute Private Type reference (TYPE) KNA1 Customer Master (General Part) 20130326
2 MS_LFA1 Static Attribute Private Type reference (TYPE) LFA1 Vendor Master (General Section) 20130326
3 MT_KNA1 Static Attribute Private Type reference (TYPE) MM_T_KNA1 20130326
4 MT_LFA1 Static Attribute Private Type reference (TYPE) MM_T_LFA1 20130326
5 MT_T001L Static Attribute Private Type reference (TYPE) LTY_STORAGE_LOC 20080610
6 MY_BATCH_MNGT Static Attribute Private See coding 20080721
7 MY_BLK_REASONS Static Attribute Private See coding Blocking Reason in Purchase Order 20081205
8 MY_EFUBE Static Attribute Private Type reference (TYPE) EFUBE Function Authorization: Purchase Order 20070323
9 MY_EXT_PROCESS Static Attribute Private Type reference (TYPE) LTY_EXT_PROCESS 20080502
10 MY_EXT_PROCESSES Static Attribute Private See coding Assignment of External Operation to CO Order 20080502
11 MY_OCI_DETAILS Static Attribute Private Type reference (TYPE) MMPUROCI_DETAILS Active Library 20070323
12 MY_PRODORD Static Attribute Private Type reference (TYPE) LTY_PRODORD 20080502
13 MY_PRODORDS Static Attribute Private See coding Production Orders 20080502
14 MY_SN_PROFILE Static Attribute Private Type reference (TYPE) T161SN Assignment of Serial Number Profile to Item Category 20071108
15 MY_SN_PROFILES Static Attribute Private Type reference (TYPE) LTY_T161SN Assignment of Serial Number Profile to Item Category 20071108
16 MY_T001 Static Attribute Private Type reference (TYPE) T001 Company Codes 20070323
17 MY_T001K Static Attribute Private Type reference (TYPE) T001K Valuation Area 20070323
18 MY_T001W Static Attribute Private Type reference (TYPE) LTY_T001W Table from T001w 20070323
19 MY_T005 Static Attribute Private Type reference (TYPE) T005 Countries 20070323
20 MY_T006A Static Attribute Private Type reference (TYPE) LTY_T006A Table: Language-Dependent Units of Measure 20070323
21 MY_T024E Static Attribute Private Type reference (TYPE) T024E Purchasing Organizations 20070323
22 MY_T134 Static Attribute Private Type reference (TYPE) LTY_T134 Material Type 20070323
23 MY_T160D Static Attribute Private Type reference (TYPE) T160D Function Authorizations: Purchase Order 20070323
24 MY_T160V Static Attribute Private Type reference (TYPE) T160V Default Values for Purchasing 20070323
25 MY_T161 Static Attribute Private Type reference (TYPE) T161 Purchasing Document Types 20070323
26 MY_T161S Static Attribute Private Type reference (TYPE) T161S Release Indicator, Purchase Requisition 20110221
27 MY_T161T Static Attribute Private Type reference (TYPE) T161T Texts for Purchasing Document Types 20070323
28 MY_T163K Static Attribute Private Type reference (TYPE) LTY_T163K Account Assignment Categories 20070323
29 MY_T163RCT Static Attribute Private Type reference (TYPE) T163RCT Description of Reason for Final Account Assignment Indicator 20090917
30 MY_T16FS Static Attribute Private Type reference (TYPE) T16FS Release Strategies 20110207
31 MY_TTXID Static Attribute Private Type reference (TYPE) MMPUR_T_TTXID Admissible Text IDs 20070323
32 MY_TTXIT Static Attribute Private Type reference (TYPE) MMPUR_T_TTXIT Long Texts for Text IDs 20070323
Methods
# Method Level Visibility Method type Description Created on
1 GET_BATCH_MANAGEMENT Static method Public Method Read Batch Requirement 20080721
2 GET_BLK_REASON Static method Public Method Read Blocking Reason 20081205
3 GET_CATALOG Static method Public Method Determine Active Catalog 20070323
4 GET_EXTERNAL_PROCESS Static method Public Method Read External Operation Number in CO Order 20080502
5 GET_SN_PROFILE Static method Public Method Read Serial Number Profile 20071108
6 GET_STORAGE_LOC Instance method Public Method Read Storage Location for Plant 20080610
7 GET_T001 Static method Public Method Read Company Code 20070323
8 GET_T001K Static method Public Method Read Valuation Area Data 20070323
9 GET_T001W Static method Public Method Read Plant Master 20070323
10 GET_T005 Static method Public Method Read Settings for Country 20070323
11 GET_T006A Static method Public Method Read Language-Dependent Units of Measure 20070323
12 GET_T024E Static method Public Method Read Purchasing Organization 20070323
13 GET_T134 Static method Public Method Read Material Types 20070323
14 GET_T160V Static method Public Method Read Default Values for Purchasing Management 20070323
15 GET_T161 Static method Public Method Read Document Type 20070323
16 GET_T161S Static method Public Method Read Release Indicator for Purchase Requisition 20110221
17 GET_T161T Static method Public Method Read Texts for Purchasing Document Types (Language-Dep.) 20070323
18 GET_T163K Static method Public Method Read Account Assignment Categories in Purchasing Document 20070323
19 GET_T163K_KZVBR Static method Public Method Read Account Assignment Categories for Consumption Posting 20090211
20 GET_T163RCT Static method Public Method Read Text of Reason for Final Account Assignment Indicator 20090917
21 GET_T16FS Static method Public Method Read Release Strategy 20110207
22 GET_TTXID Static method Public Method Read Texts 20070323
23 GET_TTXIT Static method Public Method 20070323
24 INITIALIZE Static method Public Method Initialization of DB Utility 20070323
Events
Class CL_MMPUR_DB_UTILITY_GENERAL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 LTY_BATCH_MNGT Private See coding 20080721 BEGIN OF lty_batch_mngt, matnr TYPE matnr, werks TYPE ewerk, xchpf TYPE xchpf, bwtty TYPE bwtty_d, END OF lty_batch_mngt
2 LTY_BLK_REASON Private See coding 20081205 BEGIN OF lty_blk_reason, blk_reason_id TYPE blk_reason_id, blk_read_only TYPE blk_read_only, blk_reason_txt TYPE blk_reason_txt, END OF lty_blk_reason
3 LTY_EXT_PROCESS Private See coding 20080502 BEGIN OF lty_ext_process, aufpl_ord TYPE exkn-aufpl_ord, aplzl_ord TYPE exkn-aplzl_ord, banfn TYPE eban-banfn, bnfpo TYPE eban-bnfpo, afpos TYPE cobl-afpos, ltxa1 TYPE afvc-ltxa1, END OF lty_ext_process
4 LTY_PRODORD Private See coding 20080502 BEGIN OF lty_prodord, aufnr TYPE exkn-aufnr, is_prodord TYPE mmpur_bool, END OF lty_prodord
5 LTY_STORAGE_LOC Private See coding 20080610 lty_storage_loc TYPE HASHED TABLE OF t001l WITH UNIQUE KEY werks lgort
6 LTY_T001W Private See coding 20070323 lty_t001w TYPE SORTED TABLE OF t001w WITH UNIQUE KEY werks
7 LTY_T006A Private See coding 20070323 lty_t006a TYPE SORTED TABLE OF t006a WITH UNIQUE KEY spras msehi
8 LTY_T134 Private See coding 20070323 lty_t134 TYPE SORTED TABLE OF t134 WITH UNIQUE KEY mtart
9 LTY_T161SN Private See coding 20071108 lty_t161sn TYPE SORTED TABLE OF t161sn WITH UNIQUE KEY bsart bstyp pstyp serail snbwg retpo
10 LTY_T163K Private See coding 20070323 lty_t163k TYPE SORTED TABLE OF t163k WITH UNIQUE KEY knttp
Method Signatures

Method GET_BATCH_MANAGEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_BWTTY Call by reference Type reference (TYPE) BWTTY_D Bewertungstyp 20080721
2 Exporting EX_XCHPF Call by reference Type reference (TYPE) XCHPF Kennzeichen für Chargenpflicht 20080721
3 Importing IM_MATNR Call by reference Type reference (TYPE) MATNR Materialnummer 20080721
4 Importing IM_PLANT Call by reference Type reference (TYPE) EWERK Werk 20080721

Method GET_BATCH_MANAGEMENT on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_BLK_REASON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_BLK_READ_ONLY Call by reference Type reference (TYPE) BLK_READ_ONLY Sperrgundbeschreibung im Beleg nicht änderbar 20081205
2 Exporting EX_BLK_REASON_TXT Call by reference Type reference (TYPE) BLK_REASON_TXT Sperrgrund - Text 20081205
3 Importing IM_BLK_REASON_ID Call by reference Type reference (TYPE) BLK_REASON_ID Sperrgrund - Bezeichner 20081205
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20081205

Method GET_CATALOG Signature

Method GET_CATALOG on class CL_MMPUR_DB_UTILITY_GENERAL has no parameter.
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_EXTERNAL_PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CH_COBLF Call by reference Type reference (TYPE) MMPUR_T_COBLF Tabellentyp für coblf 20080502
2 Exporting EX_AFPOS Call by reference Type reference (TYPE) CO_POSNR Nummer der Auftragsposition 20080502
3 Exporting EX_LTXA1 Call by reference Type reference (TYPE) LTXA1 Kurztext Vorgang 20080509
4 Importing IM_APLZL_ORD Call by reference Type reference (TYPE) CO_APLZL Allgemeiner Zähler des Auftrags 20080502
5 Importing IM_AUFNR Call by reference Type reference (TYPE) AUFNR Auftragsnummer 20080502
6 Importing IM_AUFPL_ORD Call by reference Type reference (TYPE) CO_AUFPL Plannummer zu Vorgängen im Auftrag 20080502
7 Importing IM_BANFN Call by reference Type reference (TYPE) BANFN Bestellanforderungsnummer 20080502
8 Importing IM_BNFPO Call by reference Type reference (TYPE) BNFPO Positionsnummer der Bestellanforderung 20080502

Method GET_EXTERNAL_PROCESS on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_SN_PROFILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_SN_PROFILE Call by reference Type reference (TYPE) T161SN Zuordnung Serialnummernprofil zu Positionstyp 20071108
2 Importing IM_DOC_CAT Call by reference Type reference (TYPE) T161SN-BSTYP Typ des Einkaufsbelegs 20071108
3 Importing IM_DOC_TYP Call by reference Type reference (TYPE) T161SN-BSART Einkaufsbelegart 20071108
4 Importing IM_ITEM_CAT Call by reference Type reference (TYPE) T161SN-PSTYP Positionstyp im Einkaufsbeleg 20071108
5 Importing IM_PROFILE Call by reference Type reference (TYPE) T161SN-SERAIL Serialnummernprofil 20071108
6 Importing IM_RET_ITEM Call by reference Type reference (TYPE) RETPO Retourenposition 20071108
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_ACTIVE Exception BAdI nicht aktiv 20080527
2 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20071108

Method GET_STORAGE_LOC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LGORT Call by reference Type reference (TYPE) LGORT_D Lagerort 20080610
2 Importing IV_PLANT Call by reference Type reference (TYPE) WERKS_D Werk 20080610
3 Returning RD_T001L Value transfer Object reference (TYPE REF TO) T001L Lagerorte 20080610

Method GET_STORAGE_LOC on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T001 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_BUKRS Call by reference Type reference (TYPE) BUKRS Buchungskreis 20070323
2 Returning RE_T001 Value transfer Type reference (TYPE) T001 Buchungskreise 20070323

Method GET_T001 on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T001K Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_BWKEY Call by reference Type reference (TYPE) BWKEY Bewertungskreis 20070323
2 Returning RE_T001K Value transfer Type reference (TYPE) T001K Bewertungskreis 20070323

Method GET_T001K on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T001W Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_WERKS Call by reference Type reference (TYPE) WERKS_D Werk 20070323
2 Returning RE_T001W Value transfer Object reference (TYPE REF TO) T001W Werke/Niederlassungen 20070323

Method GET_T001W on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T005 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_LAND1 Call by reference Type reference (TYPE) LAND1 Länderschlüssel 20070323
2 Returning RE_T005 Value transfer Type reference (TYPE) T005 Länder 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_T006A Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_MSEHI Call by reference Type reference (TYPE) MEINS Basismengeneinheit 20070323
2 Importing IM_SPRAS Call by reference Type reference (TYPE) SPRAS Sprachenschlüssel 20070323
3 Exporting RE_T006A Call by reference Type reference (TYPE) T006A Zuordnung interne - sprachabhängige Maßeinheit 20070323

Method GET_T006A on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T024E Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_EKORG Call by reference Type reference (TYPE) EKORG Einkaufsorganisation 20070323
2 Returning RE_T024E Value transfer Type reference (TYPE) T024E Einkaufsorganisationen 20070323

Method GET_T024E on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T134 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_MTART Call by reference Type reference (TYPE) MTART Materialart 20070323
2 Returning RE_T134 Value transfer Type reference (TYPE) T134 Materialarten 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_T160V Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RE_T160V Value transfer Type reference (TYPE) T160V Vorschlagswerte für Einkaufsabwicklung 20070323

Method GET_T160V on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T161 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_BSART Call by reference Type reference (TYPE) BSART Bestellart 20070323
2 Importing IM_BSTYP Call by reference Type reference (TYPE) BSTYP Typ des Einkaufsbelegs 20070323
3 Returning RE_T161 Value transfer Type reference (TYPE) T161 Einkaufsbelegarten 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_T161S Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_FRGKZ Call by reference Type reference (TYPE) FRGKZ Freigabekennzeichen Bestellanforderung Schlüssel 20110221
2 Returning RE_T161S Value transfer Type reference (TYPE) T161S Freigabekennzeichen Bestellanforderung Daten 20110221
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20110221

Method GET_T161T Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_LANGU Call by reference Type reference (TYPE) SY-LANGU Sprachenschlüssel der aktuellen Textumgebung 20070323
2 Returning RE_T161T Value transfer Type reference (TYPE) T161T Texte zu Einkaufsbelegarten 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_T163K Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_KNTTP Call by reference Type reference (TYPE) KNTTP Kontierungstyp 20070323
2 Returning RE_T163K Value transfer Type reference (TYPE) T163K Kontierungstypen im Einkaufsbeleg 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20070329

Method GET_T163K_KZVBR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KZVBR Call by reference Type reference (TYPE) EKVBR Kennzeichen Verbrauchsbuchung Einkauf 20090211
2 Returning RS_T163K Value transfer Type reference (TYPE) T163K Kontierungstypen im Einkaufsbeleg 20090211
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Purchasing: Not Found 20090211

Method GET_T163RCT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_AA_FINAL_RS_TEXT Call by reference Type reference (TYPE) AA_FINAL_REASON_TXT Text für Grund 20090917
2 Importing IM_AA_FINAL_REASON Call by reference Type reference (TYPE) AA_FINAL_REASON Grund 20090917
3 Importing IM_LANGU Call by reference Type reference (TYPE) SY-LANGU Sprachenschlüssel der aktuellen Textumgebung 20090917

Method GET_T163RCT on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_T16FS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_FRGGR Call by reference Type reference (TYPE) FRGGR Freigabegruppe 20110207
2 Importing IM_FRGSX Call by reference Type reference (TYPE) FRGSX Freigabestrategie 20110207
3 Returning RE_T16FS Value transfer Type reference (TYPE) T16FS Freigabestrategien 20110207
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_FOUND Exception Einkauf: nicht gefunden 20110207

Method GET_TTXID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_TDOBJECT Call by reference Type reference (TYPE) TDOBJECT Texte: Anwendungsobjekt 20070323
2 Importing IM_VORGA Call by reference Type reference (TYPE) T160-VORGA Vorgang 20070323
3 Returning RE_TTXID Value transfer Type reference (TYPE) MMPUR_T_TTXID Tabellentyp zulässiger Text IDs 20070323

Method GET_TTXID on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.

Method GET_TTXIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_TDID Call by reference Type reference (TYPE) TDID Text-ID 20070323
2 Importing IM_TDOBJECT Call by reference Type reference (TYPE) TDOBJECT Texte: Anwendungsobjekt 20070323
3 Returning RE_TDTEXT Value transfer Type reference (TYPE) TDTEXT Kurztext 20070323
# Exception Resumable Description Created on
1 CX_MMPUR_ROOT Exception Einkauf 20070329

Method INITIALIZE Signature

Method INITIALIZE on class CL_MMPUR_DB_UTILITY_GENERAL has no parameter.
Method INITIALIZE on class CL_MMPUR_DB_UTILITY_GENERAL has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 604