SAP ABAP Class CL_WSD_PUR_PRICE_HANDLER (Price handler for Purchasing)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   SD-MD-MM-CS (Application Component) Additional Material Functions
     WSD_CS_FU (Package) Functionality Enhanced Material Search
Properties
Class CL_WSD_PUR_PRICE_HANDLER  
Short Description Price handler for Purchasing    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package WSD_CS_FU   Functionality Enhanced Material Search 
Created 20081105   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_WSD_PUR_PRICE_HANDLER has no forward declaration.
Interfaces
Class CL_WSD_PUR_PRICE_HANDLER has no interface implemented.
Friends
Class CL_WSD_PUR_PRICE_HANDLER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_SUBTOTAL_1 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '1' Subtotal of Pricing Procedure for Sales Documents 20081112
2 GC_SUBTOTAL_2 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '2' Subtotal of Pricing Procedure for Sales Documents 20081112
3 GC_SUBTOTAL_3 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '3' Subtotal of Pricing Procedure for Sales Documents 20081112
4 GC_SUBTOTAL_4 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '4' Subtotal of Pricing Procedure for Sales Documents 20081112
5 GC_SUBTOTAL_5 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '5' Subtotal of Pricing Procedure for Sales Documents 20081112
6 GC_SUBTOTAL_6 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '6' Subtotal of Pricing Procedure for Sales Documents 20081112
7 GC_SUBTOTAL_7 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '7' Subtotal of Pricing Procedure for Sales Documents 20081112
8 GC_SUBTOTAL_8 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '8' Subtotal of Pricing Procedure for Sales Documents 20081112
9 GC_SUBTOTAL_9 Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL '9' Subtotal of Pricing Procedure for Sales Documents 20081112
10 GC_SUBTOTAL_A Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL 'A' Subtotal of Pricing Procedure for Sales Documents 20081112
11 GC_SUBTOTAL_B Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL 'B' Subtotal of Pricing Procedure for Sales Documents 20081112
12 GC_SUBTOTAL_C Static Attribute Private Type reference (TYPE) WSD_PP_SUBTOTAL 'C' Subtotal of Pricing Procedure for Sales Documents 20081112
13 MR_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_WSD_PUR_PRICE_HANDLER WSD Price handler for dealing with purchase prices 20081112
Methods
# Method Level Visibility Method type Description Created on
1 FILL_KOMK_STRUCTURE Instance method Private Method Fill komk structure 20081105
2 FILL_KOMP_STRUCTURE Instance method Private Method Fill komp structure 20081105
3 GET_CALCULATION_SCHEME Static method Public Method Get calculation scheme 20081105
4 GET_CALC_SCHEMA_GRP_PUR_ORG Static method Private Method Get calculation schema group of Purchasing Organization 20081219
5 GET_CALC_SCHEMA_GRP_VENDOR Static method Private Method Get calculation schema group of Vendor 20081105
6 GET_GROSS_PRICE Instance method Public Method Get Gross Price for Purchasing 20081112
7 GET_INSTANCE Static method Public Method Get the singleton instance 20081105
8 GET_MASTER_AND_ORG_DATA Instance method Private Method Read Master and organizational Data for Pricing 20081105
9 GET_NET_PRICE Instance method Public Method Get Net price 20081124
10 GET_PRICE_ELEMENT_VALUE Instance method Public Method Get value for price element 20081124
11 GET_PRICING_SCHEMA Static method Private Method Get Pricing Procedure Purchase Order 20081105
12 GET_PRICING_SCHEMA_STO Static method Private Method Get Pricing Procedure STO 20081105
13 GET_PURCHASE_PRICE Instance method Public Method Get purchase price of material 20081112
14 GET_SUBTOTAL_VALUE Instance method Private Method Get Pricing condition value from subtotal 20081124
15 VALIDATE_CALCULATION_SCHEMA Instance method Public Method Validate Calculation schema with cust. of Price element 20090327
Events
Class CL_WSD_PUR_PRICE_HANDLER has no event.
Types
Class CL_WSD_PUR_PRICE_HANDLER has no local type.
Method Signatures

