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 Documentation

Former Member
0 Likes
2,574

Does anyone knows where I can find documentation for this class?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,815

Hi,

I didn't found any documentation too. I think it's not available.

7 REPLIES 7
Read only

Former Member
0 Likes
1,816

Hi,

I didn't found any documentation too. I think it's not available.

Read only

0 Likes
1,815

There must be something.....

Read only

0 Likes
1,815

I also could not find anything. Maybe SAP thinks that it is self-explanitory. Anyway, do you have some specific problem, or are you just looking for the documentation. We could probably give you a hand with your problem.

Regards,

Rich Heilman

Read only

0 Likes
1,815

Believe me, I'm worker in a company which is development partner to sap. I searched in SAP Intranet and didn't found anything. But how knows, perhaps the x-files have a record

Read only

Former Member
0 Likes
1,815

In Rel 6.20 is following (Patch-Level 48):

CL CL_GUI_FRONTEND_SERVICES

____________________________________________________

Text

Frontend Services

Functionality

The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:

File functions

Directory functions

Registry

Environment

Write to / read from clipboard

Upload / download files

Execute programs / open documents

Query functions, such as Windows directory, Windows version, and so on

Standard dialogs (open, save, directory selection)

Example

Determine the temp directory on your PC:

DATA: TEMP_DIR TYPE STRING.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY

CHANGING

TEMP_DIR = TEMP_DIR

EXCEPTIONS

CNTL_ERROR = 1

ERROR_NO_GUI = 2.

IF SY-SUBRC <> 0.

  • Error handling

ENDIF.

  • flush to send previous call to frontend

CALL METHOD CL_GUI_CFW=>FLUSH

EXCEPTIONS

CNTL_SYSTEM_ERROR = 1

CNTL_ERROR = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

  • Error handling

ENDIF.

WRITE: / 'Temporary directory is:', TEMP_DIR.

Notes

The class CL_GUI_FRONTEND_SERVICES is based on the Control Framework. See the documentation for more information, in particular on CL_GUI_CFW=>FLUSH which must be called after many CL_GUI_FRONTEND_SERVICES methods.

Migration Information

The old file transfer model was based on function modules of the function group GRAP. The old features have been replaced by the class CL_GUI_FRONTEND_SERVICES. The following list contains the old function modules (italic) and the new methods (bold) that replace them:

CLPB_EXPORT

CLIPBOARD_EXPORT

CLPB_IMPORT

CLIPBOARD_IMPORT

DOWNLOAD

GUI_DOWNLOAD, dialog replaced by FILE_SAVE_DIALOG

PROFILE_GET

No replacement, use REGISTRY_* methods instead

PROFILE_SET

No replacement, use REGISTRY_* methods instead

REGISTRY_GET

REGISTRY_GET_VALUE, REGISTRY_GET_DWORD_VALUE

REGISTRY_SET

REGISTRY_SET_VALUE, REGISTRY_SET_DWORD_VALUE

UPLOAD

GUI_UPLOAD, dialog replaced by FILE_OPEN_DIALOG

WS_DDE

Obsolete: This function is no longer supported.

SET_DOWNLOAD_AUTHORITY

Obsolete: This function is no longer supported.

WS_DOWNLOAD

GUI_DOWNLOAD

WS_DOWNLOAD_WAN

Obsolete: This function is no longer supported.

WS_EXCEL

Obsolete: This function is no longer supported.

WS_EXECUTE

EXECUTE

WS_FILENAME_GET

FILE_SAVE_DIALOG, FILE_OPEN_DIALOG

WS_FILE_ATTRIB

FILE_SET_ATTRIBUTES, FILE_GET_ATTRIBUTES

WS_FILE_COPY

FILE_COPY

WS_FILE_DELETE

FILE_DELETE

WS_MSG

Obsolete: This function is no longer supported.

WS_QUERY

CD (current directory)

DIRECTORY_GET_CURRENT

EN (read/write environment)

ENVIRONMENT_GET_VARIABLE

ENVIRONMENT_SET_VARIABLE

FL (determine file length)

FILE_GET_SIZE

FE (check if file exists)

FILE_EXIST

DE (check if directory exists)

DIRECTORY_EXIST

WS (determine Windows system)

GET_PLATFORM

OS (operating system)

GET_PLATFORM

WS_UPLDL_PATH

Obsolete: This function is no longer supported.

WS_UPLOAD

GUI_UPLOAD

WS_VOLUME_GET

Obsolete: This function is no longer supported.

-


Not too much, but a bit...

Read only

0 Likes
1,815

Yeah, I got the same thing... I was just looking for documentation, because is not very helpfull to navigate troughout the class and try the method in a "try-error" way....

Anyway, Thanks you all!!

Read only

Former Member
0 Likes
1,815

Hi,

Go through the Program <b>TEST_FRONTEND_SERVICES</b> this will explain u all the methods with example.

Kindly reward and close the thread if ur problem got solved.