<?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 Re: absolute function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282177#M152977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your code would return the plafortm (example win32 , etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: nplatform type i.

  call method cl_gui_frontend_services=&amp;gt;get_platform
    receiving
      platform             = nplatform
    exceptions
      error_no_gui         = 1
      cntl_error           = 2
      not_supported_by_gui = 3
      others               = 4.

  if sy-subrc &amp;lt;&amp;gt; 0.
    ndone = -1.
  else.
    ndone = 1.
    case nplatform.
      when cl_gui_frontend_services=&amp;gt;platform_windows95.
        return = 'WN32_95'.
      when cl_gui_frontend_services=&amp;gt;platform_windows98.
        return = 'WN32_98'.
      when cl_gui_frontend_services=&amp;gt;platform_nt351.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_nt40.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_nt50.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_mac.
        return = 'MC'.
      when cl_gui_frontend_services=&amp;gt;platform_os2.
        return = 'PM'.
      when cl_gui_frontend_services=&amp;gt;platform_linux.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_hpux.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_tru64.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_aix.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_solaris.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_macosx.
        return = 'MF'.
      when 14. "PLATFORM_WINDOWSXP
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_unknown.
        return = '??'.
      when others.
        return = '??'.
    endcase.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2006 08:03:09 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-03-13T08:03:09Z</dc:date>
    <item>
      <title>absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282169#M152969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Some one please help in finding the equivalent function module for WS_QUERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 05:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282169#M152969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T05:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282170#M152970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your topic subject and your question inside look like two different things. What do you want to do? May be that will get you more answers, instead of asking for an alternative for WS_QUERY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 05:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282170#M152970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T05:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282171#M152971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi srinivas,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   i am upgrading one program when i am doing EPC it is showing that ws_query is absolute and replace it with the other one can you guide me to that answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 05:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282171#M152971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T05:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282172#M152972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use the methods of class CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use function modules from function group&lt;/P&gt;&lt;P&gt;SFES&lt;/P&gt;&lt;P&gt;as suggested by the WS_QUERY FM documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 05:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282172#M152972</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-11T05:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282173#M152973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, I misunderstood when you said ABSOLUTE instead of OBSOLETE. I thought you were looking for the ABS command and inside you were talking about WS_QUERY, that is why I got confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 15:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282173#M152973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282174#M152974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Obsolete" doesn't mean that it won't work; just that you shouldn't use it in new development. If it's in an existing program you can just leave it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Mar 2006 19:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282174#M152974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-11T19:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282175#M152975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The Equivalent Function Module for WS_QUERY-File Exist in ABAP 4.7 is CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST or WS_QUERY-Directory Exist  is CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_EXIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code for Replacement of WS_QUERY-File Exists is::&lt;/P&gt;&lt;P&gt;data: WK_DIRECTRY(128)   TYPE C .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'WS_QUERY'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       FILENAME       = WK_DIRECTRY&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       QUERY          = 'FE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       RETURN         = RC&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       INV_QUERY      = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       NO_BATCH       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       FRONTEND_ERROR = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OTHERS         = 4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;Repleacement Function module is :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    DATA: W_FILENAME TYPE STRING,&lt;/P&gt;&lt;P&gt;          W_RESULT  TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          W_FILENAME = WK_DIRECTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         FILE                 = W_FILENAME&lt;/P&gt;&lt;P&gt;       RECEIVING&lt;/P&gt;&lt;P&gt;         RESULT               = W_RESULT&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         CNTL_ERROR           = 1&lt;/P&gt;&lt;P&gt;         ERROR_NO_GUI         = 2&lt;/P&gt;&lt;P&gt;         WRONG_PARAMETER      = 3&lt;/P&gt;&lt;P&gt;         NOT_SUPPORTED_BY_GUI = 4&lt;/P&gt;&lt;P&gt;         others               = 5.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-* MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF W_RESULT IS INITIAL.&lt;/P&gt;&lt;P&gt; CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_EXIST&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          DIRECTORY            = W_FILENAME&lt;/P&gt;&lt;P&gt;        RECEIVING&lt;/P&gt;&lt;P&gt;          RESULT               = W_RESULT&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          CNTL_ERROR           = 1&lt;/P&gt;&lt;P&gt;          ERROR_NO_GUI         = 2&lt;/P&gt;&lt;P&gt;          WRONG_PARAMETER      = 3&lt;/P&gt;&lt;P&gt;          NOT_SUPPORTED_BY_GUI = 4&lt;/P&gt;&lt;P&gt;          OTHERS               = 5.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;      IF W_RESULT = 'X'.&lt;/P&gt;&lt;P&gt;         RC = '1'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;         RC = '0'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Mar 2006 11:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282175#M152975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-12T11:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282176#M152976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Thanx for ur Tip but my WS_QUERY looks like below&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          = 'WS'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        return         = l_opsys&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;P&gt;      MOVE sy-subrc TO p_subrc.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; These parameters r not like u gave,   &lt;/P&gt;&lt;P&gt; so,how can i proceed with this function module plz help me,&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 07:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282176#M152976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T07:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282177#M152977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your code would return the plafortm (example win32 , etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: nplatform type i.

  call method cl_gui_frontend_services=&amp;gt;get_platform
    receiving
      platform             = nplatform
    exceptions
      error_no_gui         = 1
      cntl_error           = 2
      not_supported_by_gui = 3
      others               = 4.

  if sy-subrc &amp;lt;&amp;gt; 0.
    ndone = -1.
  else.
    ndone = 1.
    case nplatform.
      when cl_gui_frontend_services=&amp;gt;platform_windows95.
        return = 'WN32_95'.
      when cl_gui_frontend_services=&amp;gt;platform_windows98.
        return = 'WN32_98'.
      when cl_gui_frontend_services=&amp;gt;platform_nt351.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_nt40.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_nt50.
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_mac.
        return = 'MC'.
      when cl_gui_frontend_services=&amp;gt;platform_os2.
        return = 'PM'.
      when cl_gui_frontend_services=&amp;gt;platform_linux.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_hpux.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_tru64.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_aix.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_solaris.
        return = 'MF'.
      when cl_gui_frontend_services=&amp;gt;platform_macosx.
        return = 'MF'.
      when 14. "PLATFORM_WINDOWSXP
        return = 'WN32'.
      when cl_gui_frontend_services=&amp;gt;platform_unknown.
        return = '??'.
      when others.
        return = '??'.
    endcase.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 08:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282177#M152977</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-03-13T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: absolute function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282178#M152978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx Durairaj Athavan Raja ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Your code really solved my problem Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2006 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/absolute-function/m-p/1282178#M152978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-13T08:53:13Z</dc:date>
    </item>
  </channel>
</rss>

