SAP ABAP Class CL_WRF_APC_CALC (Price Calculation Support in OAPC)
Hierarchy
EA-RETAIL (Software Component) SAP Enterprise Extension Retail
   LO-MD-RA (Application Component) Assortment
     WRF_APC (Package) Operational Assortment Planning and Control
Properties
Class CL_WRF_APC_CALC  
Short Description Price Calculation Support in OAPC    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class WRF_APC    
Program status P  SAP Standard Production Program 
Category 0   
Package WRF_APC   Operational Assortment Planning and Control 
Created 20060411   SAP 
Last change 20070912   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_WRF_APC_T Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_WRF_APC_CALC has no interface implemented.
Friends
Class CL_WRF_APC_CALC has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GRO_CALC Static Attribute Private Object reference (TYPE REF TO) CL_WRF_APC_CALC Price Calculation Support in OAPC 20061212
2 MS_LFA1 Static Attribute Private Type reference (TYPE) LFA1 Vendor Master (General Section) 20061212
3 MS_LFM1 Static Attribute Private Type reference (TYPE) LFM1 Vendor master record purchasing organization data 20061212
4 MS_LFM2 Static Attribute Private Type reference (TYPE) LFM2 Vendor Master Record: Purchasing Data 20061212
5 MT_CURR_BUF_PUR Static Attribute Private Type reference (TYPE) M_CURR_BUF_PUR_LTTY Currency Buffer Vendors 20060411
6 MT_CURR_BUF_SD Static Attribute Private Type reference (TYPE) M_CURR_BUF_SD_LTTY Currency Buffer Sales 20060411
7 MT_DCHN_ALL Instance attribute Private Type reference (TYPE) WRF_APC_DCHAIN_TTY Table Type for Distribution Chain Information 20061212
8 MT_T001K Instance attribute Private Type reference (TYPE) IF_WRF_APC_T=>T001K_TTY 20061212
9 MT_T024E Instance attribute Private Type reference (TYPE) WRF_APC_T024E_TTY Table Type for T024E 20061212
10 MT_T024W Instance attribute Private Type reference (TYPE) IF_WRF_APC_T=>T024W_TTY 20061212
11 MT_TVKOV Instance attribute Private Type reference (TYPE) IF_WRF_APC_T=>TVKOV_TTY 20061212
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_DCHN_SINGLE Instance method Public Method Check a single distribution chain 20061212
2 CHECK_VENDOR Static method Public Method Check vendor 20061212
3 CLASS_CONSTRUCTOR Static method Public Constructor 20061212
4 COMPARE_PRICES Static method Public Method Compare two given prices 20060411
5 CONVERT_TO_CURR Static method Public Method Convert a given price into any currency 20061212
6 CONVERT_TO_LOCAL_CURR Static method Public Method onvert a given price into local currency 20060914
7 CONVERT_TO_PRICING_CURR Static method Public Method Convert a given price into pricing currency 20061212
8 FREE_INSTANCE Static method Public Method Free the instance of the class 20061212
9 GET_CURRENCIES Static method Public Method Get Currencies 20060411
10 GET_DCHAIN Instance method Public Method Get distribution chain from buffer / read if not available 20061212
11 GET_INSTANCE Static method Public Method Get the instance of the class 20061212
12 GET_LOCAL_CURR Static method Public Method Get Local Currency 20060411
13 GET_SALES_CURR Static method Public Method Get Sales Currency 20060411
14 GET_T001K Instance method Public Method Get T001K data from buffer / read if not available 20061212
15 GET_T024E Instance method Public Method Get T024E data from buffer / read if not available 20061212
16 GET_T024W Instance method Public Method Get T024W data from buffer / read if not available 20061212
17 GET_TVKOV Instance method Public Method Get TVKOV data from buffer / read if not available 20061212
18 READ_DETAIL_DCHN Instance method Private Method Read detailed information about a distribution chain 20061212
19 UPDATE_DCHN_PUR Instance method Private Method Update a distribution chain with a purchasing organisation 20061212
20 VENDOR_DATA_READ Static method Public Method Read Data for Given Vendor / Given Organizational Level 20061212
Events
Class CL_WRF_APC_CALC has no event.
Types
Class CL_WRF_APC_CALC has no local type.
Method Signatures

Method CHECK_DCHN_SINGLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20061212
2 Importing IT_T024E Call by reference Type reference (TYPE) WRF_APC_T024E_TTY Table Type for T024E 20061212
3 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20061212
4 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212
5 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212
6 Importing I_VLFKZ Call by reference Type reference (TYPE) VLFKZ Plant category 20061212
7 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20061212
# Exception Resumable Description Created on
1 CX_WRF_APC_ROOT_EXCEPTIONS 20061212

