<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Replacement  for  ws_query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839899#M665100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me regarding this issue. Requirement is it has to return the path like C:\Program Files\SAP\FrontEnd\sapgui. when iam trying to replace ws_query with its_query, its giving dump and if i use some methods which are there in sdn, i didnt get the required result(path). Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'WS_QUERY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            query          = 'XP'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return         = p_patout&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inv_query      = 1&lt;/P&gt;&lt;P&gt;            no_batch       = 2&lt;/P&gt;&lt;P&gt;            frontend_error = 3&lt;/P&gt;&lt;P&gt;            OTHERS         = 4.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 12:22:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T12:22:39Z</dc:date>
    <item>
      <title>Replacement  for  ws_query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839899#M665100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me regarding this issue. Requirement is it has to return the path like C:\Program Files\SAP\FrontEnd\sapgui. when iam trying to replace ws_query with its_query, its giving dump and if i use some methods which are there in sdn, i didnt get the required result(path). Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'WS_QUERY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            query          = 'XP'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return         = p_patout&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inv_query      = 1&lt;/P&gt;&lt;P&gt;            no_batch       = 2&lt;/P&gt;&lt;P&gt;            frontend_error = 3&lt;/P&gt;&lt;P&gt;            OTHERS         = 4.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839899#M665100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T12:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Replacement  for  ws_query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839900#M665101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA lv_winsys(10). "Returncode for operating system check
  DATA lv_path LIKE rlgrap-filename VALUE 'C:'. "Default Path
  DATA lv_path2 LIKE rlgrap-filename VALUE 'C:'. "Default Path
  DATA lv_mode VALUE 'O'.
  DATA lv_file LIKE rlgrap-filename.

  DATA lv_title1(24) VALUE 'System-Message: ABORTION'.
  DATA lv_title2(24) VALUE 'System-Message: ABORTION'.
  DATA lv_message1(48) VALUE
              '32-bit Windows Operating-System needed on Client'.
  DATA lv_message2(35) VALUE 'Action aborted due to system error!'.
  DATA lv_title3(14) VALUE 'Select a File:'.
  DATA lv_mask(16) VALUE ',All Files,*.*,.'.

  IF NOT pc_file IS INITIAL.
* Split Filename in Path and Filename
    CALL FUNCTION '/SAPDMC/LSM_PATH_FILE_SPLIT'
      EXPORTING
        pathfile = lv_file
      IMPORTING
        pathname = lv_path2.
*              filename = lv_file.
    IF NOT lv_path2 IS INITIAL.
      lv_path = lv_path2.
    ENDIF.
  ENDIF.

* Check if there is a 32bit Windows system installed on client
  CALL FUNCTION 'WS_QUERY'
    EXPORTING
      query          = 'WS'
    IMPORTING
      return         = lv_winsys
    EXCEPTIONS
      inv_query      = 1
      no_batch       = 2
      frontend_error = 3
      OTHERS         = 4.
* Raise Error if the operating system id different than 32 bit Windows
  IF sy-subrc &amp;lt;&amp;gt; 0 OR lv_winsys(4) &amp;lt;&amp;gt; 'WN32'.
    CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
      EXPORTING
        popup_title  = lv_title1
        is_error     = 'X'
        message_text = lv_message1
        start_column = 25
        start_row    = 6.
    EXIT.
  ENDIF.

* Get the File
  CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
      def_filename     = '*.*'
      def_path         = lv_path
      mask             = lv_mask
      mode             = lv_mode
      title            = lv_title3
    IMPORTING
      filename         = lv_file
    EXCEPTIONS
      inv_winsys       = 1
      no_batch         = 2
      selection_cancel = 3
      selection_error  = 4
      OTHERS           = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    IF sy-subrc &amp;lt;&amp;gt; 3.
      CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
        EXPORTING
          popup_title  = lv_title2
          is_error     = 'X'
          message_text = lv_message2
          start_column = 25
          start_row    = 6.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839900#M665101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T15:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replacement  for  ws_query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839901#M665102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 08:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacement-for-ws-query/m-p/2839901#M665102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T08:38:31Z</dc:date>
    </item>
  </channel>
</rss>

