<?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: error log for fm hr_infotype_operation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178815#M756686</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;I came across with this last few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct solution is that using Function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Call FM 'BAPI_APPRAISAL_ENQUE' before doing the Infotype operation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call FM 'HR_INFOTYPE_OPERTAION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Call FM 'BAPI_APPRAISAL_ENQUE' after doing the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using bapi return value we will handle the errors like&lt;/P&gt;&lt;P&gt;the pernr is alreay locked by xyz user &lt;/P&gt;&lt;P&gt;no of succesful records&lt;/P&gt;&lt;P&gt;no of failed records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need program which I have done , make a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 06:03:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T06:03:35Z</dc:date>
    <item>
      <title>error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178812#M756683</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;&lt;/P&gt;&lt;P&gt;I am using the function module 'HR_INFOTYPE_OPERATION&lt;/P&gt;&lt;P&gt;to update an infotype. Its working fine but suppose if some other user has already opend the employee for which the record is being updated - or the employee is locked, the FM do not returns any error message in return table.  Please let me know how to trap the errors in this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I check the value of Sy-subrc after this fm runs, every time the value is 0. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ribhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 05:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178812#M756683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T05:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178813#M756684</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;i dont know much about this function module but what i can see is that whenever you are updating it it must be updating some database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one thing you can do is to lock the table first then update the entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 05:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178813#M756684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T05:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178814#M756685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like there are no additioanl exceptions handled in the FM apart from the ones in the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module enables you to maintain master data for employees and applicants. You can transfer one data record. &lt;/P&gt;&lt;P&gt;All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is, the individual maintenance screen error messages are transferred rather than interpreted by this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you shud try to transfer the data into the system using the dialog transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 05:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178814#M756685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T05:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178815#M756686</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;I came across with this last few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct solution is that using Function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Call FM 'BAPI_APPRAISAL_ENQUE' before doing the Infotype operation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call FM 'HR_INFOTYPE_OPERTAION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Call FM 'BAPI_APPRAISAL_ENQUE' after doing the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using bapi return value we will handle the errors like&lt;/P&gt;&lt;P&gt;the pernr is alreay locked by xyz user &lt;/P&gt;&lt;P&gt;no of succesful records&lt;/P&gt;&lt;P&gt;no of failed records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need program which I have done , make a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178815#M756686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T06:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178816#M756687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: RETURN LIKE  BAPIRETURN1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          number = wa_zpmc-zpernr&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          return = return.&lt;/P&gt;&lt;P&gt;      if return-type = 'E'.&lt;/P&gt;&lt;P&gt;       exit.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        call function 'HR_INFOTYPE_OPERATION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          call function 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;            exporting&lt;/P&gt;&lt;P&gt;              number = wa_zpmc-zpernr.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if usefull reward points helpful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 06:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178816#M756687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T06:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178817#M756688</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;I came across with this last few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct solution is that using Function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Call FM 'BAPI_APPRAISAL_ENQUE' before doing the Infotype operation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Call FM 'HR_INFOTYPE_OPERTAION'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Call FM 'BAPI_APPRAISAL_DEQUE' after doing the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using bapi return value we will handle the errors like&lt;/P&gt;&lt;P&gt;the pernr is alreay locked by xyz user &lt;/P&gt;&lt;P&gt;no of succesful records&lt;/P&gt;&lt;P&gt;no of failed records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need program which I have done , make a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 07:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178817#M756688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T07:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178818#M756689</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;I am using employee enque before hr_infotype_operation&lt;/P&gt;&lt;P&gt;below is the code.&lt;/P&gt;&lt;P&gt;However my problem is still unresolved. when the employee is locked in one session and in other i am using hr_infotype operation, after HR_EMPLOYEE_ENQUEUE, subrc is still 0 only. Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZBDC_0008.&lt;/P&gt;&lt;P&gt;data: begin of p0008 occurs 0.&lt;/P&gt;&lt;P&gt;include structure p0008.&lt;/P&gt;&lt;P&gt;Data: end of p0008.&lt;/P&gt;&lt;P&gt;data begin of return  occurs 0.&lt;/P&gt;&lt;P&gt;include structure BAPIRETURN1.&lt;/P&gt;&lt;P&gt;data end of return.&lt;/P&gt;&lt;P&gt;data key like BAPIPAKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P0008-PERNR = '00009600'.&lt;/P&gt;&lt;P&gt;P0008-INFTY = '0008'.&lt;/P&gt;&lt;P&gt;*P0008-SUBTY = '0'.&lt;/P&gt;&lt;P&gt;P0008-ENDDA = '99991231'.&lt;/P&gt;&lt;P&gt;P0008-BEGDA = '20070301'.&lt;/P&gt;&lt;P&gt;*P0008-TRFAR = 'SL'.&lt;/P&gt;&lt;P&gt;*P0008-TRFGB = '01'.&lt;/P&gt;&lt;P&gt;*P0008-TRFGR = 'DIRIT01'.&lt;/P&gt;&lt;P&gt;*P0008-TRFST = '01'.&lt;/P&gt;&lt;P&gt;*P0008-BSGRD = '100'.&lt;/P&gt;&lt;P&gt;*P0008-DIVGV = '86.67'.&lt;/P&gt;&lt;P&gt;*P0008-LGA01 = '1005'.&lt;/P&gt;&lt;P&gt;P0008-ANCUR = 'USD'.&lt;/P&gt;&lt;P&gt;p0008-BET01 = '1022'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER = p0008-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait UP TO 10 seconds.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INFTY                  = '0008'&lt;/P&gt;&lt;P&gt;    NUMBER                 = P0008-PERNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUBTYPE                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECTID               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   LOCKINDICATOR          = ''&lt;/P&gt;&lt;P&gt;   VALIDITYEND            = P0008-ENDDA&lt;/P&gt;&lt;P&gt;   VALIDITYBEGIN          = P0008-BEGDA&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECORDNUMBER           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    RECORD                 = P0008&lt;/P&gt;&lt;P&gt;    OPERATION              = 'COP'&lt;/P&gt;&lt;P&gt;   TCLAS                  = 'A'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIALOG_MODE            = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOCOMMIT               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIEW_IDENTIFIER        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SECONDARY_RECORD       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN                 = return.&lt;/P&gt;&lt;P&gt;   KEY                    = key.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER = p0008-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;write 'success'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 09:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178818#M756689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T09:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: error log for fm hr_infotype_operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178819#M756690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the same function modules to update the hr infortypes, but i can manager to capture the error to display to users.&lt;/P&gt;&lt;P&gt;Appreciate if you can show us your sample code for reference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 09:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-log-for-fm-hr-infotype-operation/m-p/3178819#M756690</guid>
      <dc:creator>jjay</dc:creator>
      <dc:date>2011-01-28T09:31:14Z</dc:date>
    </item>
  </channel>
</rss>

