SAP ABAP Class CL_CRM_MAINT_STOCK_TRESHOLDS (class to maintain Stock Tresholds for CRM)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO (Application Component) Logistics - General
     CPB_PRODUCT_MOBILE (Package) CPB: PRODUCT DATA for CRM/MSA
Properties
Class CL_CRM_MAINT_STOCK_TRESHOLDS  
Short Description class to maintain Stock Tresholds for CRM    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package CPB_PRODUCT_MOBILE   CPB: PRODUCT DATA for CRM/MSA 
Created 20091111   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_CRM_MAINT_STOCK_TRESHOLDS has no forward declaration.
Interfaces
Class CL_CRM_MAINT_STOCK_TRESHOLDS has no interface implemented.
Friends
Class CL_CRM_MAINT_STOCK_TRESHOLDS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_CPB_PRODUCT_MOBILE Constant Public Type reference (TYPE) MSGID 'CPB_PRODUCT_MOBILE' Messageclass 20091125
2 GC_KLAH_KLART_026 Constant Public Type reference (TYPE) KLAH-KLART '026' Class Type 20091117
3 GC_WRONG_CONSUMER Constant Protected Type reference (TYPE) CHAR40 'wrong_consumer' Character field of length 40 20091119
4 MR_MESSAGE Instance attribute Protected Object reference (TYPE REF TO) BAPICRMMSG BAPI Structure: Messages per Data Record 20091119
5 MX_CPB_PRODUCT_MOBILE Instance attribute Protected Object reference (TYPE REF TO) CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20091123
Methods
# Method Level Visibility Method type Description Created on
1 CALL_MAINTENANCE_VIEW Instance method Public Method call fb 'VIEW_MAINTENANCE_GIVEN_DATA' 20100107
2 CHECK_ORG_DATA Instance method Public Method verify sales organisation and distribution channel 20091119
3 CHECK_THRESHOLDS_DATA Instance method Public Method check the thresholds values 20091124
4 COLLECT_MESSAGES Instance method Public Method Store transferred message 20100303
5 DISPLAY_MESSAGES Instance method Public Method Display of collected messages and respective long texts 20100303
6 INITIALIZE_MESSAGES Instance method Public Method Delete messages collected up to now, collect future messages 20100303
7 PREPARE_MATERIAL_VIEW Instance method Public Method call FM to display the material view 20100107
8 PREPARE_MERCHGR_VIEW Instance method Public Method call FM to display the merchgr view 20100107
9 RAISE_EXCEPTION Instance method Public Method Raise an Exception 20100107
10 SEL_ARTICLES_FOR_CPCRMSTOCK1 Instance method Public Method sel articles from db with merch gr and article range 20091111
11 SEL_MERCH_GR_FOR_CPCRMSTOCK2 Instance method Public Method sel merch gr from db with merch gr hier and merch gr range 20091111
Events
Class CL_CRM_MAINT_STOCK_TRESHOLDS has no event.
Types
Class CL_CRM_MAINT_STOCK_TRESHOLDS has no local type.
Method Signatures

Method CALL_MAINTENANCE_VIEW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TOTAL Call by reference Type reference (TYPE) STANDARD TABLE 20100107
2 Exporting EV_SUBRC Call by reference Type reference (TYPE) SY-SUBRC Return Value of ABAP Statements 20100107
3 Importing IV_MAINTVIEW Call by reference Type reference (TYPE) VIMDESC-MAINTVIEW Name of SAP table view 20100107
4 Importing IV_MODE Call by reference Type reference (TYPE) FLAG General Flag 20100107

Method CALL_MAINTENANCE_VIEW on class CL_CRM_MAINT_STOCK_TRESHOLDS has no exception.

Method CHECK_ORG_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CONSUMER Call by reference Type reference (TYPE) CPCRMSTOCK2-CONSUMER User of R/3 Adaptor Functionality 20091119
2 Importing IV_DISTR_CHANNEL Call by reference Type reference (TYPE) CPCRMSTOCK2-VTWEG Distribution Channel 20091119
3 Importing IV_SALES_ORG Call by reference Type reference (TYPE) CPCRMSTOCK2-VKORG Sales Organization 20091119
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20091123

Method CHECK_THRESHOLDS_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CRITICAL_VALUE Call by reference Type reference (TYPE) CPCRMSTOCK1-VALUE1 Critical stock value 20091124
2 Importing IV_VERY_CRITICAL_VALUE Call by reference Type reference (TYPE) CPCRMSTOCK1-VALUE2 Very critical stock value 20100114
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20091125

Method COLLECT_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MESSAGENO Call by reference Type reference (TYPE) BAPICRMMSG-MESSAGENO Message Number 20100303
2 Importing IV_MESSAGE_V1 Call by reference Type reference (TYPE) BAPICRMMSG-MESSAGE_V1 Message Variable 20100303
3 Importing IV_MESSAGE_V2 Call by reference Type reference (TYPE) BAPICRMMSG-MESSAGE_V2 Message Variable 20100303
4 Importing IV_MESSAGE_V3 Call by reference Type reference (TYPE) BAPICRMMSG-MESSAGE_V3 Message Variable 20100303
5 Importing IV_MESSAGE_V4 Call by reference Type reference (TYPE) BAPICRMMSG-MESSAGE_V4 Message Variable 20100303
6 Importing IV_MSG_AREA Call by reference Type reference (TYPE) BAPICRMMSG-MSG_AREA Application Area Messages 20100303
7 Importing IV_MSG_TYPE Call by reference Type reference (TYPE) BAPICRMMSG-MSG_TYPE Message Type: S Success, E Error, W Warning, I Info, A Abort 20100303
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100303

