Un Usuario hizo la siguiente pregunta
Creé un registro de la aplicación y le agregué mensajes.
¿Cómo podemos ver el registro de la aplicación?
gracias y saludos ……
5 respuestas
Ex miembro
Hola Sharada,
Use CALL FUNCTION ‘BAL_DSP_LOG_DISPLAY’ para mostrar el registro de la aplicación. Hay muchas formas de mostrar el registro de una aplicación, como una ventana emergente, como una normal, como un árbol. Puede jugar con APPLICATION con estos programas estándar.
SBAL_DEMO_01
SBAL_DEMO_02
SBAL_DEMO_03
SBAL_DEMO_04
SBAL_DEMO_04_ *
SBAL_DEMO_05
Aún así, si necesita más sobre esto, hágamelo saber.
Programa de muestra
**************************************************************** * create a log where all message should be added to **************************************************************** PERFORM log_create. *********************************************************************** * Add information that this is a check for passenger flights *********************************************************************** * this informnation can be added as a free text PERFORM msg_add_free_text USING text-002. PERFORM msg_add_free_text USING text-003. * *********************************************************************** * display log file *********************************************************************** PERFORM log_display. *-------------------------------------------------------------------- * FORM LOG_CREATE *-------------------------------------------------------------------- FORM log_create. DATA: l_s_log TYPE bal_s_log. * define some header data of this log l_s_log-extnumber="Application Log Demo". "#EC NOTEXT l_s_log-aluser = sy-uname. l_s_log-alprog = sy-repid. * ... * create a log CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDFORM. *-------------------------------------------------------------------- * FORM MSG_ADD_FREE_TEXT *-------------------------------------------------------------------- FORM msg_add_free_text USING value(i_text) TYPE c. * add this message to log file * (I_LOG_HANDLE is not specified, we want to add to the default log. * If it does not exist we do not care =>EXCEPTIONS log_not_found = 0) CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING * I_LOG_HANDLE = i_msgty = 'S' i_text = i_text EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDFORM. *-------------------------------------------------------------------- * FORM LOG_DISPLAY *-------------------------------------------------------------------- FORM log_display. DATA: l_s_display_profile TYPE bal_s_prof, l_s_fcat TYPE bal_s_fcat. * get a prepared profile CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET' IMPORTING e_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. * show log file with modified output profile * - we specify the display profile since we created our own * - we do not specify any filter (like I_S_LOG_FILTER, ..., * I_T_MSG_HANDLE) since we want to display all messages available CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING * I_S_LOG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_S_MSG_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_T_LOG_HANDLE = * I_T_MSG_HANDLE = i_s_display_profile = l_s_display_profile EXCEPTIONS OTHERS = 1. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF.
Sobre,
Raghav
Ex miembro
¿Utiliza BAL_LOG ….. módulos funcionales ??.
Si es así, se pueden realizar registros en una transacción SLG1.
BR
El mensaje fue editado por Jacek Slowikowski
Ex miembro
Compruebe estos tcodes.
BDR1
CONV01
LLDEL
PRICATLOG
PRECIO
VI15
Ex miembro
Hola Sharadha,
Ver BAL_INICIAR SESIÓN FM,
Y también echa un vistazo a SLG0 y SLG1 .. (SLG1 es la transacción para ver la aplicación registros. para agregar mensajes o crear uno nuevo, deberá consultar el grupo de funciones SLG0).
Sobre,
Abhy
El mensaje fue editado por: Abhy Thomas