<?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 Error calling class methods CL_GUI_FRONTEND_SERVICES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338649#M1033433</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;I have a requirement in BAPI (integrating solman to portal) to download file from app. server to local directory. I used the below FM to get temp directory of presntation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_TEMP_DIRECTORY
   CHANGING
     TEMP_DIR             =  LV_TEMP_DIR
   EXCEPTIONS
     CNTL_ERROR           = 1
     ERROR_NO_GUI         = 2
     NOT_SUPPORTED_BY_GUI = 3
     others               = 4.
   CALL METHOD cl_gui_cfw=&amp;gt;flush.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine in R3, but when i called it from portal it shows Access not possible using 'NULL' object reference with a short dump .&lt;/P&gt;&lt;P&gt;st22 shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be
 terminated because one of the
statements could not be executed.

This is probably due to an error in the ABAP program.

An exception occurred. This exception is dealt with in more detail belo
. The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL',
 neither
caught nor passed along using a RAISING clause, in the procedure
 "GET_TEMP_DIRECTORY" "(METHOD)"
.
Since the caller of the procedure could not have expected this exceptio
 to occur, the running program was terminated.
The reason for the exception is:
Attempt to access a component using 'NULL' object reference (points
to nothing).
An object reference must point to an object (an instance of a class)
before you can use it to access components (variable:
 "CL_GUI_FRONTEND_SERVICES=&amp;gt;HANDLE").
Either the reference has not yet been set, or it has been reset to
'NULL' by a CLEAR statement.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i put external break point and the dump comes during execution of CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;Is it not possible to use CL_GUI_FRONTEND_SERVICES in RFC ??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;Jijo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 09:36:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T09:36:24Z</dc:date>
    <item>
      <title>Error calling class methods CL_GUI_FRONTEND_SERVICES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338649#M1033433</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;I have a requirement in BAPI (integrating solman to portal) to download file from app. server to local directory. I used the below FM to get temp directory of presntation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GET_TEMP_DIRECTORY
   CHANGING
     TEMP_DIR             =  LV_TEMP_DIR
   EXCEPTIONS
     CNTL_ERROR           = 1
     ERROR_NO_GUI         = 2
     NOT_SUPPORTED_BY_GUI = 3
     others               = 4.
   CALL METHOD cl_gui_cfw=&amp;gt;flush.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine in R3, but when i called it from portal it shows Access not possible using 'NULL' object reference with a short dump .&lt;/P&gt;&lt;P&gt;st22 shows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in ABAP application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The current ABAP program "CL_GUI_FRONTEND_SERVICES======CP" had to be
 terminated because one of the
statements could not be executed.

This is probably due to an error in the ABAP program.

An exception occurred. This exception is dealt with in more detail belo
. The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL',
 neither
caught nor passed along using a RAISING clause, in the procedure
 "GET_TEMP_DIRECTORY" "(METHOD)"
.
Since the caller of the procedure could not have expected this exceptio
 to occur, the running program was terminated.
The reason for the exception is:
Attempt to access a component using 'NULL' object reference (points
to nothing).
An object reference must point to an object (an instance of a class)
before you can use it to access components (variable:
 "CL_GUI_FRONTEND_SERVICES=&amp;gt;HANDLE").
Either the reference has not yet been set, or it has been reset to
'NULL' by a CLEAR statement.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i put external break point and the dump comes during execution of CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;Is it not possible to use CL_GUI_FRONTEND_SERVICES in RFC ??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;Jijo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338649#M1033433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error calling class methods CL_GUI_FRONTEND_SERVICES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338650#M1033434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[CL_GUI_FRONTEND_SERVICES|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=cl_gui_frontend_services+portal&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue] needs a SAPGUI, so it is not possible to use it in RFC, BSP or other portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338650#M1033434</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-22T09:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error calling class methods CL_GUI_FRONTEND_SERVICES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338651#M1033435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest any FM that can be used in RFC's for my requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Jijo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 09:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-calling-class-methods-cl-gui-frontend-services/m-p/4338651#M1033435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T09:49:37Z</dc:date>
    </item>
  </channel>
</rss>

