<?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: How to call a Method in a Program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922471#M1331752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the same way you call a FM. Click on button Pattern, then give the method name you want to call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 19:26:03 GMT</pubDate>
    <dc:creator>former_member376453</dc:creator>
    <dc:date>2009-07-29T19:26:03Z</dc:date>
    <item>
      <title>How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922470#M1331751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to the ABAP world.  I have been given a task to call a method &lt;STRONG&gt;if_hrbas_plain_infotype_access~read_single&lt;/STRONG&gt; from the class &lt;STRONG&gt;CL_HRBAS_PLAIN_INFOTYPE_ACCESS&lt;/STRONG&gt; in a program to see if we can use it to display some employee information.  I don't know how to call a method in a program.  Can somebody please provide me some pseudo code or instructions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922470#M1331751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T19:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922471#M1331752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the same way you call a FM. Click on button Pattern, then give the method name you want to call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922471#M1331752</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-07-29T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922472#M1331753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.  However, I don't know how to call a FM as well.  I am looking for some syntax or pseudo code.  Sorry, if it is a basic question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922472#M1331753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T19:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922473#M1331754</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;in the source code screen in se37 or se38 --&amp;gt; Press Ctrl+F6 or pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;DEL&gt;&amp;gt;select ABAP object pattern and execute&lt;/DEL&gt;&amp;gt;enter calss "CL_HRBAS_PLAIN_INFOTYPE_ACCESS"&lt;/P&gt;&lt;P&gt;                                                                                under enter method "if_hrbas_plain_infotype_access~read"&lt;/P&gt;&lt;P&gt;and enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922473#M1331754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T19:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922474#M1331755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I have said, press the pattern button from your editor. Their you will get the option. Or search net to get step by step details. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 19:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922474#M1331755</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-07-29T19:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922475#M1331756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to your program Se38 or from where you want to call method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in application tool bar, one pushbutton called 'PATERN ' is there. click that.&lt;/P&gt;&lt;P&gt;then one pop-up will come, within pop-up select 'abap object patern', radio button. then enter.&lt;/P&gt;&lt;P&gt;select call method radiobtton &amp;amp; then give the class name &amp;amp; method of that class which you want to called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for class see tr. se24.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 05:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922475#M1331756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T05:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922476#M1331757</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;Either you can use the patterns, or if you can simply type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD (CLASS_NAME)=&amp;gt;(METHOD NAME)&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;                    &lt;/P&gt;&lt;P&gt;       IMPORTING               .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use F1 on 'Call method' to get more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 06:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922476#M1331757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T06:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922477#M1331758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just follow the navigation provided below to call method from program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Go to se38 transaction---&amp;gt; Open your program----&amp;gt; press ctrl+f6 (or) PATTERN button on the toolbar---&amp;gt;select ABAP OBJECT PATTERNS----&amp;gt; select CALL METHOD---&amp;gt; enter the method you want to call and hit enter.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 06:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922477#M1331758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T06:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922478#M1331759</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;Click on the Pattern button (or ctrl+f6) in se38, choose "ABAP Object Patters" and click on u201Centeru201D button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will open an other window&lt;/P&gt;&lt;P&gt;Enter the Class as  &lt;STRONG&gt;if_hrbas_plain_infotype_access&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;enter the method as &lt;STRONG&gt;read&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and again press enter...&lt;/P&gt;&lt;P&gt;The code is ready&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 06:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922478#M1331759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922479#M1331760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try this wiki link as reference , to get the idea of your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/ABAP/7" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/ABAP/7&lt;/A&gt;&lt;EM&gt;steps&lt;/EM&gt;to&lt;EM&gt;create&lt;/EM&gt;OOPS+ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922479#M1331760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922480#M1331761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shan,&lt;/P&gt;&lt;P&gt;here is the code to call a method. while calling the method Instance as 'r_info' which is the type reference to class as specified.&lt;/P&gt;&lt;P&gt;pass the values to exporting parameters plvar,otype,objid...etc  according  to the requirement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
infotypes: 0002.   " creates an internal table p0002.
data:

 r_info type ref to CL_HRBAS_PLAIN_INFOTYPE_ACCESS.
 
 TRY.
 CALL METHOD r_info-&amp;gt;if_hrbas_plain_infotype_access~read
   EXPORTING
     plvar           =  
     otype           =
     objid           =
     istat           =
     infty           =
*     SUBTY           =
     begda           =
     endda           =
     no_auth_check   =  'X'
     message_handler =
   IMPORTING
     PNNNN_TAB       = P0002 
*     HRTNNNN_TAB     =
*     IS_OK           =
     .
  CATCH CX_HRBAS_VIOLATED_ASSERTION .
 ENDTRY.

LOOP AT P0002.
      WRITE:/
        P0002-VORNA,
        P0002-NCHMC,
        P0002-NACHN.
    ENDLOOP.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922480#M1331761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922481#M1331762</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;   From the ABAP editor (SE38)  press the PATTERN button or press Control+F6.&lt;/P&gt;&lt;P&gt;   Then select the radiio-button ABAP Object Patterns and then continue.&lt;/P&gt;&lt;P&gt;   Next put in the Class/Interface name as -  CL_HRBAS_PLAIN_INFOTYPE_ACCESS &lt;/P&gt;&lt;P&gt;    and the Method name as - if_hrbas_plain_infotype_access~read_single and then click continue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 09:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922481#M1331762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922482#M1331763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot to all of you for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 14:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/5922482#M1331763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Method in a Program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/14025877#M2038599</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;an example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YLATHI_0-1740402821299.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/229638iAB0833C9089AE88C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YLATHI_0-1740402821299.png" alt="YLATHI_0-1740402821299.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YLATHI_1-1740402859301.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/229639i80D38CCF95EEA9D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YLATHI_1-1740402859301.png" alt="YLATHI_1-1740402859301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 13:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-method-in-a-program/m-p/14025877#M2038599</guid>
      <dc:creator>YLATHI</dc:creator>
      <dc:date>2025-02-24T13:15:34Z</dc:date>
    </item>
  </channel>
</rss>

