SAP ABAP Class CL_FIP_UTILITIES (Utilities Class for FIP)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-PUR-FIP (Application Component) Perishables Procurement
     FIP_BUSINESS_LOGIC (Package) Business Logic for Fresh Item Procurement
Properties
Class CL_FIP_UTILITIES  
Short Description Utilities Class for FIP    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package FIP_BUSINESS_LOGIC   Business Logic for Fresh Item Procurement 
Created 20080104   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 CL_FIP_CONST Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 TSTR Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_FIP_UTILITIES has no interface implemented.
Friends
Class CL_FIP_UTILITIES has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CO_MSGID_BAL Constant Public Type reference (TYPE) SY-MSGID 'FIP_BAL_MSG_CLASS' Message Class 20080512
2 CO_MSGID_BL Constant Public Type reference (TYPE) SY-MSGID 'FIP_BL_MESSAGE_CLASS' Message Class 20080512
3 C_CHAR_NO Constant Private Type reference (TYPE) BOOLEAN '' Boolean Variable (X=True, -=False, Space=Unknown) 20080104
4 C_CHAR_YES Constant Private Type reference (TYPE) BOOLEAN 'X' Boolean Variable (X=True, -=False, Space=Unknown) 20080104
5 GC_FIP_SWITCH_STATE Static Attribute Private Type reference (TYPE) CHAR1 Single-Character Flag 20080523
6 GC_MAX_HITS Static Attribute Public Type reference (TYPE) I 10000 20080404
7 GC_SUPPLYING_PLANT Static Attribute Private Type reference (TYPE) WERKS_D Plant 20080528
8 GO_BADI_SET_PLDT Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_SET_PLDT BAdI to change pdt 20080822
9 GO_BAL_FUNCNL_UNIT Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_FUNCNL_UNIT_BAL BAdI for accessing BO functional unit 20080528
10 GO_BAL_RETAIL_SWITCH Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_RETAIL_SWITCH_BAL 20080523
11 GO_CO Static Attribute Protected Object reference (TYPE REF TO) CL_FIP_CONST Constants 20080118
12 GO_ERR_RAISER Static Attribute Protected Object reference (TYPE REF TO) CL_FIP_EXCEPTION_RAISER Services for raising exceptions 20080122
13 GO_FIP_APPL Constant Public See coding 20080306
14 GO_ME Static Attribute Public Object reference (TYPE REF TO) CL_FIP_UTILITIES Utilities Class for FIP 20080117
15 GT_RECIPIENT_VTWEG Static Attribute Private Type reference (TYPE) FIP_T_RECIPIENT_VTWEG Table of Recipient Distribution channel 20080528
16 MO_BAL_CUSTOMER Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_CUSTOMER_BAL 20080815
17 MO_BAL_MATERIAL Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_MATERIAL_BAL BAdI for accessing BO material 20080623
18 MO_BAL_RECEIVING_PLNT Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_RECEIVING_PLNT_BAL 20080815
19 MO_BAL_STORE Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_STORE_BAL 20080815
20 MO_BAL_SUPPLIER Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_SUPPLIER_BAL 20080815
21 MO_BAL_SUPPLYING_PLNT Static Attribute Private Object reference (TYPE REF TO) FIP_BADI_SUPPLYING_PLNT_BAL 20080529
Methods
# Method Level Visibility Method type Description Created on
1 CALC_DATE Static method Public Method Calculates dates out of dates, timestampes, durations, ... 20080509
2 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20080122
3 CONVERT_DATE_TO_EXTERNAL Static method Public Method Convert DATUM type to STRING 20080702
4 CREATE_GUID Static method Public Method Return a GUID 20080509
5 DO_UOM_CONVERSION Static method Public Method 20090213
6 GET_CALENDAR_WEEK Static method Public Method Return the Calendar Week 20080508
7 GET_FIP_APP_NAME Static method Public Method return the text element on fip application 20080306
8 GET_FIP_SWITCH_STATE Static method Public Method 20080523
9 GET_FIRSTDAY_LAST_WEEK Static method Public Method get the first day of last week 20080510
10 GET_INSTANCE Static method Public Method Returns the singleton instance 20080117
11 GET_MONTH Static method Public Method Return the Month for a given date 20080509
12 GET_PDT Static method Public Method return the text element on fip application 20080407
13 GET_SALES_AREA_DATA Static method Public Method Read sales area data vkorg, vtweg, etc 20080528
14 GET_WEEKDAY Static method Public Method Return the Weekday for a given date 20080509
15 GET_YEAR Static method Public Method Return the Year for a given date 20080509
16 IS_RETAIL_ACTIVE Static method Public Method Determine if the system has retail activated 20080104
17 LEFT_STRING_COPY Static method Public Method Copy the left part of a string 20080404
18 MONTH_PLUS_OFFSET Static method Public Method Apply monthly offset to given date 20100121
19 NORMALIZE_SALES_PRICE Static method Public Method Convert Divide and Add 20080623
20 PROCESS_SALES_PRICES Static method Public Method Construct Material Sales Prices Min, Avg, Max & Rcpt Prices 20080619
21 PROCESS_SALES_PRICES_PL Static method Public Method Construct Material Sales Prices Min, Avg, Max & Rcpt Prices 20080807
22 READ_RCPNT_DETAILS_BY_RCPNT Static method Public Method Read recipient details by recipient number and type 20080815
23 READ_VENDOR_DETAILS_BY_VENDORS Static method Public Method 20080815
Events
Class CL_FIP_UTILITIES has no event.
Types
Class CL_FIP_UTILITIES has no local type.
Method Signatures

