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

substitute for WA_Query and GUI_GET_FILE_INFO

hi all,

I need to use WS_QUERY FM and got its subtitute GUI_GET_FILE_INFO from the SFES function group.

but when calling the FM GUI_GET_FILE_INFO using pattern i get the message that its Obsolete.

whats the substitute for GUI_GET_FILE_INFO ?

Regds,

stock.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 09:30 AM

    Hi,

    Check out the code.

    data: obj type ref to cl_gui_frontend_services.

    start-of-selection.

    CREATE OBJECT OBJ

    • EXCEPTIONS

    • NOT_SUPPORTED_BY_GUI = 1

    • CNTL_ERROR = 2

    • others = 3

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    data: res .

    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

    EXPORTING

    FILE = 'C:\test.txt'

    RECEIVING

    RESULT = res.

    • EXCEPTIONS

    • CNTL_ERROR = 1

    • ERROR_NO_GUI = 2

    • WRONG_PARAMETER = 3

    • NOT_SUPPORTED_BY_GUI = 4

    • others = 5

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    write: 'res ' , res.

    if res = 'X'. then file exists.

    regards,

    Santosh Thorat

    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.