<?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: handling authorization error while updating infotype in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263677#M1529272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: insert type pspar-actio value 'INS'.&lt;/P&gt;&lt;P&gt;"This code is requred and locks the record ready for modification&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 = p_pernr.&lt;/P&gt;&lt;P&gt;validitybegin = p_record-begda.&lt;/P&gt;&lt;P&gt;validityend = p_record-endda.&lt;/P&gt;&lt;P&gt;p_record-pernr = p_pernr.&lt;/P&gt;&lt;P&gt;p_record-begda = pn-begda.&lt;/P&gt;&lt;P&gt;p_record-endda = validityend.&lt;/P&gt;&lt;P&gt;p_record-subty = p_subty. "subtype of new entry&lt;/P&gt;&lt;P&gt;p_record-scref = p_subty. "subtype of new entry&lt;/P&gt;&lt;P&gt;"plus populate any other fields you need to update&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 = '0071'&lt;/P&gt;&lt;P&gt;subtype = p_record-subty&lt;/P&gt;&lt;P&gt;number = p_record-pernr "employeenumber&lt;/P&gt;&lt;P&gt;validityend = validityend&lt;/P&gt;&lt;P&gt;validitybegin = validitybegin&lt;/P&gt;&lt;P&gt;record = p_record&lt;/P&gt;&lt;P&gt;operation = insert&lt;/P&gt;&lt;P&gt;nocommit = nocommit&lt;/P&gt;&lt;P&gt;dialog_mode = '0'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = return_struct&lt;/P&gt;&lt;P&gt;key = personaldatakey&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 09:54:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-06T09:54:29Z</dc:date>
    <item>
      <title>handling authorization error while updating infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263676#M1529271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling function module to add the record in info type, i want to set a returncode if user is not authorized to access infotype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but nothing has come in wa_return even the infotype is not getting updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_return type bapiret1.&lt;/P&gt;&lt;P&gt;&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 = '9077'&lt;/P&gt;&lt;P&gt;number = wa_p9077-pernr&lt;/P&gt;&lt;P&gt;validityend = wa_p9077-endda&lt;/P&gt;&lt;P&gt;validitybegin = wa_p9077-begda&lt;/P&gt;&lt;P&gt;record = wa_p9077&lt;/P&gt;&lt;P&gt;operation = 'INS'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = wa_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 06:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263676#M1529271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T06:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: handling authorization error while updating infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263677#M1529272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: insert type pspar-actio value 'INS'.&lt;/P&gt;&lt;P&gt;"This code is requred and locks the record ready for modification&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 = p_pernr.&lt;/P&gt;&lt;P&gt;validitybegin = p_record-begda.&lt;/P&gt;&lt;P&gt;validityend = p_record-endda.&lt;/P&gt;&lt;P&gt;p_record-pernr = p_pernr.&lt;/P&gt;&lt;P&gt;p_record-begda = pn-begda.&lt;/P&gt;&lt;P&gt;p_record-endda = validityend.&lt;/P&gt;&lt;P&gt;p_record-subty = p_subty. "subtype of new entry&lt;/P&gt;&lt;P&gt;p_record-scref = p_subty. "subtype of new entry&lt;/P&gt;&lt;P&gt;"plus populate any other fields you need to update&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 = '0071'&lt;/P&gt;&lt;P&gt;subtype = p_record-subty&lt;/P&gt;&lt;P&gt;number = p_record-pernr "employeenumber&lt;/P&gt;&lt;P&gt;validityend = validityend&lt;/P&gt;&lt;P&gt;validitybegin = validitybegin&lt;/P&gt;&lt;P&gt;record = p_record&lt;/P&gt;&lt;P&gt;operation = insert&lt;/P&gt;&lt;P&gt;nocommit = nocommit&lt;/P&gt;&lt;P&gt;dialog_mode = '0'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;return = return_struct&lt;/P&gt;&lt;P&gt;key = personaldatakey&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 09:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263677#M1529272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-06T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: handling authorization error while updating infotype</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263678#M1529273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 07:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-authorization-error-while-updating-infotype/m-p/7263678#M1529273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-25T07:04:39Z</dc:date>
    </item>
  </channel>
</rss>