Method FILL_KOMK_STRUCTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20081115
2 Importing IS_EINA Call by reference Type reference (TYPE) EINA Purchasing Info Record: General Data 20081115
3 Importing IS_EINE Call by reference Type reference (TYPE) EINE Purchasing Info Record: Purchasing Organization Data 20081115
4 Importing IS_LFA1 Call by reference Type reference (TYPE) LFA1 Vendor Master (General Section) 20081115
5 Importing IS_LFM1 Call by reference Type reference (TYPE) LFM1 Vendor master record purchasing organization data 20081115
6 Importing IS_T001 Call by reference Type reference (TYPE) T001 Company Codes 20081115
7 Importing IS_T001W Call by reference Type reference (TYPE) T001W Plants/Branches 20081115
8 Importing I_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20081115
9 Importing I_KAPPL Call by reference Type reference (TYPE) KAPPL 'M' Application 20081115
10 Importing I_ORDER_TYPE Call by reference Type reference (TYPE) BSART Order Type (Purchasing) 20081115
11 Importing I_PRSDT Call by reference Type reference (TYPE) PRSDT Date for pricing and exchange rate 20081115
12 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081124

Method FILL_KOMK_STRUCTURE on class CL_WSD_PUR_PRICE_HANDLER has no exception.

Method FILL_KOMP_STRUCTURE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20081115
2 Importing IS_EINA Call by reference Type reference (TYPE) EINA Purchasing Info Record: General Data 20081115
3 Importing IS_EINE Call by reference Type reference (TYPE) EINE Purchasing Info Record: Purchasing Organization Data 20081115
4 Importing IS_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20081115
5 Importing IS_MLAN Call by reference Type reference (TYPE) MLAN Tax Classification for Material 20081115
6 Importing IS_MT06E Call by reference Type reference (TYPE) MT06E Material Master Fields: Purchasing 20081115
7 Importing IS_T001 Call by reference Type reference (TYPE) T001 Company Codes 20081115
8 Importing IS_T001W Call by reference Type reference (TYPE) T001W Plants/Branches 20081115
9 Importing I_KPOSN Call by reference Type reference (TYPE) KPOSN 1 Condition item number 20081115
10 Importing I_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20081115
11 Importing I_MGAME Call by reference Type reference (TYPE) MENGE_D 1 Quantity 20081115
12 Importing I_PRSFD Call by reference Type reference (TYPE) PRSFD 'X' Carry out pricing 20081115

Method FILL_KOMP_STRUCTURE on class CL_WSD_PUR_PRICE_HANDLER has no exception.

Method GET_CALCULATION_SCHEME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20081105
2 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081105
3 Importing I_ORDER_TYPE Call by reference Type reference (TYPE) BSART Order Type (Purchasing) 20081105
4 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081105
5 Importing I_SCHEMA_GRP_PUR_ORG Call by reference Type reference (TYPE) KALSE Group for Calculation Schema (Purchasing Organization) 20081222
6 Importing I_SCHEMA_GRP_VENDOR Call by reference Type reference (TYPE) KALSK Group for Calculation Schema (Vendor) 20081105
7 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20081105
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081124
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081124

Method GET_CALC_SCHEMA_GRP_PUR_ORG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KALSE Call by reference Type reference (TYPE) KALSE Group for Calculation Schema (Purchasing Organization) 20081219
2 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081219
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081219
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081219

Method GET_CALC_SCHEMA_GRP_VENDOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KALSK Call by reference Type reference (TYPE) KALSK Group for Calculation Schema (Vendor) 20081105
2 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081105
3 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20081105
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081105
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081105

