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

cl_gui_frontend_services problem

Former Member
0 Likes
659

Hi everyone,

I am trying to use JCO to call an custom BAPI. But the BAPI uses the class: cl_gui_frontend_services, which JCO cannot handle.

I only need to use two methods of cl_gui_frontend_services:

1. get_platform: Return Operating System Platform

2. gui_download: Download Data to Client PC

I wonder if there are other existing classes or programs which can replace these methods of cl_gui_frontend_services?

Any ideas and suggestions are highly appreciated.

Best,

Bing

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
601

Try to use

1. To get OS of presentation server (local system)

http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3db7358411d1829f0000e829fbfe/content.htm

2. Try to fm DOWNLOAD or WS_DOWNLOAD or GUI_DOWNLOAD. If these are not RFC enabled then write wrapper function module around one of these and use it.

I think CL_GUI_FRONTEND_SERVICES Some methods of this class are not functional using SAP GUI for Java because they are not appropriate for a Java application (like "current directory"), required resources (like the Windows Registry) or Java APIs are not available.

These above said are ONLY alternative solutions

a®

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
602

Try to use

1. To get OS of presentation server (local system)

http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3db7358411d1829f0000e829fbfe/content.htm

2. Try to fm DOWNLOAD or WS_DOWNLOAD or GUI_DOWNLOAD. If these are not RFC enabled then write wrapper function module around one of these and use it.

I think CL_GUI_FRONTEND_SERVICES Some methods of this class are not functional using SAP GUI for Java because they are not appropriate for a Java application (like "current directory"), required resources (like the Windows Registry) or Java APIs are not available.

These above said are ONLY alternative solutions

a®

Read only

0 Likes
601

Thank you so much, a®s! I will try your method.

Best,

Bing

Read only

0 Likes
601

Hi a®s,

Thanks a lot. The problem solved.

Best,

Bing