SAP ABAP Class CL_GRFN_UTIL_CONVERT (Conversion Utilities)
Hierarchy
GRCFND_A (Software Component) GRC Foundation ABAP
   GRC (Application Component) Governance, Risk and Compliance
     GRFN_UTILITIES (Package) Various helping infrastructure for GRC ABAP
Properties
Class CL_GRFN_UTIL_CONVERT  
Short Description Conversion Utilities    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package GRFN_UTILITIES   Various helping infrastructure for GRC ABAP 
Created 20080710   SAP 
Last change 20141106    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_GRFN_UTIL_CONVERT has no forward declaration.
Interfaces
Class CL_GRFN_UTIL_CONVERT has no interface implemented.
Friends
Class CL_GRFN_UTIL_CONVERT has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_TIMESATMP_INFINITY Constant Public Type reference (TYPE) GRFN_TIMESTAMP '99991231235959' Infinity 20111019
Methods
# Method Level Visibility Method type Description Created on
1 CONVERT_CHAR_TO_NUM Static method Public Method Convert Char to a number 20121108
2 CONVERT_CURRENCY Static method Public Method Converts a currency value 20080710
3 CONVERT_CURRENCY_AMT_TO_NUMBER Static method Public Method Convert currency amount to a number 20120131
4 CONVERT_CURRENCY_NUMBER_TO_AMT Static method Public Method Convert a number to currency amount 20120201
5 CONVERT_FC_BASIS2GRFN Static method Public Method Field Catalog - Convert Basis structure to GRFN structure 20100621
6 CONVERT_FC_GRFN2BASIS Static method Public Method Field Catalog - Convert GRFN structure to Basis structure 20100621
7 CONVERT_LOCAL_TIMESTAMP Static method Public Method Converts a local time zone timestamp to UTC 20090219
8 CONVERT_TIMESTAMP_STRING Static method Public Method Convert UTC timestamp into char40 with local timezone 20091103
9 CONVERT_UNIT Static method Public Method Converts a unit value 20080710
10 CONVERT_UTC_TIMESTAMP Static method Public Method Converts a UTC timestamp to local time zone 20090219
Events
Class CL_GRFN_UTIL_CONVERT has no event.
Types
Class CL_GRFN_UTIL_CONVERT has no local type.
Method Signatures

Method CONVERT_CHAR_TO_NUM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CHR Value transfer Type reference (TYPE) C 20121108
2 Exporting NUM Call by reference Type reference (TYPE) P 20121108
# Exception Resumable Description Created on
1 CONVT_NO_NUMBER impossible to convert to numeric 20121108
2 CONVT_OVERFLOW overflow in numeric field 20121108

Method CONVERT_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CURRENCY_FROM Value transfer Type reference (TYPE) GRFN_CURRENCY Currency 20080710
2 Importing IV_CURRENCY_TO Value transfer Type reference (TYPE) GRFN_CURRENCY Currency 20080710
3 Importing IV_DATE Value transfer Type reference (TYPE) SY-DATUM SY-DATUM Current Date of Application Server 20080710
4 Importing IV_VALUE Value transfer Type reference (TYPE) GRFN_AMOUNT Currency amount 20080710
5 Returning RV_VALUE Value transfer Type reference (TYPE) GRFN_AMOUNT Currency amount 20080710
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080710

Method CONVERT_CURRENCY_AMT_TO_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_AMOUNT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20120131
2 Importing IV_CURRENCY Call by reference Type reference (TYPE) GRFN_CURRENCY Currency 20120131
3 Returning RV_VALUE Value transfer Type reference (TYPE) GRFN_VALUE Value 20120131

Method CONVERT_CURRENCY_AMT_TO_NUMBER on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_CURRENCY_NUMBER_TO_AMT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CURRENCY Call by reference Type reference (TYPE) GRFN_CURRENCY Currency 20120201
2 Importing IV_VALUE Value transfer Type reference (TYPE) GRFN_VALUE Value 20120201
3 Returning RV_AMOUNT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20120201

Method CONVERT_CURRENCY_NUMBER_TO_AMT on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_FC_BASIS2GRFN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FC_GRFN Call by reference Type reference (TYPE) GRFN_T_FIELDCATALOG Field Catalog for RFC Communication 20100621
2 Importing IT_FC_BASIS Call by reference Type reference (TYPE) LVC_T_FCAT Field Catalog for List Viewer Control 20100621

Method CONVERT_FC_BASIS2GRFN on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_FC_GRFN2BASIS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FC_BASIS Call by reference Type reference (TYPE) LVC_T_FCAT Field Catalog for List Viewer Control 20100621
2 Importing IT_FC_GRFN Call by reference Type reference (TYPE) GRFN_T_FIELDCATALOG Field Catalog for RFC Communication 20100621

Method CONVERT_FC_GRFN2BASIS on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_LOCAL_TIMESTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20090219
2 Importing IV_TIMEZONE Call by reference Type reference (TYPE) TIMEZONE SY-ZONLO Time Zone 20090219
3 Returning RV_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20090219

Method CONVERT_LOCAL_TIMESTAMP on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_TIMESTAMP_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20091103
2 Returning RV_TEXT Value transfer Type reference (TYPE) GRFN_APP_TEXT Text 20091103

Method CONVERT_TIMESTAMP_STRING on class CL_GRFN_UTIL_CONVERT has no exception.

Method CONVERT_UNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ROUNDING Value transfer Type reference (TYPE) GRFN_ROUNDING '+' up, '-' down, 'X' commercial, ' ' no rounding 20080710
2 Importing IV_UNIT_FROM Value transfer Type reference (TYPE) GRFN_UNIT Unit of Measurement (Conversion From ...) 20080710
3 Importing IV_UNIT_TO Value transfer Type reference (TYPE) GRFN_UNIT Unit of Measurement (Conversion To ...) 20080710
4 Importing IV_VALUE Value transfer Type reference (TYPE) GRFN_VALUE Value for unit conversion 20080710
5 Returning RV_VALUE Value transfer Type reference (TYPE) GRFN_VALUE Value for unit conversion 20080710
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080710

Method CONVERT_UTC_TIMESTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20090219
2 Importing IV_TIMEZONE Call by reference Type reference (TYPE) TIMEZONE SY-ZONLO Time Zone 20090219
3 Returning RV_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20090219

Method CONVERT_UTC_TIMESTAMP on class CL_GRFN_UTIL_CONVERT has no exception.
History
Last changed by/on SAP  20141106 
SAP Release Created in 300