Method CALC_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_END_DATE Call by reference Type reference (TYPE) D 20080516
2 Exporting EV_END_TIME Call by reference Type reference (TYPE) T 20080516
3 Importing IV_BEGIN_DATE Call by reference Type reference (TYPE) D 20080516
4 Importing IV_BEGIN_TIME Call by reference Type reference (TYPE) T 20080516
5 Importing IV_CALENDAR_ID Call by reference Type reference (TYPE) TSTR_CALID 20080509
6 Importing IV_DIRECTION Call by reference Type reference (TYPE) TSTR_DIRECTION '+' 20080516
7 Importing IV_DURATION_IN_DAYS Call by reference Type reference (TYPE) I 20080509
8 Importing IV_DURATION_IN_SECONDS Call by reference Type reference (TYPE) I 20080509
# Exception Resumable Description Created on
1 CX_FIP_DATA_INVALID Invalid data supplied 20080515
2 CX_FIP_RUNTIME FIP execution error 20080515

Method CLASS_CONSTRUCTOR Signature

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

Method CONVERT_DATE_TO_EXTERNAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_INTERNAL_DATE Call by reference Type reference (TYPE) DATUM Date 20080702
2 Returning RV_EXTERNAL_DATE Value transfer Type reference (TYPE) STRING 20080702

Method CONVERT_DATE_TO_EXTERNAL on class CL_FIP_UTILITIES has no exception.

Method CREATE_GUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_PERIOD_ID Value transfer Type reference (TYPE) FIP_GUID Unique Period ID 20080509

Method CREATE_GUID on class CL_FIP_UTILITIES has no exception.

Method DO_UOM_CONVERSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20090213
2 Exporting EV_QUANTITY Call by reference Type reference (TYPE) FIP_BSTMG Purchase Order Quantity 20090213
3 Importing IV_MATNR Call by reference Type reference (TYPE) MATNR Material Number 20090213
4 Importing IV_QUANTITY Call by reference Type reference (TYPE) FIP_BSTMG Purchase Order Quantity 20090213
5 Importing IV_UNIT_IN Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20090213
6 Importing IV_UNIT_OUT Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20090213

Method DO_UOM_CONVERSION on class CL_FIP_UTILITIES has no exception.

Method GET_CALENDAR_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) D 20080508
2 Returning RV_WEEK Value transfer Type reference (TYPE) STRING 20080508
# Exception Resumable Description Created on
1 CX_FIP_DATA_INVALID Invalid data supplied 20080508

Method GET_FIP_APP_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_APPL_ID Call by reference Type reference (TYPE) STRING Possible FIP application 20080306
2 Returning RV_APPL_NAME Value transfer Type reference (TYPE) STRING return the FIP application name 20080306

