Hierarchy
⤷
⤷
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 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) | |
| 3 | 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
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Calculates dates out of dates, timestampes, durations, ... | 20080509 | |
| 2 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20080122 | |
| 3 | Static method | Public | Method | Convert DATUM type to STRING | 20080702 | |
| 4 | Static method | Public | Method | Return a GUID | 20080509 | |
| 5 | Static method | Public | Method | 20090213 | ||
| 6 | Static method | Public | Method | Return the Calendar Week | 20080508 | |
| 7 | Static method | Public | Method | return the text element on fip application | 20080306 | |
| 8 | Static method | Public | Method | 20080523 | ||
| 9 | Static method | Public | Method | get the first day of last week | 20080510 | |
| 10 | Static method | Public | Method | Returns the singleton instance | 20080117 | |
| 11 | Static method | Public | Method | Return the Month for a given date | 20080509 | |
| 12 | Static method | Public | Method | return the text element on fip application | 20080407 | |
| 13 | Static method | Public | Method | Read sales area data vkorg, vtweg, etc | 20080528 | |
| 14 | Static method | Public | Method | Return the Weekday for a given date | 20080509 | |
| 15 | Static method | Public | Method | Return the Year for a given date | 20080509 | |
| 16 | Static method | Public | Method | Determine if the system has retail activated | 20080104 | |
| 17 | Static method | Public | Method | Copy the left part of a string | 20080404 | |
| 18 | Static method | Public | Method | Apply monthly offset to given date | 20100121 | |
| 19 | Static method | Public | Method | Convert Divide and Add | 20080623 | |
| 20 | Static method | Public | Method | Construct Material Sales Prices Min, Avg, Max & Rcpt Prices | 20080619 | |
| 21 | Static method | Public | Method | Construct Material Sales Prices Min, Avg, Max & Rcpt Prices | 20080807 | |
| 22 | Static method | Public | Method | Read recipient details by recipient number and type | 20080815 | |
| 23 | 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 | EV_END_DATE | Call by reference | Type reference (TYPE) | D | 20080516 | ||||
| 2 | EV_END_TIME | Call by reference | Type reference (TYPE) | T | 20080516 | ||||
| 3 | IV_BEGIN_DATE | Call by reference | Type reference (TYPE) | D | 20080516 | ||||
| 4 | IV_BEGIN_TIME | Call by reference | Type reference (TYPE) | T | 20080516 | ||||
| 5 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | TSTR_CALID | 20080509 | ||||
| 6 | IV_DIRECTION | Call by reference | Type reference (TYPE) | TSTR_DIRECTION | '+' | 20080516 | |||
| 7 | IV_DURATION_IN_DAYS | Call by reference | Type reference (TYPE) | I | 20080509 | ||||
| 8 | IV_DURATION_IN_SECONDS | Call by reference | Type reference (TYPE) | I | 20080509 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Invalid data supplied | 20080515 | ||
| 2 | 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 | IV_INTERNAL_DATE | Call by reference | Type reference (TYPE) | DATUM | Date | 20080702 | |||
| 2 | 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 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20090213 | |||
| 2 | EV_QUANTITY | Call by reference | Type reference (TYPE) | FIP_BSTMG | Purchase Order Quantity | 20090213 | |||
| 3 | IV_MATNR | Call by reference | Type reference (TYPE) | MATNR | Material Number | 20090213 | |||
| 4 | IV_QUANTITY | Call by reference | Type reference (TYPE) | FIP_BSTMG | Purchase Order Quantity | 20090213 | |||
| 5 | IV_UNIT_IN | Call by reference | Type reference (TYPE) | MEINS | Base Unit of Measure | 20090213 | |||
| 6 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | D | 20080508 | ||||
| 2 | RV_WEEK | Value transfer | Type reference (TYPE) | STRING | 20080508 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | IV_APPL_ID | Call by reference | Type reference (TYPE) | STRING | Possible FIP application | 20080306 | |||
| 2 | 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 | 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 | 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 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | D | 20080509 | ||||
| 2 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20080514 | |||
| 2 | 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 | 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 | 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 | 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 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20080528 | |||
| 2 | ES_RECIPIENT_VTWEG | Call by reference | Type reference (TYPE) | FIP_S_RECIPIENT_VTWEG | Recipient Distribution channel | 20080528 | |||
| 3 | ET_RECIPIENT_VTWEG | Call by reference | Type reference (TYPE) | FIP_T_RECIPIENT_VTWEG | Table of Recipient Distribution channel | 20080528 | |||
| 4 | IS_RECIPIENT | Call by reference | Type reference (TYPE) | FIP_S_RECIPIENT | Structure with recipient | 20080528 | |||
| 5 | IT_RECIPIENT | Call by reference | Type reference (TYPE) | FIP_T_RECIPIENT | Table of recipient numbers | 20080528 | |||
| 6 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | D | 20080509 | ||||
| 2 | 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 | IV_DATE | Call by reference | Type reference (TYPE) | D | 20080509 | ||||
| 2 | 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 | 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 | IV_COPY_LENGTH | Call by reference | Type reference (TYPE) | I | 20080404 | ||||
| 2 | IV_INPUT_STRING | Call by reference | Type reference (TYPE) | C | 20080404 | ||||
| 3 | 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 | EV_DATE | Call by reference | Type reference (TYPE) | DATUM | Date | 20100121 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | DATUM | Date | 20100121 | |||
| 3 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20080623 | |||
| 2 | EV_SALES_PRICE_NORMAL | Call by reference | Type reference (TYPE) | FIP_NETPR | Net price | 20080623 | |||
| 3 | IS_SALES_PRICE | Call by reference | Type reference (TYPE) | FIP_S_SALES_PRICE | Sales_Price_Strucutre | 20080623 | |||
| 4 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20080623 | |||
| 2 | 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 | ET_RECIPIENT_PRICES | Call by reference | Type reference (TYPE) | FIP_T_RECIPIENT_SALES_PRICE | Recipient Sales Prices for PL/DL | 20080619 | |||
| 4 | IT_MAT_BASE_UOM | Call by reference | Type reference (TYPE) | FIP_T_MATERIAL_BASE_UOM | Material Base UoM | 20080623 | |||
| 5 | IT_MAT_RCPT | Call by reference | Type reference (TYPE) | FIP_T_DRD | Return type for DRD | 20080619 | |||
| 6 | IT_SALES_PRICES | Call by reference | Type reference (TYPE) | FIP_T_SALES_PRICE | SALES_PRICE_TABLE | 20080619 | |||
| 7 | 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 | CO_LOGGER | Call by reference | Object reference (TYPE REF TO) | CL_FIP_MESSAGE_LOGGER | Class for FIP message logging/handling | 20080807 | |||
| 2 | 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 | ET_PL_RECIPIENT_PRICES | Call by reference | Type reference (TYPE) | FIP_T_PL_RECIPIENT_SALES_PRICE | Recipient Sales Prices for PL/DL | 20080811 | |||
| 4 | IT_MAT_BASE_UOM | Call by reference | Type reference (TYPE) | FIP_T_MATERIAL_BASE_UOM | Material Base UoM | 20080807 | |||
| 5 | IT_MAT_RCPT | Call by reference | Type reference (TYPE) | FIP_T_DRD | Return type for DRD | 20080807 | |||
| 6 | IT_SALES_PRICES | Call by reference | Type reference (TYPE) | FIP_T_SALES_PRICE | SALES_PRICE_TABLE | 20080807 | |||
| 7 | 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 | ET_RECIPIENT_BASIC | Call by reference | Type reference (TYPE) | FIP_T_RECIPIENT_BASIC | Table of FIP recipients | 20080815 | |||
| 2 | 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 | ET_VENDOR_BASIC | Call by reference | Type reference (TYPE) | FIP_T_VENDOR_BASIC | All information for Vendor | 20080815 | |||
| 2 | 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 |