SAP ABAP Class CL_FDT_JSON (Optimized Json Transformation for BRFplus)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
     SFDT_CORE (Package) BRFplus: Core
Properties
Class CL_FDT_JSON  
Short Description Optimized Json Transformation for BRFplus    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SFDT_CORE   BRFplus: Core 
Created 20130320   SAP 
Last change 20140121   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_ABAP_STRUCTDESCR Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 CL_FDT_JSON Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
4 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_FDT_JSON has no interface implemented.
Friends
Class CL_FDT_JSON has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_ABAP_BOOL Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE-POOL=ABAPTYPE=ABAP_BOOL' 20130924
2 GC_ELEMENT_AMOUNT Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_AMOUNT' 20130924
3 GC_ELEMENT_BOOLEAN Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_BOOLEAN' 20130924
4 GC_ELEMENT_NUMBER Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_NUMBER' 20130924
5 GC_ELEMENT_QUANTITY Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_QUANTITY' 20130924
6 GC_ELEMENT_TEXT Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_TEXT' 20130924
7 GC_ELEMENT_TIMEPOINT Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'INTERFACE=IF_FDT_TYPESTYPE=ELEMENT_TIMEPOINT' 20130924
8 GC_FDT_AMOUNT Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE=FDT_S_AMOUNT' 20130924
9 GC_FDT_BOOLEAN Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE=FDT_BOOLEAN' 20130924
10 GC_FDT_NUMBER Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE=FDT_NUMBER_DECFLOAT' 20130924
11 GC_FDT_QUANTITY Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE=FDT_S_QUANTITY' 20130924
12 GC_FDT_TIMEPOINT Static Attribute Protected Type reference (TYPE) ABAP_ABSTYPENAME 'TYPE=FDT_S_TIMEPOINT' 20130924
Methods
# Method Level Visibility Method type Description Created on
1 BRF_STRUC_TO_JSON Static method Private Method Handle special BRF constructions 20130924
2 CONVERT_TOKEN Static method Private Method Do neccessary conversions on token 20130924
3 DATA_TO_JSON Static method Public Method Transforms a data object to a Json string 20130320
4 DATA_TO_JSON_INTERNAL Static method Private Method Convert ABAP data into JSON format (internal process) 20130924
5 GET_STRING Static method Private Method Retrieve key from JSON 20130924
6 JSON_TO_BRF_STRUC Static method Private Method Handle special BRF constructions 20130924
7 JSON_TO_DATA Static method Public Method Transforms a Json string to a data object 20130320
8 JSON_TO_DATA_INTERNAL Static method Private Method Convert JSON format into ABAP data (internal process) 20130924
Events
Class CL_FDT_JSON has no event.
Types
Class CL_FDT_JSON has no local type.
Method Signatures

Method BRF_STRUC_TO_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IA_DATA Call by reference Type reference (TYPE) ANY 20130924
2 Importing IV_TYPE Call by reference Type reference (TYPE) ABAP_ABSTYPENAME 20130924
3 Returning RV_JSON Value transfer Type reference (TYPE) STRING 20130924

Method BRF_STRUC_TO_JSON on class CL_FDT_JSON has no exception.

Method CONVERT_TOKEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TOKEN Call by reference Type reference (TYPE) ANY 20130924
2 Importing IA_DATA Call by reference Type reference (TYPE) ANY 20130924

Method CONVERT_TOKEN on class CL_FDT_JSON has no exception.

Method DATA_TO_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IA_DATA Call by reference Type reference (TYPE) ANY 20130410
2 Returning RV_JSON Value transfer Type reference (TYPE) STRING 20130320

Method DATA_TO_JSON on class CL_FDT_JSON has no exception.

Method DATA_TO_JSON_INTERNAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IA_DATA Call by reference Type reference (TYPE) ANY 20130924
2 Returning RV_JSON Value transfer Type reference (TYPE) STRING 20130924

Method DATA_TO_JSON_INTERNAL on class CL_FDT_JSON has no exception.

Method GET_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_JSON Call by reference Type reference (TYPE) STRING 20130924
2 Exporting EV_STRING Call by reference Type reference (TYPE) STRING 20130924

Method GET_STRING on class CL_FDT_JSON has no exception.

Method JSON_TO_BRF_STRUC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CA_DATA Call by reference Type reference (TYPE) ANY 20130924
2 Changing CV_JSON Call by reference Type reference (TYPE) STRING 20130924

Method JSON_TO_BRF_STRUC on class CL_FDT_JSON has no exception.

Method JSON_TO_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CA_DATA Call by reference Type reference (TYPE) ANY 20130410
2 Importing IV_JSON Call by reference Type reference (TYPE) STRING 20130410

Method JSON_TO_DATA on class CL_FDT_JSON has no exception.

Method JSON_TO_DATA_INTERNAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CA_DATA Call by reference Type reference (TYPE) ANY 20130924
2 Changing CV_JSON Call by reference Type reference (TYPE) STRING 20130924
3 Exporting EV_IS_FILLED Call by reference Type reference (TYPE) ABAP_BOOL 20130924
4 Importing IV_IS_TABLINE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130924

Method JSON_TO_DATA_INTERNAL on class CL_FDT_JSON has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 740