CL_APL_ECATT_PARAMS - Parameter Definition for Test Data

Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Functionality

General

Objects of the object type CL_APL_ECATT_PARAMS contain lists of eCATT parameters with their definitions and values.

The definition of an eCATT parameter specifies, among other things,

its reference type. References to internal ABAP types, structures, data elements, and tables definedin the ABAP Dictionary of an R/3 System are all valid. This enables parameters to have deep structures - that is, they may contain several subcomponents.

Each defined parameter contains a default value.

Variants of parameters can also be defined. Each parameter contains one parameter value in each of its variants.

Instantiation

Objects of the type CL_APL_ECATT_PARAMS are usually as part of other eCATT objects and are saved andread with these in the database. This means that if an object of the type CL_APL_ECATT_MODULE or CL_APL_ECATT_TEST_DATAexists, its attribute PARAMS should also be instantiated. The method GET_PARAM_DEF would then be accessed as follows:

,,DATA: my_ecatt TYPE REF TO CL_APL_ECATT_MODULE,

,,      tmp_var  TYPE REF TO CL_APL_ECATT_OBJECT.

,,...

,,CALL METHOD CL_APL_ECATT_MODULE=>SHOW_OBJECT

,,,,,,,,EXPORTING ...

,,,,,,,,IMPORTING tmp_var.

,,my_ecatt ?= tmp_var.

,,CALL METHOD my_ecatt->params->GET_PARAM_DEF

,,,,,,,,EXPORTING ...

,,,,,,,,IMPORTING ... .

Structured Parameters

Structured parameters are stored in XML files.

A parameter is defined in its structure by a reference to an object defined in the ABAP Dictionary.This structure is mapped in an XML schema file and saved according to the eCATT parameter definition. The values of the variants of this type of parameter are stored in XML data files.

You can create an initial XML template from the XML schema file to maintain the XML data file and use it.

The XML schema of a parameter is implicitly created when all SET_PARAM_DEF methods are called.

An XML data file is created when GET_PARAM_VALUE is first accessed.

Both XML schema data and XML data files are stored persistently in eCATT tables. This procedure anticipatesthe later access by remote systems to Dictionary information. In this situation the persistent information,instead of the current information from the remote system, can be used if there is a breakdown in the connection to the remote system.

Public Methods

CONSTRUCTOR

Parameter processing

GET_PARAM_DEFSelective read-access to an
individual parameter definition
GET_PARAM_VALUESelective read access to an
individual parameter value
GET_PARAMS_DEFSelective read access to several
parameter definitions in one call
GET_PARAMS_VALUESSelective read access to several
parameter values in one call
GET_PARAMSRead access to all
parameters (definition + default value) in one call
SET_PARAM_DEFWrite access to several
parameter definitions
SET_PARAM_VALUEWrite access for several
parameter contents (default value + variants)
SET_PARAMSWrite access for several
parameters (definition + default value)
PARAM_EXISTSExistence check for parameter
CHECK_DATAChecks parameters, reads all
Reference types, texts, ...
CHECK_PARAM_NAMESChecks that parameter names are correct
DELETE_ALL_PARAMETERSDeletes all parameters (not in database)
DELETE_PARAMETERDeletes individual parameters (not in database)
Variant maintenance

! ! ! Variant processing is still not been changed and enhanced ! ! !

ADD_VARIANTCreate variant
REMOVE_VARIANTDelete variant
RENAME_VARIANTRename variant
VARIANT_EXISTSCheck existence of variant


Object processing parameter object

DELETEDelete parameter definitions and values in database
deletion
READRead from database
SAVESave in database

Protected Methods

SET_PARAM_XML_DATAGenerates XML data object,
(from READ_XML_DATA used internally)
SET_PARAM_DEF_INTERNALSets parameter definitions internally
SET_PARAM_XML_SCHEMEUpdates instances of CL_APL_ECATT_XML_SCHEME
CREATE_VARIANTCreate variant
GET_PARAM_XML_DATAGets values of structured parameters
GET_PINDEXReads value of field PINDEX from
parameter definition
READ_XML_DATAReads XML data of structured
parameters from DB
READ_XML_SCHEMESReads XML schemas of structured
parameters from DB
SAVE_PARAM_DEFSaves parameter definitions
SAVE_PARAM_VALSaves parameter values
PREPARE_XML_SAVINGFormats XML stream for saving
RAISE_CX_ECATT_APL_PARAMTriggers exception CX_ECATT_APL_PARAM
UPDATE_PARAM_XML_DATAUpdates XML_DATA Reference in ITab PARAM_VAL_TAB
UPDATE_TYPE_REFReads attributes of type reference from DDIC

Attributes

Public attributes

PARAM_TABInternal table of parameter definitions
PARAM_VAL_TABInternal table of parameter values

Protected Attributes

CONTAINERReference to eCATT object
that contains this parameter object
DB_TAB_NAME_PARName of database table
for parameter definitions
DB_TAB_NAME_VALName of database table
for parameter values
DB_TAB_NAME_PAR_XMLName der Datenbanktabelle der
Parameter values for XML parameters
PINDEXMaximum parameter index

Private attribute

_PARAM_VAL_TABDummy for rose link

Relationships

Example

Notes

Further information

Functionality

Relationships

Example

Notes

Further information

Functionality

Relationships

Example

Notes

Further information



ABAP Short Reference   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 11554 Date: 20120526 Time: 084635     triton ( 203 ms )