Ver Mensaje Individual
  #1  
Viejo 18/05/10, 21:07:34
Lorenzo34 Lorenzo34 is offline
Junior Member
 
Fecha de Ingreso: may 2010
Mensajes: 2
Aplicar nota sap

Hola amigos,
Tengo que aplicar una nota sap, y en uno de los pasos me pide recorrer una tabla de errores "ex_messages" buscando el atributo "CREATE BY" o "CLOSED_BY" validando con el message_number = "058", si es encontrado se debe borrar esa fila.
Pero el caso es que la estructura del ex_message contiene una interface como campo, la interface es IF_SRM_EDIT_ATTRIBUTE_VALUE y el nombre del campo es ATTR_VALUE.
La nota como sugerencia me dice que el campo ex_message-attr_value contiene la referencia a la interface IF_SRM_ATTRIBUTE_VALUE del atributo. y el IF_SRM_ATTRIBUTE_VALUE-ID contiene el nombre tecnico del atributo.
Como esta en la nota:
You can implement the following logic for clearing off the "ex_messages" table:

loop at the ex_messages table into the workarea:
if the attribute is CREATED_BY (or CLOSED_BY) & the message number
is 058 (which means user details doesn't exist in the system)
then delete that entry from the ex_messages table.
endloop
HINT: the "attr_value" field in ex_message table contains references to
IF_SRM_ATTRIBUTE_VALUE interfaces of the attributes. IF_SRM_ATTRIBUTE_VALUE->ID will contain the attribute technical name.


El caso es que no se como acceder y leer esta interface, se que debeo recorrer la tabla de mensajes, pero no se como leer estos atributos.
Agradezco a quien me de una ayuda.

Lorenzo
Responder Con Cita