Method CHECK_VENDOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_VENDOR_EKORG_OK Call by reference Type reference (TYPE) FLAG General Flag 20061212
2 Exporting E_VENDOR_MATNR_OK Call by reference Type reference (TYPE) FLAG General Flag 20061212
3 Exporting E_VEN_CURRENCY Call by reference Type reference (TYPE) WAERS Currency Key 20061212
4 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20061212
5 Importing I_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20061212
6 Importing I_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20061212
7 Importing I_PRDAT Call by reference Type reference (TYPE) DATUM SY-DATLO Date 20061212
# Exception Resumable Description Created on
1 CX_WRF_APC_ROOT_EXCEPTIONS 20061212

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_WRF_APC_CALC has no parameter.
Method CLASS_CONSTRUCTOR on class CL_WRF_APC_CALC has no exception.

Method COMPARE_PRICES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_DIFFERENT Call by reference Type reference (TYPE) XFELD Checkbox 20060411
2 Exporting E_HWAER Call by reference Type reference (TYPE) HWAER Local Currency 20060411
3 Exporting E_PRICE1 Call by reference Type reference (TYPE) WRF_PRICE_BASIC Operational APC: Basic Purchase Price 20060411
4 Exporting E_PRICE2 Call by reference Type reference (TYPE) WRF_PRICE_BASIC Operational APC: Basic Purchase Price 20060411
5 Importing I_CURR1 Call by reference Type reference (TYPE) WAERS Currency Key 20060411
6 Importing I_CURR2 Call by reference Type reference (TYPE) WAERS Currency Key 20060411
7 Importing I_PRDAT Call by reference Type reference (TYPE) DATUM SY-DATLO Date 20060411
8 Importing I_PRICE1 Call by reference Type reference (TYPE) WRF_PRICE_BASIC Operational APC: Basic Purchase Price 20060411
9 Importing I_PRICE2 Call by reference Type reference (TYPE) WRF_PRICE_BASIC Operational APC: Basic Purchase Price 20060411
10 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20060411
# Exception Resumable Description Created on
1 CX_WRF_APC_ROOT_EXCEPTIONS 20060411

Method CONVERT_TO_CURR 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) WRF_APC_BAPIRET2_TTY Error messages sent during Operational APC exceptions 20061212
2 Exporting E_AMOUNT Call by reference Type reference (TYPE) ANY 20061212
3 Importing I_AMOUNT Call by reference Type reference (TYPE) ANY 20061212
4 Importing I_CURR_SRC Call by reference Type reference (TYPE) WAERS Currency Key 20061212
5 Importing I_CURR_TGT Call by reference Type reference (TYPE) WAERS Currency Key 20061212
6 Importing I_LOCAL_CURR Call by reference Type reference (TYPE) HWAER Local Currency 20061212
7 Importing I_PRDAT Call by reference Type reference (TYPE) DATUM SY-DATLO Date 20061212
8 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212

Method CONVERT_TO_CURR on class CL_WRF_APC_CALC has no exception.

Method CONVERT_TO_LOCAL_CURR 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) WRF_APC_BAPIRET2_TTY Error messages sent during Operational APC exceptions 20060914
2 Exporting E_AMOUNT Call by reference Type reference (TYPE) ANY Net price 20060914
3 Exporting E_LOCAL_CURR Call by reference Type reference (TYPE) HWAER Local Currency 20060914
4 Importing I_AMOUNT Call by reference Type reference (TYPE) ANY Net price 20060914
5 Importing I_CURR Call by reference Type reference (TYPE) WAERS Currency Key 20060914
6 Importing I_LOCAL_CURR Call by reference Type reference (TYPE) HWAER Local Currency 20060914
7 Importing I_PRDAT Call by reference Type reference (TYPE) DATUM SY-DATLO Date 20060914
8 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212

Method CONVERT_TO_LOCAL_CURR on class CL_WRF_APC_CALC has no exception.

Method CONVERT_TO_PRICING_CURR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_EKPNN Call by reference Type reference (TYPE) ANY 20061212
2 Exporting E_KWAER Call by reference Type reference (TYPE) KAWAER Sales Pricing: Pricing Currency 20061212
3 Importing I_EKPNN Call by reference Type reference (TYPE) ANY 20061212
4 Importing I_PRDAT Call by reference Type reference (TYPE) DATUM SY-DATLO Date 20061212
5 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212
6 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20061212
7 Importing I_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20061212

Method CONVERT_TO_PRICING_CURR on class CL_WRF_APC_CALC has no exception.

Method FREE_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ONLY_BUFFER Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212

Method FREE_INSTANCE on class CL_WRF_APC_CALC has no exception.

Method GET_CURRENCIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KWAER Call by reference Type reference (TYPE) KAWAER Sales Pricing: Pricing Currency 20060411
2 Exporting E_LOCAL_CURR Call by reference Type reference (TYPE) WAERS Currency Key 20060411
3 Exporting E_VEN_CURR Call by reference Type reference (TYPE) WAERS Currency Key 20060411
4 Exporting E_VWAER Call by reference Type reference (TYPE) VWAER Sales currency 20060411
5 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20060411
6 Importing I_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20060411
7 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20060411
8 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20060411

