SAP ABAP Class CL_FDT_WD_VARIANTS_MODEL (FDT WD: Variants Model)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
     SFDT_WD_TOOLS (Package) BRFplus: Tools in Web Dynpro UI
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_FDT_WD_MODEL FDT WD: Model for Web Dynpro (abstract) 20120717
Properties
Class CL_FDT_WD_VARIANTS_MODEL  
Short Description FDT WD: Variants Model    
Super Class CL_FDT_WD_MODEL FDT WD: Model for Web Dynpro (abstract) 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SFDT_WD_TOOLS   BRFplus: Tools in Web Dynpro UI 
Created 20120717   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_FDT_WD_VARIANTS_MODEL has no interface implemented.
Friends
Class CL_FDT_WD_VARIANTS_MODEL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_CALLER_TRACE Constant Public Type reference (TYPE) STRING 'Trace' Called by trace 20130605
2 GC_CREATE_VARIANT Constant Public Type reference (TYPE) STRING 'CREATE_VARIANT' Create Variant 20120717
3 GC_DELETE_TEST_CASE Constant Public Type reference (TYPE) STRING 'DELETE_TEST_CASE' Delete Test Case 20120717
4 GC_ERROR Constant Public Type reference (TYPE) CHAR1 'E' Error Char 20120717
5 GC_ERROR_MESSAGE_ICON Constant Public Type reference (TYPE) STRING '~Icon/ErrorMessage' Red Led Icon 20120717
6 GC_GREEN_LED_ICON Constant Public Type reference (TYPE) STRING '~Icon/GreenLed' Green Led Icon 20120717
7 GC_INTERPRETATION_MODE Constant Public Type reference (TYPE) STRING 'I' Interpretation Mode 20120717
8 GC_VALID_STATE_INVALID Constant Public Type reference (TYPE) STRING 'Invalid' Valid State Ok 20130304
9 GC_VALID_STATE_OK Constant Public Type reference (TYPE) STRING 'Ok' Valid State Ok 20130304
10 GC_VARIANTS_PARAM Constant Public Type reference (TYPE) STRING 'VARIANTS' Variants Header node 20130425
11 GC_YELLOW_LED_ICON Constant Public Type reference (TYPE) STRING '~Icon/YellowLed' 20130424
12 MT_VARIANT Instance attribute Private Type reference (TYPE) TS_VARIANT 20130425
13 MV_FUNCTION_ID Instance attribute Public Type reference (TYPE) IF_FDT_TYPES=>ID Function Id for edit 20130306
14 MV_TIMESTAMP Instance attribute Public Type reference (TYPE) FDT_TIMESTAMP Timestamp of container control 20130626
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_VARIANT_EXISTS Instance method Public Method Check if Variant already exists 20120717
2 CREATE_VARIANT Instance method Public Method 20120717
3 DELETE_VARIANTS Instance method Public Method 20120809
4 DEQUEUE Instance method Public Method Dequeues variants for a function 20130306
5 DESERIALIZE_FROM_JSON Instance method Public Method Deserialize Context 20130924
6 ENQUEUE Instance method Public Method Enqueue variants for a function 20130306
7 GET_LOCAL_TIMESTAMP_FOR_UTC Static method Private Method 20120717
8 GET_VALID_LED_AND_TEXT Instance method Private Method 20120720
9 GET_VARIANT_CONTEXT Instance method Public Method Returns the context of an existing variant 20130305
10 GET_VARIANT_STATE Instance method Public Method Returns the state of the variant 20130304
11 SAVE_VARIANTS_DB Instance method Public Method 20130307
12 SERIALIZE_TO_JSON Instance method Private Method Serealizes the variant to json compatible format 20130924
13 SET_FUNCTION Instance method Public Method Set Function 20130306
Events
Class CL_FDT_WD_VARIANTS_MODEL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 LS_VARIANT Private See coding 20130924 BEGIN OF ls_variant, fct_id TYPE FDT_UUID, name TYPE string, version TYPE string, context TYPE REF TO data, END OF ls_variant
2 S_ENQUEUE_RETURN Public See coding 20130307 BEGIN OF s_enqueue_return, is_locked TYPE boole_d, lock_user TYPE uname, END OF s_enqueue_return
3 TS_VARIANT Private See coding 20130425 ts_variant TYPE SORTED TABLE OF fdts_wd_variants_header WITH UNIQUE KEY index
Method Signatures

