‎2009 Sep 15 6:17 PM
HI Expert,
I am calling CL_GUI_FRONTEND_SERVICES=>EXECUTE in a RFC for running a Java program.This Java program converts a GIF image to Bitmap.
When i execute this RFC (containing method) manually then there is no problem and it works perfectly but when the same RFC is called through outside means from Java code then it gives error - "Access via NULL Object reference".
How to resolve the error.
Regards,
Abhishek
‎2009 Sep 15 10:26 PM
Methods of class CL_GUI_FRONTEND_SERVICES would only work if you try to execute them form the SAP GUI. That's why your RFC works good when you are running manually.
You can let your JAVA program handle the functionality which you are trying to achieve by running the EXECUTE method.
Regards,
Naimesh Patel
‎2009 Sep 15 10:26 PM
Methods of class CL_GUI_FRONTEND_SERVICES would only work if you try to execute them form the SAP GUI. That's why your RFC works good when you are running manually.
You can let your JAVA program handle the functionality which you are trying to achieve by running the EXECUTE method.
Regards,
Naimesh Patel
‎2009 Sep 16 4:33 AM
Thanks Naimesh,
Thanks for quick reply , actually this RFC has to be called from outside, there is no other alternative. Is there any other method by using which i can achieve the same functionality as i do using EXECUTE method.
Regards,
Abhishek
‎2009 Sep 18 9:58 AM
Your Java program should be presented to the application server as an RFC itself. The last time I did anything like this was 7 years ago, using Com4ABAP. Things have moved on since then, and I'm not sure what the current recommended solution is. What you could do, which isn't as efficient, is present your java program as a web service.
matt