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

Regarding Obsolete FM s

Hi all,

can anybody tell me the alternative ECC6.0 function modules of the following Obsolete function modules

WS_FILENAME_GET

WS_QUERY

POPUP_TO_CONFIRM_STEP

POPUP_TO_CONFIRM_WITH_MESSAGE

Thanks

Sandeep

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:24 AM

    Hi,

    <b>For ws_filename_get</b>

    Use Class

    CL_GUI_FRONTEND_SERVICES

    For saving you can use

    cl_gui_frontend_services=>file_save_dialog

    and for opening file

    cl_gui_frontend_services=>file_open_dialog

    <b>for ws_query</b>

    The Equivalent Function Module for WS_QUERY-File Exist in ABAP 4.7 is

    CL_GUI_FRONTEND_SERVICES=>FILE_EXIST or WS_QUERY-Directory Exist is CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST.

    For remaining use... Popup_to_confirm

    Regards,

    Omkar.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      For file exist..

      data: l_filename type string.

      data l_ret(1) type c.

      l_filename = 'C:\test.txt'.

      call method cl_gui_frontend_services=>file_exist

      exporting

      file = l_filename

      receiving

      result = l_ret

      exceptions

      others = 1.

      if l_ret = 'X'.

      write:/ 'File exists'.

      else.

      write:/ 'file doesnt exist'.

      endif.

      Regards,

      Omkar.

  • Posted on Nov 21, 2007 at 10:07 AM

    For the first two check out the methods of the class CL_GUI_FRONTEND_SERVICES

    For the latter, if you click on "function module documentation", you'll see the first line says : Do not use! Please use POPUP_TO_CONFIRM.

    matt

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:11 AM

    hi,

    reffer respective threads,

    WS_FILENAME_GET - Problem with WS_FILENAME_GET

    WS_QUERY - CALL FUNCTION 'WS_QUERY'

    POPUP_TO_CONFIRM_STEP- replacement for function modules

    these may answer your question

    regards,

    pavan

    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.