<?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: MESSAGE_TYPE_X: NESTED_PERFORM_ON_COMMIT :HR_INFOTYPE_OPERATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782466#M1585604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be a problem with the nested commits on the FM. I would suggest two approaches or maybe even one with both options. First you might try calling FM with parameter NOCOMMIT = 'X' and do the commit yourself after the call of the FM. Also, i would suggest using FM HR_PSBUFFER_INITIALIZE in the main loop, for mass changes of employees i have encountered several problems with this FM, also performance problems and for every employee besides de lock/unlock, also cleaning buffers is advised. Other than that, i don't really know, i have used that FM many times but haven't had this problem before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 16:15:13 GMT</pubDate>
    <dc:creator>PedroGuarita</dc:creator>
    <dc:date>2011-03-11T16:15:13Z</dc:date>
    <item>
      <title>MESSAGE_TYPE_X: NESTED_PERFORM_ON_COMMIT :HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782463#M1585601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used HR_INFOTYPE_OPERATION in my custom program to delete the USERID assignment for the Employees. But I have got a dump when I run the report in background   MESSAGE_TYPE_X    NESTED_PERFORM_ON_COMMIT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text of error message:                                                                  |&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Nested call of PERFORM ON COMMIT: NESTED_PERFORM_ON_COMMIT caller: SAPLB&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;|    UBA_4 program: SAPLBUBA_4 form: GENERAL_BADI_CALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have applied for some SAP notes 1560109,1508004 etc. But nothing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody  knows about this dump, please share your ideas .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 15:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782463#M1585601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-11T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_TYPE_X: NESTED_PERFORM_ON_COMMIT :HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782464#M1585602</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;&lt;/P&gt;&lt;P&gt;Please pass the operation as Del using the actio data element. before the process enter into the F.M Pls try to do enqueue &amp;amp; after the operation gets over, pls Dequeue it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF pv_operation NE c_dis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'       " Locks the Employee Record&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      number        = x_key-pernr&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return        = x_return&lt;/P&gt;&lt;P&gt;                    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF px_return-type CA c_aex.&lt;/P&gt;&lt;P&gt;      RETURN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: px_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_INFOTYPE_OPERATION'       " Updation of Employee Record&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    infty                  = px_key-infty&lt;/P&gt;&lt;P&gt;    number                 = px_key-pernr&lt;/P&gt;&lt;P&gt;    subtype                = px_key-subty&lt;/P&gt;&lt;P&gt;    objectid               = px_key-objps&lt;/P&gt;&lt;P&gt;    lockindicator          = px_key-sprps&lt;/P&gt;&lt;P&gt;    validityend            = px_key-endda&lt;/P&gt;&lt;P&gt;    validitybegin          = px_key-begda&lt;/P&gt;&lt;P&gt;    recordnumber           = px_key-seqnr&lt;/P&gt;&lt;P&gt;    record                 = px_infty&lt;/P&gt;&lt;P&gt;    operation              = pv_operation&lt;/P&gt;&lt;P&gt;    tclas                  = 'A'&lt;/P&gt;&lt;P&gt;    dialog_mode            = '0'&lt;/P&gt;&lt;P&gt;    nocommit               = space&lt;/P&gt;&lt;UL&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                 = px_return&lt;/P&gt;&lt;P&gt;    key                    = px_bapikey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF pv_operation NE c_dis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'       " Unlock the Employee Record&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      number        = px_key-pernr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURN        =    .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 15:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782464#M1585602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-11T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_TYPE_X: NESTED_PERFORM_ON_COMMIT :HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782465#M1585603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aahbha for the quick reply. But I am using ENQUEUE and DEQUEUE FMs in my program. And the problem is with "COMMIT" statement and not regarding "LOCK".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:05:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782465#M1585603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-11T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: MESSAGE_TYPE_X: NESTED_PERFORM_ON_COMMIT :HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782466#M1585604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seems to be a problem with the nested commits on the FM. I would suggest two approaches or maybe even one with both options. First you might try calling FM with parameter NOCOMMIT = 'X' and do the commit yourself after the call of the FM. Also, i would suggest using FM HR_PSBUFFER_INITIALIZE in the main loop, for mass changes of employees i have encountered several problems with this FM, also performance problems and for every employee besides de lock/unlock, also cleaning buffers is advised. Other than that, i don't really know, i have used that FM many times but haven't had this problem before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type-x-nested-perform-on-commit-hr-infotype-operation/m-p/7782466#M1585604</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2011-03-11T16:15:13Z</dc:date>
    </item>
  </channel>
</rss>

