<?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 Help ! OM Infotype Update Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373121#M1040553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were trying to update the OM infotype using the RH_UPDATE_INFTY function module. But we are getting an exceptional error - 'ERROR DURING UPDATE'. Please help us on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process which we used is.. Select the existing infotype record (IT 1029) and make modifications in some of the fields and pass the updated record to the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 13:51:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-18T13:51:36Z</dc:date>
    <item>
      <title>Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373121#M1040553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We were trying to update the OM infotype using the RH_UPDATE_INFTY function module. But we are getting an exceptional error - 'ERROR DURING UPDATE'. Please help us on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process which we used is.. Select the existing infotype record (IT 1029) and make modifications in some of the fields and pass the updated record to the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 13:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373121#M1040553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T13:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373122#M1040554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the function module [HR_INFOTYPE_OPERATION|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=hr_infotype_operation&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 14:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373122#M1040554</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-18T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373123#M1040555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of  going for RH_UPDATE_INFTY, you can go for the function module HR_INFOTYPE_OPERATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using this function module you need to LOCK using &lt;STRONG&gt;ENQUEUE_EPPRELE&lt;/STRONG&gt;, so that no other person cannot make any changes to that infotype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the changes, you must UNLOCK the infotype using &lt;STRONG&gt;DEQUEUE_EPPRELE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ENQUEUE_EPPRELE'
EXPORTING
pernr = wa_hrrecord-pernr
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.

IF sy-subrc EQ 0.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = P0015-PERNR
SUBTYPE = P0015-SUBTY
OBJECTID = P0015-OBJPS
LOCKINDICATOR = P0015-SPRPS
VALIDITYEND = P0015-ENDDA
VALIDITYBEGIN = P0015-BEGDA
RECORDNUMBER = P0015-SEQNR
RECORD = P0015
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
IMPORTING
RETURN = RETURN
KEY = KEY.

CALL FUNCTION 'DEQUEUE_EPPRELE'
EXPORTING
pernr = wa_hrrecord-pernr.
ENDIF.

ENDLOOP.&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;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 16:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373123#M1040555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-18T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373124#M1040556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Fm:- RH_RELATION_MAINTAIN -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Relation Maintain for HRP1001.&lt;/P&gt;&lt;P&gt;RH_PNNNN_MAINTAIN --- For all infotype (HRPXXXX).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 22:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373124#M1040556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T22:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373125#M1040557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OR use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM 'RH_OBJECT_CREATE for IT 1000 &amp;amp; FM 'RH_RELATION_MAINTAIN' for IT 1001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Mar 2010 22:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373125#M1040557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-11T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help ! OM Infotype Update Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373126#M1040558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt;Try this way. 
&lt;PRE&gt;&lt;CODE&gt;
DATA:lt_hrp1000 type table of p1000 with headerline.
 "select the records from DB, change and pass with below information.
  if not lt_hrp1000 is initial.
    call function 'RH_UPDATE_INFTY'
      exporting
        vtask               = 'D'
        authy               = 'X'
      tables
        innnn               = lt_hrp1000
      exceptions
        error_during_update = 1
        no_authorization    = 2
        repid_form_initial  = 3
        corr_exit           = 4
        others              = 5.
    if sy-subrc &amp;lt;&amp;gt; 0.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;For better information, you can go to SE37 and give this FM and check Function module documenation.

Thanks
Venkat.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 02:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-om-infotype-update-error/m-p/4373126#M1040558</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-12T02:56:13Z</dc:date>
    </item>
  </channel>
</rss>

