MUNDOSAP

Regresar   MUNDOSAP > DESARROLLO > Programación ABAP IV
Nombre de Usuario
Contraseña
Home Descargas Registrar FAQ Miembros Calendario Buscar Temas de Hoy Marcar Foros Como Leídos




 
Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Viejo 23/09/08, 15:42:24
juanfcorp juanfcorp is offline
Junior Member
 
Fecha de Ingreso: mar 2006
Mensajes: 4
Lectura de LOG

Hola.

Como puedo obtener el log de un programa que se ejecuto por medio de un JOB, y necesito hacer un programa Z que mueste los logs de los Jobs ejecutados, alguin sabe como hacelo ???.

saludos!!!
Responder Con Cita
  #2  
Viejo 23/09/08, 16:10:37
Avatar de XtiaN
XtiaN XtiaN is offline
Member
 
Fecha de Ingreso: jul 2008
Mensajes: 42
Hola, has probado con BMV0 o SM21?? dale una chekeada por si acaso te sirve y si es asi pues simplemente has un Batch Input a partir de alguna de ellas.

Saludos,
Christian.
Responder Con Cita
  #3  
Viejo 23/09/08, 17:34:49
juanfcorp juanfcorp is offline
Junior Member
 
Fecha de Ingreso: mar 2006
Mensajes: 4
Hola, Gracias por su ayuda.

Pero en contre una forma de hacerlo y queda muy bien... les paso el codigo por si alguien lo necesita.... Saludos!!!

*-- se llama al programa UPC_BUNDLE_EXECUTE_STEP con variante
DATA: timlo TYPE sy-timlo.

MOVE: sy-timlo TO timlo.

SUBMIT upc_bundle_execute_step USING SELECTION-SET p_param AND RETURN.

*-- parte que Recupera y genera el LOG
DATA:
c_s_log_filter TYPE bal_s_lfil,
l_t_log_header TYPE balhdr_t,
l_t_log_handle TYPE bal_t_logh,
read_from_db_hdr(1) TYPE c,
l_t_log_loaded TYPE bal_t_logh,
l_s_display_profile TYPE bal_s_prof.

FIELD-SYMBOLS:
<l_s_log_header> TYPE balhdr.

CALL FUNCTION 'BAL_FILTER_CREATE'
EXPORTING
i_object = '*'
i_subobject = '*'
i_extnumber = '*'
i_aldate_from = sy-datum "'20080922'
i_aldate_to = sy-datum "'20080923'
i_altime_from = timlo "'000000'
i_altime_to = sy-timlo "'105807'
i_probclass_to = '4'
i_alprog = '*'
i_altcode = '*'
i_aluser = sy-uname
i_almode = '*'
IMPORTING
e_s_log_filter = c_s_log_filter.


CALL FUNCTION 'BAL_DB_SEARCH'
EXPORTING
i_s_log_filter = c_s_log_filter
IMPORTING
e_t_log_header = l_t_log_header
EXCEPTIONS
log_not_found = 1
no_filter_criteria = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

LOOP AT l_t_log_header ASSIGNING <l_s_log_header>.
CALL FUNCTION 'BAL_LOG_EXIST'
EXPORTING
i_log_handle = <l_s_log_header>-log_handle
EXCEPTIONS
log_not_found = 1.
IF sy-subrc = 0.
INSERT <l_s_log_header>-log_handle INTO TABLE l_t_log_handle.
DELETE l_t_log_header.
ENDIF.
ENDLOOP.

CALL FUNCTION 'BAL_DB_LOAD'
EXPORTING
i_t_log_header = l_t_log_header
i_do_not_load_messages = read_from_db_hdr
IMPORTING
e_t_log_handle = l_t_log_loaded
EXCEPTIONS
OTHERS = 0.
INSERT LINES OF l_t_log_loaded INTO TABLE l_t_log_handle.

CALL FUNCTION 'BAL_DSP_PROFILE_STANDARD_GET'
IMPORTING
e_s_display_profile = l_s_display_profile
EXCEPTIONS
OTHERS = 0.

CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_t_log_handle = l_t_log_handle
i_s_display_profile = l_s_display_profile
EXCEPTIONS
no_authority = 1
OTHERS = 2.
Responder Con Cita
Respuesta


Herramientas Buscar en Tema
Buscar en Tema:

Búsqueda Avanzada
Desplegado

Reglas de Mensajes
no puedes crear nuevos temas
no puedes responder temas
no puedes adjuntar archivos
no puedes editar tus mensajes

El código vB está On
Las caritas están On
Código [IMG] está On
Código HTML está Off
Saltar a Foro


Husos Horarios son GMT. La hora en este momento es 08:53:37.


www.mundosap.com 2006 - Spain
software crm, crm on demand, software call center, crm act, crm solutions, crm gratis, crm web