Method GET_GROSS_PRICE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20090327
2 Exporting ES_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20090327
3 Exporting ES_PRICE Call by reference Type reference (TYPE) WSD_PRICE_WITH_SCALE_STY WSD general structure to hold price information 20081124
4 Importing IS_EINA Call by reference Type reference (TYPE) EINA Purchasing Info Record: General Data 20081124
5 Importing IS_EINE Call by reference Type reference (TYPE) EINE Purchasing Info Record: Purchasing Organization Data 20081124
6 Importing IS_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20090327
7 Importing IS_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20090327
8 Importing IT_KOMV Call by reference Type reference (TYPE) VA_KOMV_T Table for structure KOMV 20090327
9 Importing I_EKGRP Call by reference Type reference (TYPE) EKGRP Purchasing Group 20081124
10 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081124
11 Importing I_ESOKZ Call by reference Type reference (TYPE) ESOKZ Purchasing info record category 20081124
12 Importing I_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20081124
13 Importing I_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20081124
14 Importing I_MGAME Call by reference Type reference (TYPE) MENGE_D Quantity 20081124
15 Importing I_ORDER_TYPE Call by reference Type reference (TYPE) BSART Order Type (Purchasing) 20081124
16 Importing I_PLANT Call by reference Type reference (TYPE) WERKS_D Plant 20081124
17 Importing I_PRICE_ELEMENT Call by reference Type reference (TYPE) WSD_PRICING_ELEMENT '08' Predefined Price Element 20081124
18 Importing I_PRSDT Call by reference Type reference (TYPE) WSD_EFFECTIVE_DATE SY-DATUM Effective Date 20081124
19 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081124
20 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20081124
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081230
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081230

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_INSTANCE Value transfer Object reference (TYPE REF TO) CL_WSD_PUR_PRICE_HANDLER Price handler for Purchasing 20081105

Method GET_INSTANCE on class CL_WSD_PUR_PRICE_HANDLER has no exception.

Method GET_MASTER_AND_ORG_DATA 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) 20081105
2 Exporting ES_LFM1 Call by reference Type reference (TYPE) LFM1 Vendor master record purchasing organization data 20081105
3 Exporting ES_MLAN Call by reference Type reference (TYPE) MLAN Tax Classification for Material 20081105
4 Exporting ES_MT06E Call by reference Type reference (TYPE) MT06E Material Master Fields: Purchasing 20081105
5 Exporting ES_T001 Call by reference Type reference (TYPE) T001 Company Codes 20081105
6 Exporting ES_T001W Call by reference Type reference (TYPE) T001W Plants/Branches 20081105
7 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081124
8 Importing I_MATNR Call by reference Type reference (TYPE) MATNR 20081124
9 Importing I_PLANT Call by reference Type reference (TYPE) WERKS_D 20081124
10 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN 20081124
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081105
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081105

Method GET_NET_PRICE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20090327
2 Exporting ES_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20090327
3 Exporting ES_PRICE Call by reference Type reference (TYPE) WSD_PRICE_WITH_SCALE_STY WSD general structure to hold price information 20081124
4 Importing IS_EINA Call by reference Type reference (TYPE) EINA Purchasing Info Record: General Data 20081124
5 Importing IS_EINE Call by reference Type reference (TYPE) EINE Purchasing Info Record: Purchasing Organization Data 20081124
6 Importing IS_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20090327
7 Importing IS_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20090327
8 Importing IT_KOMV Call by reference Type reference (TYPE) VA_KOMV_T Table for structure KOMV 20090327
9 Importing I_EKGRP Call by reference Type reference (TYPE) EKGRP Purchasing Group 20081124
10 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081124
11 Importing I_ESOKZ Call by reference Type reference (TYPE) ESOKZ Purchasing info record category 20081124
12 Importing I_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20081124
13 Importing I_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20081124
14 Importing I_MGAME Call by reference Type reference (TYPE) MENGE_D Quantity 20081124
15 Importing I_ORDER_TYPE Call by reference Type reference (TYPE) BSART Order Type (Purchasing) 20081124
16 Importing I_PLANT Call by reference Type reference (TYPE) WERKS_D Plant 20081124
17 Importing I_PRICE_ELEMENT Call by reference Type reference (TYPE) WSD_PRICING_ELEMENT '09' Predefined Price Element 20081124
18 Importing I_PRSDT Call by reference Type reference (TYPE) WSD_EFFECTIVE_DATE SY-DATUM Effective Date 20081124
19 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081124
20 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20081124
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081230
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081230

