<?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 general doubt regarding class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688207#M302715</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 tell under what class this method comes and how to find this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"P_FILE" is not type-compatible with formal parameter "FILE_NAME".		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared my p_file as&lt;/P&gt;&lt;P&gt; parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_get_size&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    file_name            = p_file&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    file_size            = size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2006 17:44:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-23T17:44:58Z</dc:date>
    <item>
      <title>general doubt regarding class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688207#M302715</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 tell under what class this method comes and how to find this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam getting this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"P_FILE" is not type-compatible with formal parameter "FILE_NAME".		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared my p_file as&lt;/P&gt;&lt;P&gt; parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_get_size&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    file_name            = p_file&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    file_size            = size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 17:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688207#M302715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: general doubt regarding class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688208#M302716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: TheFile type string.  "&amp;lt;-- add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Now move into a STRING data type.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move p_file to TheFile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_get_size&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;file_name = TheFile  " &amp;lt;----  Note change&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_size = size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 17:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688208#M302716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T17:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: general doubt regarding class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688209#M302717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_get_size&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;cl_gui_frontend_services&amp;lt;/b&amp;gt; - is the name of class &amp;amp; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;file_get_size&amp;lt;/b&amp;gt;            - is the name of method in class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here &amp;lt;i&amp;gt;file_get_size&amp;lt;/i&amp;gt; is method class i.e it an be used directly without creating any instance of class i.e directly by referring to the class name hence the class..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get proper type for file name goto SE24 type the name of class cl_gui_frontend_services and place cursor on the above method name then click on the parameter button on top..from here you get the exact typ for file_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 17:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/general-doubt-regarding-class/m-p/1688209#M302717</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2006-10-23T17:51:06Z</dc:date>
    </item>
  </channel>
</rss>

