It's an usual activity during the implementation of an extension, the research of bapi(s) that performs the execution of the business process or task , and the best way to confirm if this is the right one is performing a test. However when you test it using the tcode SE37, you cannot check the behavior unless you commit the process. At this point, usually we go to the SE38 in order to create a new test program.
Rather than creating a new program you can use this functionality:
Una actividad habitual durante la implementación de una extensión, es la investigación de bapi (s) que puedan llevar a cabo la ejecución de los procesos de negocio o tareas, y la mejor manera de confirmar si una es el más adecuada es realizando una prueba. Sin embargo cuando se prueba utilizando la SE37, no se puede comprobar el comportamiento a menos que se ejecute un commit en la base de datos. En este momento usualmente nos vamos a la se38 y creamos un pequeño programa para hacer la prueba.
En lugar de crear un nuevo programa podemos utlizar esta funcionalidad no muy publicitada:
1.- Go to tcode SE37
2.- Menu Function
Module -> Execute -> Test Sequences
3.- Enter your function modules and at the end
BAPI_TRANSACTION_COMMIT.
4.-Execute
You'll be able to test your function modules one after the
other.
Hope be useful!
Regards,
By Jose Antonio Lagonell

No comments:
Post a Comment