Method GET_CURRENCIES on class CL_WRF_APC_CALC has no exception.

Method GET_DCHAIN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_DCHAIN Value transfer Type reference (TYPE) WRF_APC_DCHAIN_STY Operational APC: Distribution Chain Information 20061212
2 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212
3 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212
4 Importing I_VLFKZ Call by reference Type reference (TYPE) VLFKZ Plant category 20061212
5 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20061212
# Exception Resumable Description Created on
1 CX_WRF_APC_ROOT_EXCEPTIONS 20061212

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ERO_CALC Value transfer Object reference (TYPE REF TO) CL_WRF_APC_CALC Price Calculation Support in OAPC 20061212

Method GET_INSTANCE on class CL_WRF_APC_CALC has no exception.

Method GET_LOCAL_CURR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_HWAER Call by reference Type reference (TYPE) HWAER Local Currency 20060411
2 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20060411

Method GET_LOCAL_CURR on class CL_WRF_APC_CALC has no exception.

Method GET_SALES_CURR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_HWAER Call by reference Type reference (TYPE) HWAER Local Currency 20060411
2 Exporting E_KWAER Call by reference Type reference (TYPE) KAWAER Sales Pricing: Pricing Currency 20060411
3 Exporting E_VWAER Call by reference Type reference (TYPE) VWAER Sales currency 20060411
4 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20060411
5 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20060411

Method GET_SALES_CURR on class CL_WRF_APC_CALC has no exception.

Method GET_T001K Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_T001K Value transfer Type reference (TYPE) T001K Valuation area 20061212
2 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212
3 Importing I_WERKS Call by reference Type reference (TYPE) T001W-WERKS Plant 20061212

Method GET_T001K on class CL_WRF_APC_CALC has no exception.

Method GET_T024E Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_T024E Value transfer Type reference (TYPE) T024E Purchasing Organizations 20061212
2 Importing I_EKORG Call by reference Type reference (TYPE) T024E-EKORG Purchasing Organization 20061212
3 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212

Method GET_T024E on class CL_WRF_APC_CALC has no exception.

Method GET_T024W Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_T024W Value transfer Type reference (TYPE) T024W Valid Purchasing Organizations for Plant 20061212
2 Importing I_EKORG Call by reference Type reference (TYPE) T024W-EKORG Purchasing Organization 20061212
3 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212
4 Importing I_WERKS Call by reference Type reference (TYPE) T024W-WERKS Plant 20061212

Method GET_T024W on class CL_WRF_APC_CALC has no exception.

Method GET_TVKOV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ES_TVKOV Value transfer Type reference (TYPE) TVKOV Org. Unit: Distribution Channels per Sales Organization 20061212
2 Importing I_READ_DB Call by reference Type reference (TYPE) XFELD 'X' Checkbox 20061212
3 Importing I_VKORG Call by reference Type reference (TYPE) TVKOV-VKORG Sales Organization 20061212
4 Importing I_VTWEG Call by reference Type reference (TYPE) TVKOV-VTWEG Distribution Channel 20061212

Method GET_TVKOV on class CL_WRF_APC_CALC has no exception.

Method READ_DETAIL_DCHN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KWAER Call by reference Type reference (TYPE) KAWAER Sales Pricing: Pricing Currency 20061212
2 Exporting E_VLGWK Call by reference Type reference (TYPE) VLGWK Sales Pricing: Reference Plant 20061212
3 Exporting E_VWAER Call by reference Type reference (TYPE) VWAER Sales currency 20061212
4 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212
5 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20061212
# Exception Resumable Description Created on
1 CX_WRF_APC_ROOT_EXCEPTIONS 20061212

Method UPDATE_DCHN_PUR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20061212
2 Importing I_VKORG Call by reference Type reference (TYPE) VKORG Sales Organization 20061212
3 Importing I_VLFKZ Call by reference Type reference (TYPE) VLFKZ Plant category 20061212
4 Importing I_VTWEG Call by reference Type reference (TYPE) VTWEG Distribution Channel 20061212

Method UPDATE_DCHN_PUR on class CL_WRF_APC_CALC has no exception.

Method VENDOR_DATA_READ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_LFA1 Call by reference Type reference (TYPE) LFA1 Vendor Master (General Section) 20061212
2 Exporting ES_LFM1 Call by reference Type reference (TYPE) LFM1 Vendor master record purchasing organization data 20061212
3 Exporting ES_LFM2 Call by reference Type reference (TYPE) LFM2 Vendor Master Record: Purchasing Data 20061212
4 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20061212
5 Importing I_LIFNR Call by reference Type reference (TYPE) LIFNR Account Number of Vendor or Creditor 20061212
6 Importing I_WERKS Call by reference Type reference (TYPE) EWERK SPACE Plant 20061212

Method VENDOR_DATA_READ on class CL_WRF_APC_CALC has no exception.
History
Last changed by/on SAP  20070912 
SAP Release Created in