MUNDOSAP

MUNDOSAP (foro/index.php)
-   Programación ABAP IV (foro/forumdisplay.php?f=4)
-   -   Aplicar nota sap (foro/showthread.php?t=36842)

Lorenzo34 18/05/10 21:07:34

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


Husos Horarios son GMT. La hora en este momento es 09:22:22.

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