Hi Pisačić,
at the end i was able to run a personal pfunction but without logging functionalities. The customer wanted to call an RFC inside PFunction, but after raised an incident to sap to help us, SAP answer that is not supported doing this thing.
At the moment i also change project and i working in other environment at all.
Regards