Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems with user exit CLFM0002

Former Member
0 Likes
1,133

Hi,

I have used the user exit CLFM0002 in DMS and I have the following problem. When I call this user exit I can validate the classification data that I have created and I can show a error message if the data are wrong, but after that, if the user change this data and put a correct value, the system keep on reading the old incorrect data instead the new one that is correct. After click enter the old value is fixed in the field and the correct new value dissappears.

I am working with 46c.

¿How can I solve this problem?

Thanks

Andrés.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
782

Hola Andres,

Yo estoy utilizando la misma user-exit para la creación y modifcación de la clasificación en el maestro de materiales.

Lo que yo hago es distinguir por el campo T_ALLAUSP-status si es una H es el nuevo valor, si es una L es el antiguo y si es inicial es que no se está tratando. Todavía la estoy probando, pero creo que funciona asi.

Un beso,

Soledad

Hi,

I have used the user exit CLFM0002 in DMS and I have the following problem. When I call this user exit I can validate the classification data that I have created and I can show a error message if the data are wrong, but after that, if the user change this data and put a correct value, the system keep on reading the old incorrect data instead the new one that is correct. After click enter the old value is fixed in the field and the correct new value dissappears.

I am working with 46c.

¿How can I solve this problem?

Thanks

Andrés.

3 REPLIES 3
Read only

Former Member
0 Likes
783

Hola Andres,

Yo estoy utilizando la misma user-exit para la creación y modifcación de la clasificación en el maestro de materiales.

Lo que yo hago es distinguir por el campo T_ALLAUSP-status si es una H es el nuevo valor, si es una L es el antiguo y si es inicial es que no se está tratando. Todavía la estoy probando, pero creo que funciona asi.

Un beso,

Soledad

Read only

0 Likes
782

Hola Soledad.

Sí, ya lo había visto, pero el problema es que cuando devuelves un error porque el usuario ha introducido un valor incorrecto en los registros de la tabla T_ALLAUSP sigue guardando los valores antiguos, incluidos la H del campo status.

Para que refresque el usuario tiene que pulsar en el botón clasificación (en mi caso) o en cualquier pestaña y volver a la anterior. Esto no es muy ágil,

porque lo normal es que tras el error y pulsar intro pudiesen introducir el valor bueno.

Yo creo que funciona mal, de hecho en la versión 4.7 ya esto no ocurre, pero por desgracia, ahora trabajo con la 4.6 c y no hay manera de subir de parches,

he metido mil notas pero no acaba de arreglarse.

¡Muchas gracias por tu respuesta!

un beso,

Andrés.

Read only

Former Member
0 Likes
782

When you change a value, set the flag E_ACTIVE (EXIT_SAPLCLFM_002) for the changes to be committed.