Fonction SAP UPC_STATISTIC_OPEN - Opens New Entry

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ATTRIB_NAME STRING g 0 X
I_ATTRIB_VALUE ANY A 0 X
I_INITIAL BOOLEAN C 1 '-' X Boolean Variable (X=True, -=False, Space=Unknown)
I_NODE_NAME STRING g 0

Functionality
The SEM-BPS application has its own statistic functions, which storekey figures in database tables for a large number of user activities.This data is first collected internally in the form of a hierarchy andstored in the database table upc_statistic2. A part of the informationis extracted from the hierarchy for easier analysis, and stored in thedatabase table upc_statistic3. Use the transaction bps_stat0 for theevaluation of the individual statistics records and to deletestatistics records.
The statistic functions can be switched on or off. To do this, an 'X'must be entered in the table upc_statistic for the field active.
Forming the hierarchy happens with the help of two function modules:upc_statistic_open and upc_statistic_close. Every call of the openmodule generates a new hierarchy level, which can be exited again bycalling up the appropriate close module. The function moduleupc_statistic_add is used to add further information to the hierarchynodes - the attributes.
To enable an automatic evaluation of the data it is necessary todetermine node and attribute names for certain contents. These namesare stored in the form of constants in the type pool upcst. Allcontents can be transferred as attribute values, which can be convertedinto a string.

Parameter
I_NODE_NAME,,: Name of hierarchy node
I_ATTRIB_NAME,,: Name of attribute on hierarchy node
I_ATTRIB_VALUE,,: Value of attribute
I_INITIAL,,,,: If i_initial = 'X', then an existing hierarchy ispossibly rejected
INCLUDE UPC_STATISTIC_EXAMPLE_01 OBJECT DOKU ID TX