Method DISPLAY_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CORRECTIONS_WANTED Call by reference Type reference (TYPE) CHAR1 Single-Character Indicator 20100303
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100303

Method INITIALIZE_MESSAGES Signature

Method INITIALIZE_MESSAGES on class CL_CRM_MAINT_STOCK_TRESHOLDS has no parameter.
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100303

Method PREPARE_MATERIAL_VIEW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CORRECTIONS_WANTED Call by reference Type reference (TYPE) FLAG General Flag 20100303
2 Exporting EV_FCODE Call by reference Type reference (TYPE) SY-UCOMM Function code that PAI triggered 20100107
3 Importing IT_MATNR Call by reference Type reference (TYPE) MD_T_MATNR 20100107
4 Importing IV_CONSUMER Call by reference Type reference (TYPE) CPCRMSTOCK2-CONSUMER 20100107
5 Importing IV_DISTR_CHANNEL Call by reference Type reference (TYPE) CPCRMSTOCK2-VTWEG 20100107
6 Importing IV_MAINTVIEW Call by reference Type reference (TYPE) VIMDESC-MAINTVIEW 20100107
7 Importing IV_OVERWRITE Call by reference Type reference (TYPE) FLAG 20100107
8 Importing IV_SALES_ORG Call by reference Type reference (TYPE) CPCRMSTOCK2-VKORG 20100107
9 Importing IV_STOCK_VAL1 Call by reference Type reference (TYPE) CPCRMSTOCK2-VALUE1 20100107
10 Importing IV_STOCK_VAL2 Call by reference Type reference (TYPE) CPCRMSTOCK2-VALUE2 20100107
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100107

Method PREPARE_MERCHGR_VIEW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CORRECTIONS_WANTED Call by reference Type reference (TYPE) FLAG General Flag 20100303
2 Exporting EV_FCODE Call by reference Type reference (TYPE) SY-UCOMM Function code that PAI triggered 20100107
3 Importing IT_MERCHGR Call by reference Type reference (TYPE) CRM_T_MERCHGR Table type for field REB_WWGHIE 20100107
4 Importing IV_CONSUMER Call by reference Type reference (TYPE) CPCRMSTOCK2-CONSUMER User of R/3 Adaptor Functionality 20100107
5 Importing IV_DISTR_CHANNEL Call by reference Type reference (TYPE) CPCRMSTOCK2-VTWEG Distribution Channel 20100107
6 Importing IV_MAINTVIEW Call by reference Type reference (TYPE) VIMDESC-MAINTVIEW Name of SAP table view 20100107
7 Importing IV_OVERWRITE Call by reference Type reference (TYPE) FLAG General Flag 20100107
8 Importing IV_QUANTITY_UNIT Call by reference Type reference (TYPE) CPCRMSTOCK2-MEINS Base Unit of Measure 20100107
9 Importing IV_SALES_ORG Call by reference Type reference (TYPE) CPCRMSTOCK2-VKORG Sales Organization 20100107
10 Importing IV_STOCK_VAL1 Call by reference Type reference (TYPE) CPCRMSTOCK2-VALUE1 Critical stock value 20100107
11 Importing IV_STOCK_VAL2 Call by reference Type reference (TYPE) CPCRMSTOCK2-VALUE2 Very critical stock value 20100107
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100107

Method RAISE_EXCEPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_IGNORE_SY Call by reference Type reference (TYPE) CHAR1 ' ' Single-Character Indicator 20100107
2 Importing IV_REASON Call by reference Type reference (TYPE) CHAR40 ' ' Character field of length 40 20100107
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20100107

Method SEL_ARTICLES_FOR_CPCRMSTOCK1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MATNR Call by reference Type reference (TYPE) MD_T_MATNR Table Type: Material Number 20091116
2 Importing IR_MATNR Call by reference Type reference (TYPE) MD_RANGE_T_MATNR Range Table for Material Number 20091116
3 Importing IR_MERCHGR Call by reference Type reference (TYPE) WRF_AT_MATKL_RTTY Table Type for Material Group Range 20091117
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20091123

Method SEL_MERCH_GR_FOR_CPCRMSTOCK2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MERCHGR Call by reference Type reference (TYPE) CRM_T_MERCHGR Table Type: Material Number 20091117
2 Importing IR_MERCHGR Call by reference Type reference (TYPE) WRF_AT_MATKL_RTTY Table Type for Material Group Range 20091117
3 Importing IR_WGHIER Call by reference Type reference (TYPE) CRM_TR_WGHIER Table Type for range structure 'CRM_SR_WGHIER' 20091116
# Exception Resumable Description Created on
1 CX_CPB_PRODUCT_MOBILE CRM - Trade Integration 20091123
History
Last changed by/on SAP  20110908 
SAP Release Created in 605