Method GET_PRICE_ELEMENT_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PRICE Call by reference Type reference (TYPE) WSD_PRICE_WITH_SCALE_STY WSD general structure to hold price information 20081229
2 Exporting E_VALUE Call by reference Type reference (TYPE) ANY 20081124
3 Importing IS_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20081229
4 Importing IS_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20081124
5 Importing IT_KOMV Call by reference Type reference (TYPE) VA_KOMV_T Table for structure KOMV 20081124
6 Importing I_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20081124
7 Importing I_KAPPL Call by reference Type reference (TYPE) KAPPL Application 20081124
8 Importing I_KVEWE Call by reference Type reference (TYPE) KVEWE Usage of the condition table 20081124
9 Importing I_PRICE_ELEMENT Call by reference Type reference (TYPE) WSD_PRICING_ELEMENT Predefined Price Element 20081231
# Exception Resumable Description Created on
1 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081229

Method GET_PRICING_SCHEMA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20081124
2 Importing I_KALSE Call by reference Type reference (TYPE) KALSE Group for Calculation Schema (Purchasing Organization) 20081124
3 Importing I_KALSK Call by reference Type reference (TYPE) KALSK Group for Calculation Schema (Vendor) 20081124
# Exception Resumable Description Created on
1 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081124

Method GET_PRICING_SCHEMA_STO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20081115
2 Importing I_BSART Call by reference Type reference (TYPE) ESART Purchasing Document Type 20081115
3 Importing I_KALSE Call by reference Type reference (TYPE) KALSE Group for Calculation Schema (Purchasing Organization) 20081115
4 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081115
# Exception Resumable Description Created on
1 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081124

Method GET_PURCHASE_PRICE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_KOMK Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20081124
2 Exporting ES_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20081124
3 Exporting ET_KOMV Call by reference Type reference (TYPE) VA_KOMV_T Pricing Communications-Condition Record 20081230
4 Importing IS_EINA Call by reference Type reference (TYPE) EINA Purchasing Info Record: General Data 20081112
5 Importing IS_EINE Call by reference Type reference (TYPE) EINE Purchasing Info Record: Purchasing Organization Data 20081112
6 Importing I_EKGRP Call by reference Type reference (TYPE) EKGRP Purchasing Group 20081112
7 Importing I_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20081112
8 Importing I_ESOKZ Call by reference Type reference (TYPE) ESOKZ Purchasing info record category 20081112
9 Importing I_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20081112
10 Importing I_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20081112
11 Importing I_MGAME Call by reference Type reference (TYPE) MENGE_D Quantity 20081112
12 Importing I_ORDER_TYPE Call by reference Type reference (TYPE) BSART Order Type (Purchasing) 20081112
13 Importing I_PLANT Call by reference Type reference (TYPE) WERKS_D Plant 20081112
14 Importing I_PRICE_ELEMENT Call by reference Type reference (TYPE) WSD_PRICING_ELEMENT Predefined Price Element 20090327
15 Importing I_PRSDT Call by reference Type reference (TYPE) WSD_EFFECTIVE_DATE SY-DATUM Effective Date 20081112
16 Importing I_RESWK Call by reference Type reference (TYPE) RESWK Supplying (Issuing) Plant in Stock Transport Order 20081124
17 Importing I_VENDOR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20081112
# Exception Resumable Description Created on
1 CX_WSD_EXCEPTION WSD basic exception class 20081124
2 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081124

Method GET_SUBTOTAL_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning E_SUBTOTAL_VALUE Value transfer Type reference (TYPE) KZWIS Condition subtotal 20081124
2 Importing IS_KOMP Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20081124
3 Importing I_SUBTOTAL Call by reference Type reference (TYPE) WSD_PP_SUBTOTAL Subtotal of Pricing Procedure for Sales Documents 20081124
# Exception Resumable Description Created on
1 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20081229

Method VALIDATE_CALCULATION_SCHEMA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20090327
2 Importing I_PRICE_ELEMENT Call by reference Type reference (TYPE) WSD_PRICING_ELEMENT Predefined Price Element 20090327
# Exception Resumable Description Created on
1 CX_WSD_NO_DATA_FOUND General exception for data-not-found errors 20090327
History
Last changed by/on SAP  20110908 
SAP Release Created in 605