Skip to Content
author's profile photo Former Member
Former Member

CL_GUI_FRONTEND_SERVICES Documentation

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 29, 2005 at 03:08 PM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 29, 2005 at 03:20 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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!!

  • Posted on Sep 30, 2005 at 03:28 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.