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 | ![]() |
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 | ![]() |
Static Attribute | Private | Object reference (TYPE REF TO) | CL_WRF_APC_CALC | Price Calculation Support in OAPC | 20061212 | ||
2 | ![]() |
Static Attribute | Private | Type reference (TYPE) | LFA1 | Vendor Master (General Section) | 20061212 | ||
3 | ![]() |
Static Attribute | Private | Type reference (TYPE) | LFM1 | Vendor master record purchasing organization data | 20061212 | ||
4 | ![]() |
Static Attribute | Private | Type reference (TYPE) | LFM2 | Vendor Master Record: Purchasing Data | 20061212 | ||
5 | ![]() |
Static Attribute | Private | Type reference (TYPE) | M_CURR_BUF_PUR_LTTY | Currency Buffer Vendors | 20060411 | ||
6 | ![]() |
Static Attribute | Private | Type reference (TYPE) | M_CURR_BUF_SD_LTTY | Currency Buffer Sales | 20060411 | ||
7 | ![]() |
Instance attribute | Private | Type reference (TYPE) | WRF_APC_DCHAIN_TTY | Table Type for Distribution Chain Information | 20061212 | ||
8 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_WRF_APC_T=>T001K_TTY | 20061212 | |||
9 | ![]() |
Instance attribute | Private | Type reference (TYPE) | WRF_APC_T024E_TTY | Table Type for T024E | 20061212 | ||
10 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_WRF_APC_T=>T024W_TTY | 20061212 | |||
11 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_WRF_APC_T=>TVKOV_TTY | 20061212 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Method | Check a single distribution chain | 20061212 |
2 | ![]() |
Static method | Public | Method | Check vendor | 20061212 |
3 | ![]() |
Static method | Public | Constructor | 20061212 | |
4 | ![]() |
Static method | Public | Method | Compare two given prices | 20060411 |
5 | ![]() |
Static method | Public | Method | Convert a given price into any currency | 20061212 |
6 | ![]() |
Static method | Public | Method | onvert a given price into local currency | 20060914 |
7 | ![]() |
Static method | Public | Method | Convert a given price into pricing currency | 20061212 |
8 | ![]() |
Static method | Public | Method | Free the instance of the class | 20061212 |
9 | ![]() |
Static method | Public | Method | Get Currencies | 20060411 |
10 | ![]() |
Instance method | Public | Method | Get distribution chain from buffer / read if not available | 20061212 |
11 | ![]() |
Static method | Public | Method | Get the instance of the class | 20061212 |
12 | ![]() |
Static method | Public | Method | Get Local Currency | 20060411 |
13 | ![]() |
Static method | Public | Method | Get Sales Currency | 20060411 |
14 | ![]() |
Instance method | Public | Method | Get T001K data from buffer / read if not available | 20061212 |
15 | ![]() |
Instance method | Public | Method | Get T024E data from buffer / read if not available | 20061212 |
16 | ![]() |
Instance method | Public | Method | Get T024W data from buffer / read if not available | 20061212 |
17 | ![]() |
Instance method | Public | Method | Get TVKOV data from buffer / read if not available | 20061212 |
18 | ![]() |
Instance method | Private | Method | Read detailed information about a distribution chain | 20061212 |
19 | ![]() |
Instance method | Private | Method | Update a distribution chain with a purchasing organisation | 20061212 |
20 | ![]() |
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 | ![]() |
E_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20061212 | ||
2 | ![]() |
IT_T024E | Call by reference | Type reference (TYPE) | WRF_APC_T024E_TTY | Table Type for T024E | 20061212 | ||
3 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20061212 | ||
4 | ![]() |
I_READ_DB | Call by reference | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20061212 | |
5 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20061212 | ||
6 | ![]() |
I_VLFKZ | Call by reference | Type reference (TYPE) | VLFKZ | Plant category | 20061212 | ||
7 | ![]() |
I_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20061212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20061212 |
Method CHECK_VENDOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
E_VENDOR_EKORG_OK | Call by reference | Type reference (TYPE) | FLAG | General Flag | 20061212 | ||
2 | ![]() |
E_VENDOR_MATNR_OK | Call by reference | Type reference (TYPE) | FLAG | General Flag | 20061212 | ||
3 | ![]() |
E_VEN_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20061212 | ||
4 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20061212 | ||
5 | ![]() |
I_LIFNR | Call by reference | Type reference (TYPE) | LIFNR | Account Number of Vendor or Creditor | 20061212 | ||
6 | ![]() |
I_MATNR | Call by reference | Type reference (TYPE) | MATNR | Material Number | 20061212 | ||
7 | ![]() |
I_PRDAT | Call by reference | Type reference (TYPE) | DATUM | SY-DATLO | Date | 20061212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
E_DIFFERENT | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20060411 | ||
2 | ![]() |
E_HWAER | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20060411 | ||
3 | ![]() |
E_PRICE1 | Call by reference | Type reference (TYPE) | WRF_PRICE_BASIC | Operational APC: Basic Purchase Price | 20060411 | ||
4 | ![]() |
E_PRICE2 | Call by reference | Type reference (TYPE) | WRF_PRICE_BASIC | Operational APC: Basic Purchase Price | 20060411 | ||
5 | ![]() |
I_CURR1 | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20060411 | ||
6 | ![]() |
I_CURR2 | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20060411 | ||
7 | ![]() |
I_PRDAT | Call by reference | Type reference (TYPE) | DATUM | SY-DATLO | Date | 20060411 | |
8 | ![]() |
I_PRICE1 | Call by reference | Type reference (TYPE) | WRF_PRICE_BASIC | Operational APC: Basic Purchase Price | 20060411 | ||
9 | ![]() |
I_PRICE2 | Call by reference | Type reference (TYPE) | WRF_PRICE_BASIC | Operational APC: Basic Purchase Price | 20060411 | ||
10 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20060411 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20060411 |
Method CONVERT_TO_CURR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_RETURN | Call by reference | Type reference (TYPE) | WRF_APC_BAPIRET2_TTY | Error messages sent during Operational APC exceptions | 20061212 | ||
2 | ![]() |
E_AMOUNT | Call by reference | Type reference (TYPE) | ANY | 20061212 | |||
3 | ![]() |
I_AMOUNT | Call by reference | Type reference (TYPE) | ANY | 20061212 | |||
4 | ![]() |
I_CURR_SRC | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20061212 | ||
5 | ![]() |
I_CURR_TGT | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20061212 | ||
6 | ![]() |
I_LOCAL_CURR | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20061212 | ||
7 | ![]() |
I_PRDAT | Call by reference | Type reference (TYPE) | DATUM | SY-DATLO | Date | 20061212 | |
8 | ![]() |
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 | ![]() |
ET_RETURN | Call by reference | Type reference (TYPE) | WRF_APC_BAPIRET2_TTY | Error messages sent during Operational APC exceptions | 20060914 | ||
2 | ![]() |
E_AMOUNT | Call by reference | Type reference (TYPE) | ANY | Net price | 20060914 | ||
3 | ![]() |
E_LOCAL_CURR | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20060914 | ||
4 | ![]() |
I_AMOUNT | Call by reference | Type reference (TYPE) | ANY | Net price | 20060914 | ||
5 | ![]() |
I_CURR | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20060914 | ||
6 | ![]() |
I_LOCAL_CURR | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20060914 | ||
7 | ![]() |
I_PRDAT | Call by reference | Type reference (TYPE) | DATUM | SY-DATLO | Date | 20060914 | |
8 | ![]() |
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 | ![]() |
E_EKPNN | Call by reference | Type reference (TYPE) | ANY | 20061212 | |||
2 | ![]() |
E_KWAER | Call by reference | Type reference (TYPE) | KAWAER | Sales Pricing: Pricing Currency | 20061212 | ||
3 | ![]() |
I_EKPNN | Call by reference | Type reference (TYPE) | ANY | 20061212 | |||
4 | ![]() |
I_PRDAT | Call by reference | Type reference (TYPE) | DATUM | SY-DATLO | Date | 20061212 | |
5 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20061212 | ||
6 | ![]() |
I_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20061212 | ||
7 | ![]() |
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 | ![]() |
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 | ![]() |
E_KWAER | Call by reference | Type reference (TYPE) | KAWAER | Sales Pricing: Pricing Currency | 20060411 | ||
2 | ![]() |
E_LOCAL_CURR | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20060411 | ||
3 | ![]() |
E_VEN_CURR | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20060411 | ||
4 | ![]() |
E_VWAER | Call by reference | Type reference (TYPE) | VWAER | Sales currency | 20060411 | ||
5 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20060411 | ||
6 | ![]() |
I_LIFNR | Call by reference | Type reference (TYPE) | LIFNR | Account Number of Vendor or Creditor | 20060411 | ||
7 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20060411 | ||
8 | ![]() |
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 | ![]() |
ES_DCHAIN | Value transfer | Type reference (TYPE) | WRF_APC_DCHAIN_STY | Operational APC: Distribution Chain Information | 20061212 | ||
2 | ![]() |
I_READ_DB | Call by reference | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20061212 | |
3 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20061212 | ||
4 | ![]() |
I_VLFKZ | Call by reference | Type reference (TYPE) | VLFKZ | Plant category | 20061212 | ||
5 | ![]() |
I_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20061212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20061212 |
Method GET_INSTANCE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
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 | ![]() |
E_HWAER | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20060411 | ||
2 | ![]() |
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 | ![]() |
E_HWAER | Call by reference | Type reference (TYPE) | HWAER | Local Currency | 20060411 | ||
2 | ![]() |
E_KWAER | Call by reference | Type reference (TYPE) | KAWAER | Sales Pricing: Pricing Currency | 20060411 | ||
3 | ![]() |
E_VWAER | Call by reference | Type reference (TYPE) | VWAER | Sales currency | 20060411 | ||
4 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20060411 | ||
5 | ![]() |
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 | ![]() |
ES_T001K | Value transfer | Type reference (TYPE) | T001K | Valuation area | 20061212 | ||
2 | ![]() |
I_READ_DB | Call by reference | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20061212 | |
3 | ![]() |
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 | ![]() |
ES_T024E | Value transfer | Type reference (TYPE) | T024E | Purchasing Organizations | 20061212 | ||
2 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | T024E-EKORG | Purchasing Organization | 20061212 | ||
3 | ![]() |
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 | ![]() |
ES_T024W | Value transfer | Type reference (TYPE) | T024W | Valid Purchasing Organizations for Plant | 20061212 | ||
2 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | T024W-EKORG | Purchasing Organization | 20061212 | ||
3 | ![]() |
I_READ_DB | Call by reference | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20061212 | |
4 | ![]() |
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 | ![]() |
ES_TVKOV | Value transfer | Type reference (TYPE) | TVKOV | Org. Unit: Distribution Channels per Sales Organization | 20061212 | ||
2 | ![]() |
I_READ_DB | Call by reference | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20061212 | |
3 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | TVKOV-VKORG | Sales Organization | 20061212 | ||
4 | ![]() |
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 | ![]() |
E_KWAER | Call by reference | Type reference (TYPE) | KAWAER | Sales Pricing: Pricing Currency | 20061212 | ||
2 | ![]() |
E_VLGWK | Call by reference | Type reference (TYPE) | VLGWK | Sales Pricing: Reference Plant | 20061212 | ||
3 | ![]() |
E_VWAER | Call by reference | Type reference (TYPE) | VWAER | Sales currency | 20061212 | ||
4 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20061212 | ||
5 | ![]() |
I_VTWEG | Call by reference | Type reference (TYPE) | VTWEG | Distribution Channel | 20061212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20061212 |
Method UPDATE_DCHN_PUR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20061212 | ||
2 | ![]() |
I_VKORG | Call by reference | Type reference (TYPE) | VKORG | Sales Organization | 20061212 | ||
3 | ![]() |
I_VLFKZ | Call by reference | Type reference (TYPE) | VLFKZ | Plant category | 20061212 | ||
4 | ![]() |
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 | ![]() |
ES_LFA1 | Call by reference | Type reference (TYPE) | LFA1 | Vendor Master (General Section) | 20061212 | ||
2 | ![]() |
ES_LFM1 | Call by reference | Type reference (TYPE) | LFM1 | Vendor master record purchasing organization data | 20061212 | ||
3 | ![]() |
ES_LFM2 | Call by reference | Type reference (TYPE) | LFM2 | Vendor Master Record: Purchasing Data | 20061212 | ||
4 | ![]() |
I_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20061212 | ||
5 | ![]() |
I_LIFNR | Call by reference | Type reference (TYPE) | LIFNR | Account Number of Vendor or Creditor | 20061212 | ||
6 | ![]() |
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 |