<?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 Info type update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115731#M1617925</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;My Scenario is when an employee get hired through PA40. At the end of hiring action info type 41 get update automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using enhancement HRPAD00_ENTRY_LEAVE to update info type 41, using the condition that when its last screen of the hiring action then update the info type 41 using below FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_EMPLOYEE_ENQUEUE ,  HR_INFOTYPE_OPERATION , BAPI_EMPLOYEE_DEQUEUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but data doesn't get commit in data base for the both last screen of hiring action as well as for the info type 41&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 16:44:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-08T16:44:23Z</dc:date>
    <item>
      <title>Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115731#M1617925</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;My Scenario is when an employee get hired through PA40. At the end of hiring action info type 41 get update automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using enhancement HRPAD00_ENTRY_LEAVE to update info type 41, using the condition that when its last screen of the hiring action then update the info type 41 using below FMs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_EMPLOYEE_ENQUEUE ,  HR_INFOTYPE_OPERATION , BAPI_EMPLOYEE_DEQUEUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but data doesn't get commit in data base for the both last screen of hiring action as well as for the info type 41&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115731#M1617925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115732#M1617926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you checked what does HR_INFOTYPE_OPERATION return? I mean, sometimes there can be issues related with the data you're actually passing to this FM and this can lead to errors. Be sure &lt;STRONG&gt;RETURN&lt;/STRONG&gt; parameter is initial before trying to do anything else. Besides, check first if the employee number is already locked (you're still in the middle of the hiring process) so maybe BAPI_EMPLOYEE_ENQUEUE may return an error as well. In this case you'd need to unlock the employee, update the Infotype and lock it again.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115732#M1617926</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-09-08T19:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115733#M1617927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have done this it doesn't return error, can i use INSERT statement to  directly insert data  into info type 41 . what do u recommend ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115733#M1617927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115734#M1617928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could, however is not recommended as you're bypasing all the security restrictions, and I'd only do it as a last resource. &lt;/P&gt;&lt;P&gt;What I'd try to do is instead of using HR_INFOTYPE_OPERATION is a Batch Input (BDC) against PA30 and insert the record using mode 'N' (The user won't see anything of this)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115734#M1617928</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-09-08T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115735#M1617929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PA30 will not work as employee no will be locked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115735#M1617929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115736#M1617930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to unlock it first using either DEQUE_EPPRELE or DEQUE_ALL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 19:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115736#M1617930</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-09-08T19:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115737#M1617931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;code is as follows by not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    NUMBER        = w_0041-pernr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN        = return&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt; if return is  initial .&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                  = '0041'&lt;/P&gt;&lt;P&gt;      NUMBER                 = w_0041-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;LI level="1" type="ul"&gt;&lt;P&gt;     LOCKINDICATOR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      VALIDITYEND            = w_0041-BEGDA&lt;/P&gt;&lt;P&gt;      VALIDITYBEGIN          = w_0041-ENDDA&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                 = w_0041&lt;/P&gt;&lt;P&gt;      OPERATION              = 'INS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     TCLAS                  = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     DIALOG_MODE            = '0'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    NUMBER        = w_0041-pernr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN        =   return&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    NUMBER        = w_0041-pernr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN        = return&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 20:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115737#M1617931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-08T20:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Info type update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115738#M1617932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Another option would be to place your code in the IN_UPDATE method of the BADI HRPAD00INFTY&lt;/P&gt;&lt;P&gt;When the last infotype (screen) of the hiring process is saved, this event will be fired and you can place your logic there.&lt;/P&gt;&lt;P&gt;Anyway I'd keep in mind the PA30 approach as well in case HR_INFOTYPE_OPERATION won't work.&lt;/P&gt;&lt;P&gt;Best of luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 21:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/info-type-update/m-p/8115738#M1617932</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-09-08T21:04:41Z</dc:date>
    </item>
  </channel>
</rss>

