SAP ABAP Class CL_WCAT_APPLLOG (Service class for application log functionality)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-AB-CA (Application Component) Distribution
     WCAT (Package) Trading: Cost Allocation
Properties
Class CL_WCAT_APPLLOG  
Short Description Service class for application log functionality    
Super Class    
Instantiability of a Class 1  Protected 
Final    
General Data
Message Class    
Program status     
Category 0   
Package WCAT   Trading: Cost Allocation 
Created 20090213   SAP 
Last change 20100310   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)
Interfaces
Class CL_WCAT_APPLLOG has no interface implemented.
Friends
Class CL_WCAT_APPLLOG has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_SUBOBJ_RBPV Constant Public Type reference (TYPE) BALSUBOBJ 'RBPV' Application Log: Subobject 20090213
2 MT_INSTANCES Static Attribute Private Type reference (TYPE) T_LOGS Table with application logs 20090213
3 MT_MESSAGES Instance attribute Private Type reference (TYPE) T_MSG Message table 20090213
4 MV_ERROR Instance attribute Private Type reference (TYPE) ABAP_BOOL Error occured? 20090213
5 MV_EXTNUMBER Instance attribute Private Type reference (TYPE) BALNREXT Application Log: External ID 20090226
6 MV_MSG Instance attribute Public Type reference (TYPE) STRING Message text 20090219
7 MV_SUBOBJECT Instance attribute Private Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20090226
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MESSAGE Instance method Public Method Add message to application log 20090213
2 CLEAR Instance method Public Method Clear application log 20090213
3 CONSTRUCTOR Instance method Protected Constructor 20090226
4 GET_INSTANCE Static method Public Method Get instance 20090213
5 HAS_ERROR_OCCURED Instance method Public Method Has an error occured? 20090213
6 SAVE_DB_AND_REFRESH Instance method Private Method Save messages to database and refresh log 20090213
7 SAVE_MESSAGES Instance method Public Method Save messages to database 20090213
8 SET_EXTNUMBER Instance method Public Method Set external number 20090226
9 SET_SUBOBJECT Instance method Public Method Set Subobject 20090226
Events
Class CL_WCAT_APPLLOG has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 S_LOGS Private See coding Application log structure 20090213 BEGIN OF s_logs, id TYPE string, appllog TYPE REF TO cl_wcat_appllog, END OF s_logs
2 S_MSG Private See coding Message structure 20090213 BEGIN OF s_msg, subobject TYPE balsubobj, extnumber TYPE balnrext. INCLUDE TYPE bal_s_msg AS msg. TYPES END OF s_msg
3 T_LOGS Private See coding Table with application logs 20090213 t_logs TYPE HASHED TABLE OF s_logs WITH UNIQUE KEY id
4 T_MSG Private See coding Message table 20090213 t_msg TYPE STANDARD TABLE OF s_msg
Method Signatures

Method ADD_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CONTEXT Call by reference Type reference (TYPE) BAL_S_CONT Application Log: Context 20090213
2 Importing IS_PARAMS Call by reference Type reference (TYPE) BAL_S_PARM Application log: Parameters 20090213
3 Importing IV_ALSORT Call by reference Type reference (TYPE) BALSORT Application log: Sort criterion/grouping 20090213
4 Importing IV_DETLEVEL Call by reference Type reference (TYPE) BALLEVEL Application Log: Level of detail 20090213
5 Importing IV_EXTNUMBER Call by reference Type reference (TYPE) BALNREXT Application Log: External ID 20090213
6 Importing IV_MSGID Call by reference Type reference (TYPE) MSGID Message Class 20090213
7 Importing IV_MSGNO Call by reference Type reference (TYPE) MSGNO Message Number 20090213
8 Importing IV_MSGTY Call by reference Type reference (TYPE) MSGTY Message Type 20090213
9 Importing IV_MSGV1 Call by reference Type reference (TYPE) MSGV1 Message Variable 20090213
10 Importing IV_MSGV1_SRC Call by reference Type reference (TYPE) BALMSGVSRC Application Log: Origin of a message variable 20090213
11 Importing IV_MSGV2 Call by reference Type reference (TYPE) MSGV2 Message Variable 20090213
12 Importing IV_MSGV2_SRC Call by reference Type reference (TYPE) BALMSGVSRC Application Log: Origin of a message variable 20090213
13 Importing IV_MSGV3 Call by reference Type reference (TYPE) MSGV3 Message Variable 20090213
14 Importing IV_MSGV3_SRC Call by reference Type reference (TYPE) BALMSGVSRC Application Log: Origin of a message variable 20090213
15 Importing IV_MSGV4 Call by reference Type reference (TYPE) MSGV4 Message Variable 20090213
16 Importing IV_MSGV4_SRC Call by reference Type reference (TYPE) BALMSGVSRC Application Log: Origin of a message variable 20090213
17 Importing IV_MSG_COUNT Call by reference Type reference (TYPE) BALCNTCUM Application Log: Cumulated message count 20090213
18 Importing IV_PROBCLASS Call by reference Type reference (TYPE) BALPROBCL Application log: Message problem class 20090213
19 Importing IV_SUBOBJECT Call by reference Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20090213
20 Importing IV_TIME_STMP Call by reference Type reference (TYPE) BALTIMSTMP Application Log: Message time stamp 20090213

Method ADD_MESSAGE on class CL_WCAT_APPLLOG has no exception.

Method CLEAR Signature

Method CLEAR on class CL_WCAT_APPLLOG has no parameter.
Method CLEAR on class CL_WCAT_APPLLOG has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_EXTNUMBER Call by reference Type reference (TYPE) BALNREXT Application Log: External ID 20090226
2 Importing IV_SUBOBJECT Call by reference Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20090226

Method CONSTRUCTOR on class CL_WCAT_APPLLOG has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_EXTNUMBER Call by reference Type reference (TYPE) BALNREXT Application Log: External ID 20090226
2 Importing IV_ID Call by reference Type reference (TYPE) STRING application log ID 20090213
3 Importing IV_SUBOBJECT Call by reference Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20090226
4 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_WCAT_APPLLOG Service class for application log functionality 20090213

Method GET_INSTANCE on class CL_WCAT_APPLLOG has no exception.

Method HAS_ERROR_OCCURED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_ERROR Value transfer Type reference (TYPE) ABAP_BOOL Error occured? 20090213

Method HAS_ERROR_OCCURED on class CL_WCAT_APPLLOG has no exception.

Method SAVE_DB_AND_REFRESH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LOG_HANDLE Call by reference Type reference (TYPE) BALLOGHNDL Application Log: Log Handle 20090213

Method SAVE_DB_AND_REFRESH on class CL_WCAT_APPLLOG has no exception.

Method SAVE_MESSAGES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_LOG_HANDLES Call by reference Type reference (TYPE) BAL_T_LOGH Application Log: Log Handle Table 20090213

Method SAVE_MESSAGES on class CL_WCAT_APPLLOG has no exception.

Method SET_EXTNUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_EXTNUMBER Call by reference Type reference (TYPE) BALNREXT Application Log: External ID 20090226

Method SET_EXTNUMBER on class CL_WCAT_APPLLOG has no exception.

Method SET_SUBOBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_SUBOBJECT Call by reference Type reference (TYPE) BALSUBOBJ Subobject 20090226

Method SET_SUBOBJECT on class CL_WCAT_APPLLOG has no exception.
History
Last changed by/on SAP  20100310 
SAP Release Created in 605