Fonction SAP CACS_LOG_COPY - Copy Messages of one Handle to The Messages Of Another

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ARBGB SMESG-ARBGB C 20 X Message ID
I_FLG_DELETE_BUFFER BOOLEAN C 1 X Boolean Variable (X=true, -=false, space=unknown)
I_LOG_HANDLE_FROM BALLOGHNDL C 22 Application Log: Log Handle
I_LOG_HANDLE_TO BALLOGHNDL C 22 Application Log: Log Handle
I_MSGTY SMESG-MSGTY C 1 X Type of message (I, S, W, E, A)
I_MSGV1 SMESG-MSGV1 C 50 SPACE X First variable parameter of message
I_MSGV2 SMESG-MSGV2 C 50 SPACE X Second variable parameter of message
I_MSGV3 SMESG-MSGV3 C 50 SPACE X Third variable parameter of message
I_MSGV4 SMESG-MSGV4 C 50 SPACE X Fourth variable parameter of message
I_PARAMS BAL_S_PARM v 112 X Application Log: Parameters
I_TXTNR 0 X Message Number

Exception Description
LOG_IS_FULL Log Is Full
LOG_NOT_FOUND Log (i_log_handle_to) not found
MSG_INCONSISTENT Message inconsistent
MSG_NOT_FOUND Message not found
MSG_NOT_STORED Message not added
SEVERE_ERROR Critical Error

Functionality
The messages of a handle collected till now (I_LOG_HANDLE_FROM) arecopied to the messages of another handle (I_LOG_HANDLE_TO).
There can be two cases:
A header message (header line for messages, which are copied) is sentbefore copyingIn this case, at first, the message level is increased by1, so that thenew messages can be indented in the tree by one level.Hereby, the level of each message in the old log is takenintoconsideration. You go back to the original level of H-message oncethe messages are appended.
In case no header message is sent before adding, the messages are addedat the current log level.Even here, the levels of the messages of sourcehandle are taken into consideration. You go back to the original levelafter appending the messages.
In case the process does not require those message copied by it, becausee.g. all the messages are managed by this process, then it can give theflag I_FLG_DELETE_BUFFER while calling. If this flag is set, then themessage handle must also be returned while calling the function moduleCACS_LOG_MESSAGES_GIVE. With this message handle, the original messageis deleted from the main memory by calling function moduleBAL_LOG_MSG_DELETE.