Method CHECK_VARIANT_EXISTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID FDT: Universal Unique Identifier 20120717
2 Importing IV_NAME Call by reference Type reference (TYPE) IF_FDT_TYPES=>NAME FDT: Name 20120717
3 Returning RV_EXISTS Value transfer Type reference (TYPE) WDY_BOOLEAN Replacement for Real Boolean Type: 'X' == True '' == False 20120717

Method CHECK_VARIANT_EXISTS on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method CREATE_VARIANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CONTEXT Call by reference Object reference (TYPE REF TO) IF_FDT_CONTEXT FDT: Context 20120717
2 Importing IS_VARIANT Call by reference Type reference (TYPE) FDT_VARIANTS FDT: Variants 20120717
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20130307

Method DELETE_VARIANTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_VARIANTS Call by reference Type reference (TYPE) FDTT_WD_VARIANTS_HEADER FDT: Table Type for Variants Header 20120809
2 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) FDT_UUID FDT: Universal Unique Identifier 20120809

Method DELETE_VARIANTS on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method DEQUEUE Signature

Method DEQUEUE on class CL_FDT_WD_VARIANTS_MODEL has no parameter.
Method DEQUEUE on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method DESERIALIZE_FROM_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20130924
2 Importing IV_JSON Call by reference Type reference (TYPE) STRING 20130924
3 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) FDT_TIMESTAMP 20130924
4 Returning RO_CONTEXT Value transfer Object reference (TYPE REF TO) IF_FDT_CONTEXT FDT: Context 20130924

Method DESERIALIZE_FROM_JSON on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method ENQUEUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20130306
2 Returning RS_RETURN Value transfer Type reference (TYPE) S_ENQUEUE_RETURN Return structure 20130311
# Exception Resumable Description Created on
1 CX_FDT_SYSTEM FDT: System Failure 20130306

Method GET_LOCAL_TIMESTAMP_FOR_UTC 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) 20120717
2 Returning RV_LOCAL_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP Field of length 16 20120717

Method GET_LOCAL_TIMESTAMP_FOR_UTC on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method GET_VALID_LED_AND_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LED Call by reference Type reference (TYPE) STRING 20120720
2 Exporting EV_TEXT Call by reference Type reference (TYPE) STRING 20120720
3 Importing IV_VALID_STATE Call by reference Type reference (TYPE) STRING 20130304

Method GET_VALID_LED_AND_TEXT on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method GET_VARIANT_CONTEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20130305
2 Importing IV_NAME Call by reference Type reference (TYPE) IF_FDT_TYPES=>NAME Beschreibung 20130305
3 Returning RO_CONTEXT Value transfer Object reference (TYPE REF TO) IF_FDT_CONTEXT FDT: Context 20130305

Method GET_VARIANT_CONTEXT on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method GET_VARIANT_STATE Signature

Method GET_VARIANT_STATE on class CL_FDT_WD_VARIANTS_MODEL has no parameter.
Method GET_VARIANT_STATE on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method SAVE_VARIANTS_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_NEW_VARIANTS Call by reference Type reference (TYPE) FDTT_WD_VARIANTS_HEADER FDT: Table Type for Variants Header 20130307
2 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) FDT_UUID FDT: Universal Unique Identifier 20130307

Method SAVE_VARIANTS_DB on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method SERIALIZE_TO_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CONTEXT Call by reference Object reference (TYPE REF TO) IF_FDT_CONTEXT FDT: Context 20130924
2 Importing IS_VARIANT Call by reference Type reference (TYPE) FDT_VARIANTS FDT: Variants 20130924
3 Returning RV_JSON_STRING Value transfer Type reference (TYPE) STRING 20130924

Method SERIALIZE_TO_JSON on class CL_FDT_WD_VARIANTS_MODEL has no exception.

Method SET_FUNCTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20130306

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