4GL function on class/representation

Hi everyone, Does anyone know how to run 4GL functions in a class/rep? I have added a method in the SPE but from this one when executing a function it gives an error, the function is ASYRVISU to display a pdf that is in a directory, but I see that other functions are not available either. Thank and greetings for advance.