<?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: CL_HRRCF_CANDIDATE_BUPA_BL..runtime error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521005#M570613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_HRRCF is defined as &amp;lt;b&amp;gt;exception class&amp;lt;/b&amp;gt; at the interface of method GET_PERS_DATA. Thus, you either have to CATCH the exception yourself or define the exception class at the interface of the method calling GET_PERS_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your coding as following and your program will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  ld_msg    TYPE bapimsg,
  lo_error   TYPE REF TO cx_hrrcf.
...
TRY.
  CALL METHOD z_candidate_info-&amp;gt;get_pers_data
    EXPORTING
      PS_CAND_HROBJECT = wa_str
    IMPORTING
      PS_CENTRALDATAPERSON = personal_data.

  wa_appoint-firstname = personal_data-firstname.
  wa_appoint-lastname = personal_data-lastname.
  wa_appoint-sex = personal_data-sex.

CATCH cx_hrrcf INTO lo_error.
  ld_msg = lo_error-&amp;gt;get_text( ).
  MESSAGE ld_msg TYPE 'I'.
ENDTRY.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 20:00:44 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-07-20T20:00:44Z</dc:date>
    <item>
      <title>CL_HRRCF_CANDIDATE_BUPA_BL..runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521004#M570612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the particular code on execution giving runtime error as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  An exception occurred which is explained in detail below.&lt;/P&gt;&lt;P&gt;  The exception, which is assigned to class 'CX_HRRCF', was not caught and&lt;/P&gt;&lt;P&gt;  therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;  The reason for the exception is:&lt;/P&gt;&lt;P&gt;  An exception occurred in the SAP E-Recruiting application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infotypes: 5102 .&lt;/P&gt;&lt;P&gt;tables : hrp9904.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;for passing in as hrobjid&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;types: Begin of x_str,&lt;/P&gt;&lt;P&gt;       plvar type hrp5102-plvar,&lt;/P&gt;&lt;P&gt;       otype type hrp5102-otype,&lt;/P&gt;&lt;P&gt;       objid type hrp5102-objid,&lt;/P&gt;&lt;P&gt;       end of x_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_str type x_str.&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;to get other filds into alv&lt;/STRONG&gt;******&lt;/P&gt;&lt;P&gt;types: Begin of x_objid,&lt;/P&gt;&lt;P&gt;       plvar type hrp5102-plvar,&lt;/P&gt;&lt;P&gt;       otype type hrp5102-otype,&lt;/P&gt;&lt;P&gt;       objid type hrp5102-objid,&lt;/P&gt;&lt;P&gt;        sbu type hrp9904-sbu,&lt;/P&gt;&lt;P&gt;      sbulocation type hrp9904-sbulocation,&lt;/P&gt;&lt;P&gt;      superior type hrp9904-superior,&lt;/P&gt;&lt;P&gt;      dateofjoin type hrp9904-dateofjoin,&lt;/P&gt;&lt;P&gt;      basicpay type hrp9904-basicpay,&lt;/P&gt;&lt;P&gt;       end of x_objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_objid type table of x_objid,&lt;/P&gt;&lt;P&gt;        wa_objid type x_objid.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: z_candidate_info type ref to CL_HRRCF_CANDIDATE_BUPA_BL.&lt;/P&gt;&lt;P&gt;data: personal_data type  BAPIBUS1006_CENTRAL_PERSON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;actual alv&lt;/STRONG&gt;**********************&lt;/P&gt;&lt;P&gt;types: begin of x_appoint,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      firstname type string,&lt;/P&gt;&lt;P&gt;      lastname type string,&lt;/P&gt;&lt;P&gt;      sex type c,&lt;/P&gt;&lt;P&gt;      address type string,&lt;/P&gt;&lt;P&gt;      telephone type string,&lt;/P&gt;&lt;P&gt;      sbu type hrp9904-sbu,&lt;/P&gt;&lt;P&gt;      sbulocation type hrp9904-sbulocation,&lt;/P&gt;&lt;P&gt;      superior type hrp9904-superior,&lt;/P&gt;&lt;P&gt;      dateofjoin type hrp9904-dateofjoin,&lt;/P&gt;&lt;P&gt;      basicpay type hrp9904-basicpay,&lt;/P&gt;&lt;P&gt;      app_date type dats,&lt;/P&gt;&lt;P&gt;      end of x_appoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data: it_appoint type table of x_appoint,&lt;/P&gt;&lt;P&gt;        wa_appoint type x_appoint.&lt;/P&gt;&lt;P&gt;*****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;To take id's of candidates **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*clear wa_objid.&lt;/P&gt;&lt;P&gt;select plvar otype objid sbu sbulocation superior dateofjoin basicpay from hrp9904 into table it_objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;To get candiadates  personnel information ****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TRY.&lt;/P&gt;&lt;P&gt;CALL METHOD CL_HRRCF_CANDIDATE_BUPA_BL=&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    RETURN = z_candidate_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_objid into wa_objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding  wa_objid to wa_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TRY. errorrrrrrrrrrrrrrrrrr...&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;CALL METHOD z_candidate_info-&amp;gt;get_pers_data&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    PS_CAND_HROBJECT     = wa_str&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    PS_CENTRALDATAPERSON = personal_data&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_appoint-firstname = personal_data-firstname.&lt;/P&gt;&lt;P&gt;wa_appoint-lastname = personal_data-lastname.&lt;/P&gt;&lt;P&gt;wa_appoint-sex = personal_data-sex.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 05:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521004#M570612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T05:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HRRCF_CANDIDATE_BUPA_BL..runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521005#M570613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_HRRCF is defined as &amp;lt;b&amp;gt;exception class&amp;lt;/b&amp;gt; at the interface of method GET_PERS_DATA. Thus, you either have to CATCH the exception yourself or define the exception class at the interface of the method calling GET_PERS_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your coding as following and your program will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  ld_msg    TYPE bapimsg,
  lo_error   TYPE REF TO cx_hrrcf.
...
TRY.
  CALL METHOD z_candidate_info-&amp;gt;get_pers_data
    EXPORTING
      PS_CAND_HROBJECT = wa_str
    IMPORTING
      PS_CENTRALDATAPERSON = personal_data.

  wa_appoint-firstname = personal_data-firstname.
  wa_appoint-lastname = personal_data-lastname.
  wa_appoint-sex = personal_data-sex.

CATCH cx_hrrcf INTO lo_error.
  ld_msg = lo_error-&amp;gt;get_text( ).
  MESSAGE ld_msg TYPE 'I'.
ENDTRY.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 20:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521005#M570613</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-07-20T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HRRCF_CANDIDATE_BUPA_BL..runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521006#M570614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thxxx...a lot!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 03:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521006#M570614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T03:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: CL_HRRCF_CANDIDATE_BUPA_BL..runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521007#M570615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get this to work? Do you have a complete listing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 18:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-hrrcf-candidate-bupa-bl-runtime-error/m-p/2521007#M570615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T18:38:44Z</dc:date>
    </item>
  </channel>
</rss>

