Tema: Ok Code
Ver Mensaje Individual
  #2  
Viejo 26/09/07, 08:05:25
Avatar de crounly
crounly crounly is offline
Senior Member
 
Fecha de Ingreso: nov 2006
Localización: Zaragoza, Espaņa
Mensajes: 227
No se si te referiras a los valores que puede tomar el OK_CODE para un programa, vamos los definidos en el PF-STATUS...

Desde la transanccion ve a SISTEMA -> STATUS y haz click sobre el campo 'Status interfase' esto te llevara directamente al STATUS definido para ese programa donde podras ver los textos que tomara OK_CODE.

Lo mismo puedes hacer desde la SE41 si sabes el nombre del programa.

O si lo prefieres con esta funcion:

data: irsmpe_funl type table of rsmpe_funl with header line.


call function 'RS_CUA_GET_FUNCTIONS'
exporting
* LANGUAGE = ' '
program = <programa>
* IMPORTING
* MASTER_LANGUAGE =
tables
function_list = irsmpe_funl
* EXCEPTIONS
* MENU_NOT_FOUND = 1
* PROGRAM_NOT_FOUND = 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.
Responder Con Cita