<?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: HR_INFOTYPE_OPERATION Modify problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795150#M1466548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Duplicate post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 21:20:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-14T21:20:06Z</dc:date>
    <item>
      <title>HR_INFOTYPE_OPERATION Modify problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795147#M1466545</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;  I am using HR_INFOTYPE_OPERATION for modifying IT0027 record. I am able to modify the record of a pernr if it has only one record in PA0027, if it has more that one record, even though i give the correct record to search, it is not updating it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to proceed.&lt;/P&gt;&lt;P&gt;Read statement,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If sy-subrc = 0.
        CALL FUNCTION 'ENQUEUE_EPPRELE'
         EXPORTING
*   MODE_PREL            = 'E'
*   MANDT                = SY-MANDT
           pernr                = ipspar-pernr
         EXCEPTIONS
           foreign_lock         = 1
           system_failure       = 2
           OTHERS               = 3
                  .
        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.
         CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty                  = '0027'
            number                 = ipspar-pernr
           subtype                 = wa_pa0027-subty
           objectid                = wa_pa0027-objps
           lockindicator           = wa_pa0027-sprps
           validityend             = l_endda
           validitybegin           = wa_pa0027-begda
           recordnumber            = wa_pa0027-seqnr
            record                 = p0027
            operation              = 'MOD'
           tclas                   = 'A'
           dialog_mode             = '0'
*           NOCOMMIT               =
*           VIEW_IDENTIFIER        =
*           SECONDARY_RECORD       =
         IMPORTING
           return                 =  wt_return
           key                    = wl_key.

        CALL FUNCTION 'DEQUEUE_EPPRELE'
          EXPORTING
            pernr = ipspar-pernr.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 16:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795147#M1466545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T16:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Modify problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795148#M1466546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Step 1: Check what is returned back from the FM via WT_Return in your code.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;return                 =  wt_return&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Remove the Lock Indicator, you don't need it since it is optional.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lockindicator           = wa_pa0027-sprps&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3: record = p0027, instead use like a local variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_p0027 type p0027
record = lv_p0027&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post the results on this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 18:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795148#M1466546</guid>
      <dc:creator>maulik</dc:creator>
      <dc:date>2010-04-06T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Modify problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795149#M1466547</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;Why didn't use the &lt;STRONG&gt;HR_EMPLOYEE_ENQUEUE&lt;/STRONG&gt; and &lt;STRONG&gt;HR_EMPLOYEE_DEQUEUE&lt;/STRONG&gt; function modules???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 20:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795149#M1466547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T20:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Modify problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795150#M1466548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Duplicate post locked

Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 21:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-modify-problem/m-p/6795150#M1466548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T21:20:06Z</dc:date>
    </item>
  </channel>
</rss>