Method GET_FIP_APP_NAME on class CL_FIP_UTILITIES has no exception.

Method GET_FIP_SWITCH_STATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_SWITCH_STATE Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20080523

Method GET_FIP_SWITCH_STATE on class CL_FIP_UTILITIES has no exception.

Method GET_FIRSTDAY_LAST_WEEK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_DAY Value transfer Type reference (TYPE) DATUM Date 20080510

Method GET_FIRSTDAY_LAST_WEEK on class CL_FIP_UTILITIES has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_FIP_UTILITIES Utilities Class for FIP 20080117

Method GET_INSTANCE on class CL_FIP_UTILITIES has no exception.

Method GET_MONTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) D 20080509
2 Returning RV_MONTH Value transfer Type reference (TYPE) STRING 20080509

Method GET_MONTH on class CL_FIP_UTILITIES has no exception.

Method GET_PDT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20080514
2 Exporting ET_FIP_PDT_TO_CUS Call by reference Type reference (TYPE) FIP_T_PDT_TO_CUS Internal planned delivery time from DC to customer 20080418
3 Exporting ET_FIP_PDT_TO_DC Call by reference Type reference (TYPE) FIP_T_PDT_TO_DC External planned delivery time from vendor to DC 20080418
4 Exporting ET_FIP_PDT_TO_ST Call by reference Type reference (TYPE) FIP_T_PDT_TO_ST Internal planned delivery time from DC to store 20080418
5 Importing IT_FIP_INPUT_PDT_EXT Call by reference Type reference (TYPE) FIP_T_INPUT_PDT_EXT Input data to determin the planned delivery time 20080423
6 Importing IT_FIP_INPUT_PDT_INT Call by reference Type reference (TYPE) FIP_T_INPUT_PDT_INT Input data to determin the internal planned delivery time 20080423

Method GET_PDT on class CL_FIP_UTILITIES has no exception.

Method GET_SALES_AREA_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20080528
2 Exporting ES_RECIPIENT_VTWEG Call by reference Type reference (TYPE) FIP_S_RECIPIENT_VTWEG Recipient Distribution channel 20080528
3 Exporting ET_RECIPIENT_VTWEG Call by reference Type reference (TYPE) FIP_T_RECIPIENT_VTWEG Table of Recipient Distribution channel 20080528
4 Importing IS_RECIPIENT Call by reference Type reference (TYPE) FIP_S_RECIPIENT Structure with recipient 20080528
5 Importing IT_RECIPIENT Call by reference Type reference (TYPE) FIP_T_RECIPIENT Table of recipient numbers 20080528
6 Importing IV_WERKS_D Call by reference Type reference (TYPE) FIP_WERKS_D Plant 20080528

Method GET_SALES_AREA_DATA on class CL_FIP_UTILITIES has no exception.

Method GET_WEEKDAY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) D 20080509
2 Returning RV_WEEKDAY Value transfer Type reference (TYPE) STRING 20080509

Method GET_WEEKDAY on class CL_FIP_UTILITIES has no exception.

Method GET_YEAR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATE Call by reference Type reference (TYPE) D 20080509
2 Returning RV_YEAR Value transfer Type reference (TYPE) STRING 20080509

Method GET_YEAR on class CL_FIP_UTILITIES has no exception.

Method IS_RETAIL_ACTIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_RETAIL_ACTIVE Value transfer Type reference (TYPE) BOOLEAN Boolean Variable (X=True, -=False, Space=Unknown) 20080104

Method IS_RETAIL_ACTIVE on class CL_FIP_UTILITIES has no exception.

Method LEFT_STRING_COPY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_COPY_LENGTH Call by reference Type reference (TYPE) I 20080404
2 Importing IV_INPUT_STRING Call by reference Type reference (TYPE) C 20080404
3 Returning RV_RESULT_STRING Value transfer Type reference (TYPE) STRING 20080404

Method LEFT_STRING_COPY on class CL_FIP_UTILITIES has no exception.

