Do you have any question about this error?
Message type: E = Error
Message class: WS - Supplier Billing Document
Message number: 335
Message text: Messages are no longer included in the application log
Because of an internal error, messages are no longer transferred to the
application log.
Processing continues without the application log.
As a rule, this is due to an internal program error.
As this only affects the log function, processing continues.
Please contact SAP.
Function module &V2& produced the error code (exception) &V1&. It was
called in function module &V3&.
Error message extract from SAP system. Copyright SAP SE.
WS335
- Messages are no longer included in the application log ?SAP Error Message:
WS335 - Messages are no longer included in the application log
Cause:
The error message WS335 occurs when an attempt is made to include or add messages to an application log that has already been closed or finalized. In SAP, application logs are used to record messages during processing, but once the log is closed (i.e., the log handle is released or the log is finalized), no further messages can be added. Trying to add messages after this point triggers the WS335 error.
Explanation:
BAL_LOG_CREATE
, BAL_LOG_MSG_ADD
, and BAL_LOG_CLOSE
.BAL_LOG_CLOSE
, the log handle becomes invalid for adding new messages.Check the program flow:
Correct usage of function modules:
BAL_LOG_CREATE
to create the log.BAL_LOG_MSG_ADD
to add messages.BAL_LOG_CLOSE
only after all messages have been added.Debugging:
BAL_LOG_CLOSE
is called.BAL_LOG_MSG_ADD
calls occur after the log is closed.Code adjustment example:
DATA: log_handle TYPE bal_t_logh.
CALL FUNCTION 'BAL_LOG_CREATE'
EXPORTING
object = 'YOUR_OBJECT'
subobject = 'YOUR_SUBOBJECT'
extnumber = '0001'
IMPORTING
log_handle = log_handle.
" Add messages here
CALL FUNCTION 'BAL_LOG_MSG_ADD'
EXPORTING
log_handle = log_handle
msgid = 'ZMSG'
msgno = '001'
msgty = 'E'
msgv1 = 'Some text'.
" Close the log after all messages are added
CALL FUNCTION 'BAL_LOG_CLOSE'
EXPORTING
log_handle = log_handle.
BAL_LOG_CREATE
- Create application log.BAL_LOG_MSG_ADD
- Add message to log.BAL_LOG_CLOSE
- Close the log.If you provide the specific code or scenario where this error occurs, I can help you pinpoint the exact fix.
Get instant SAP help. Sign up for our Free Essentials Plan.
WS334
Processing lasted &1 hours, &2 minutes, &3 seconds
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS333
No documents were selected
What causes this issue? There are no documents that match the selection criteria. As a result, no documents were selected.System Response The system...
WS336
The application log is already active (internal error)
What causes this issue? The application log is already active. Repeat activation is not possible.System Response Processing is terminated.How to fix...
WS337
The application log could not be initialized
What causes this issue? The application log could not be initialized.System Response Processing is terminated.How to fix this error? This is usuall...
Click on this link to search all SAP messages.