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

Function Module to get sapgui directory

Former Member
0 Likes
996

Hi ,

Need a suggestion . I would like to know <b>Function Module</b> to get SAPGUI Directory. I know cl_gui_frontend_services=>get_sapgui_directory will give me desired result.But i am working in a Environment where classes are not available.So planning to use function module.

Can anyone help me out ???

Thanks & Regards

-


K.Nirmala

2 REPLIES 2
Read only

Former Member
0 Likes
603

check this demo program

TEST_FRONTEND_SERVICES

Read only

Former Member
0 Likes
603

Hi nirmala,

1. use the FM

GUI_GET_DESKTOP_INFO

2. In the TYPE importing parameter

give , 10

for getting sap gui directory.

3. also see the documentation of this parameter,

we can give different values,

to get different information.

4. Value range

1: Host name (host name of current system)

2: Windows directory

3: System directory

4: Temp. directory

5: Domain user name

6: Platform

7: Windows build number

8: Windows version

9: Program name

10: Program path

11: Current directory (Directory for current process)

regards,

amit m.