Method MONTH_PLUS_OFFSET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_DATE Call by reference Type reference (TYPE) DATUM Date 20100121
2 Importing IV_DATE Call by reference Type reference (TYPE) DATUM Date 20100121
3 Importing IV_OFFSET Call by reference Type reference (TYPE) I 20100121

Method MONTH_PLUS_OFFSET on class CL_FIP_UTILITIES has no exception.

Method NORMALIZE_SALES_PRICE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20080623
2 Exporting EV_SALES_PRICE_NORMAL Call by reference Type reference (TYPE) FIP_NETPR Net price 20080623
3 Importing IS_SALES_PRICE Call by reference Type reference (TYPE) FIP_S_SALES_PRICE Sales_Price_Strucutre 20080623
4 Importing IV_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20080623

Method NORMALIZE_SALES_PRICE on class CL_FIP_UTILITIES has no exception.

Method PROCESS_SALES_PRICES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20080623
2 Exporting ET_MATERIAL_PRICES Call by reference Type reference (TYPE) FIP_T_MATERIAL_SALES_PRICE Material Sales Prices min, avg and max for PL/DL 20080619
3 Exporting ET_RECIPIENT_PRICES Call by reference Type reference (TYPE) FIP_T_RECIPIENT_SALES_PRICE Recipient Sales Prices for PL/DL 20080619
4 Importing IT_MAT_BASE_UOM Call by reference Type reference (TYPE) FIP_T_MATERIAL_BASE_UOM Material Base UoM 20080623
5 Importing IT_MAT_RCPT Call by reference Type reference (TYPE) FIP_T_DRD Return type for DRD 20080619
6 Importing IT_SALES_PRICES Call by reference Type reference (TYPE) FIP_T_SALES_PRICE SALES_PRICE_TABLE 20080619
7 Importing IV_WERKS Call by reference Type reference (TYPE) FIP_WERKS_D Plant 20080619

Method PROCESS_SALES_PRICES on class CL_FIP_UTILITIES has no exception.

Method PROCESS_SALES_PRICES_PL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CO_LOGGER Call by reference Object reference (TYPE REF TO) CL_FIP_MESSAGE_LOGGER Class for FIP message logging/handling 20080807
2 Exporting ET_MATERIAL_PRICES Call by reference Type reference (TYPE) FIP_T_MATERIAL_SALES_PRICE Material Sales Prices min, avg and max for PL/DL 20080807
3 Exporting ET_PL_RECIPIENT_PRICES Call by reference Type reference (TYPE) FIP_T_PL_RECIPIENT_SALES_PRICE Recipient Sales Prices for PL/DL 20080811
4 Importing IT_MAT_BASE_UOM Call by reference Type reference (TYPE) FIP_T_MATERIAL_BASE_UOM Material Base UoM 20080807
5 Importing IT_MAT_RCPT Call by reference Type reference (TYPE) FIP_T_DRD Return type for DRD 20080807
6 Importing IT_SALES_PRICES Call by reference Type reference (TYPE) FIP_T_SALES_PRICE SALES_PRICE_TABLE 20080807
7 Importing IV_WERKS Call by reference Type reference (TYPE) FIP_WERKS_D Plant 20080807

Method PROCESS_SALES_PRICES_PL on class CL_FIP_UTILITIES has no exception.

Method READ_RCPNT_DETAILS_BY_RCPNT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RECIPIENT_BASIC Call by reference Type reference (TYPE) FIP_T_RECIPIENT_BASIC Table of FIP recipients 20080815
2 Importing IT_RECIPIENT Call by reference Type reference (TYPE) FIP_T_RECIPIENT Table of vendor numbers 20080815

Method READ_RCPNT_DETAILS_BY_RCPNT on class CL_FIP_UTILITIES has no exception.

Method READ_VENDOR_DETAILS_BY_VENDORS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_VENDOR_BASIC Call by reference Type reference (TYPE) FIP_T_VENDOR_BASIC All information for Vendor 20080815
2 Importing IT_VENDORS Call by reference Type reference (TYPE) FIP_T_VENDOR Account Number of Vendor or Creditor 20080815

Method READ_VENDOR_DETAILS_BY_VENDORS on class CL_FIP_UTILITIES has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 604