How to add long text to BAL messages?

I create such a journal:

CALL FUNCTION 'BAL_LOG_CREATE'
      EXPORTING
        i_s_log      = ls_log
      IMPORTING
        e_log_handle = mv_log_handle.

Then I add a message to it:

CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
          i_log_handle     = mv_log_handle
          i_s_msg          = ls_msg
        IMPORTING
          e_msg_was_logged = lv_was_logged.

After I save it, I will go to the transaction slg1to find my log object and find my msg: Log Msg in SLG1 But in the SAP demo program SBAL_DEMO_02 I see the message log: It has a cool button with a question mark on the right, if I click on it, I will see even more text.Log Msg with Ltxt

I also want it to be in my journal , how to add this to my journal message?

I looked at the code SBAL_DEMO_02, but I still don't understand how they added it.

+4
source share
2 answers

"self-explainatory" , .

Self-evident and long text

" " .

Definition of long text

, !

+4

. .

msg_add_with_extended_longtext

SBAL_DEMO_02

0

Source: https://habr.com/ru/post/1692408/


All Articles