<?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 HR_INFOTYPE_OPERATION Insert in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763014#M1461937</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;  I am using HR_INFOTYPE_OPERATION  in 'IN_UPDATE'  of BADI. Even after passing right parameters, it is not creating a record in infotype 2006. The return parameter return no error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
            CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
                    EXPORTING
                      number = wa_2006-pernr
                    IMPORTING
                      return = l_bapireturn.

                  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                    EXPORTING
                      infty                  = '2006'
                      number                 = ipspar-pernr
                      subtype                = i2006-subty
                      objectid               = i2006-objps
*                   LOCKINDICATOR          =
                      validityend            = i2006-endda
                      validitybegin          = i2006-begda
*                  RECORDNUMBER           =
                      record                 = i2006
                      operation              = 'INS'
                  TCLAS                  = 'A'
*                  DIALOG_MODE            = '0'
*                  NOCOMMIT               =
*                  VIEW_IDENTIFIER        =
*                  SECONDARY_RECORD       =
                IMPORTING
                  return                 = wt_return
                  key                    = wl_key.


                  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
                    EXPORTING
                      number = ipspar-pernr
                    IMPORTING
                      return = l_bapireturn.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 10:06:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-12T10:06:12Z</dc:date>
    <item>
      <title>HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763014#M1461937</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;  I am using HR_INFOTYPE_OPERATION  in 'IN_UPDATE'  of BADI. Even after passing right parameters, it is not creating a record in infotype 2006. The return parameter return no error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
            CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
                    EXPORTING
                      number = wa_2006-pernr
                    IMPORTING
                      return = l_bapireturn.

                  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                    EXPORTING
                      infty                  = '2006'
                      number                 = ipspar-pernr
                      subtype                = i2006-subty
                      objectid               = i2006-objps
*                   LOCKINDICATOR          =
                      validityend            = i2006-endda
                      validitybegin          = i2006-begda
*                  RECORDNUMBER           =
                      record                 = i2006
                      operation              = 'INS'
                  TCLAS                  = 'A'
*                  DIALOG_MODE            = '0'
*                  NOCOMMIT               =
*                  VIEW_IDENTIFIER        =
*                  SECONDARY_RECORD       =
                IMPORTING
                  return                 = wt_return
                  key                    = wl_key.


                  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
                    EXPORTING
                      number = ipspar-pernr
                    IMPORTING
                      return = l_bapireturn.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763014#M1461937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763015#M1461938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting the DIALOG_MODE to '2' in order to see what is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be that the error is in enqueue, as you are in PA30 probably and the employee might be locked for update and HR_INFOTYPE_OPERATION checks locks, but still the best way is running in visible mode to see what is happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763015#M1461938</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-04-12T10:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763016#M1461939</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;sometimes I have the feeling that this function works for your own ITs and not for SAP ITs. Try better with function HR_MAINTAIN_MASTERDATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763016#M1461939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763017#M1461940</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;  Thanks for you reply. I tried setting 2 as dialog mode and saw the problem. The record is created in the foreground but the record is not there in PA2006 table. Strange!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When i re enter PA30 and try to see 2006 record in display mode. No record is there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763017#M1461940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T10:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763018#M1461941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error sounds like using the infotype views:&lt;/P&gt;&lt;P&gt;Explaning with the help of an example.&lt;/P&gt;&lt;P&gt;"With the feature IVWID (is stored PA0003-VIEKN) the infotype views (see table T582V+T582W) are read and set in background process within the infotype classes. For infotype 0002 (MOLGA = 19 , Portugal) the infotype view V336 is called and the data are stored in table PA0336 additionally".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this should help.&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 11:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763018#M1461941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763019#M1461942</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;  Thanks for all your reply. The Insert condition is workign after i moved the FM to a report program and submitted the report program in BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, even though i do the same for MODIFY, i am getting an error message ' Infotype does not exist'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
                  CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                    EXPORTING
                      infty                  = '2006'
                      number                 = wa_2006-pernr
                      subtype                = wa_2006-subty
                     objectid                = wa_2006-objps
                     LOCKINDICATOR           = wa_2006-sprps
                     validityend             = wa_2006-endda
                     validitybegin           = wa_2006-begda
                     RECORDNUMBER            = wa_2006-seqnr
                      record                 = i2006
                      operation              = 'MOD'
*                     TCLAS                  = 'A'
                     DIALOG_MODE            = '2'
*                     NOCOMMIT               =
*                     VIEW_IDENTIFIER        =
*                     SECONDARY_RECORD       =
                   IMPORTING
                     return                 = wt_return
                     key                    = wl_key.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work area wa_2006 has the record from Pa2006 which needs to be modified with the values in the work area i2006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 14:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763019#M1461942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763020#M1461943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to change the end date of the record. Is it possible to do it using this FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 15:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763020#M1461943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763021#M1461944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is, but in order to do that, you need to change the value of the parameter VALIDITYEND. I guess you have changed the i2006-endda to the date you pretend to change, but in the validityend the endda should be of the existing record in PA2006 and in the i2006 structure the new endda, so check if this is all like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 16:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763021#M1461944</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-04-23T16:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763022#M1461945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arunsri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check your i2006 struct, fill all fields like (begda, endda, infty, etc.)&lt;/P&gt;&lt;P&gt;Even if you call the FM with infotype = XXXX the record i2006-infty should be XXXX, otherwise it shows that error.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: orgasmics on May 25, 2010 7:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 17:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763022#M1461945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T17:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: HR_INFOTYPE_OPERATION Insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763023#M1461946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   I am using HR_INFOTYPE_OPERATION  in 'IN_UPDATE'  of BADI. Even after passing right parameters, it is not creating a record in infotype 2006. The return parameter return no error. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Please let me know.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt;             CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
&amp;gt;                     EXPORTING
&amp;gt;                       number = wa_2006-pernr
&amp;gt;                     IMPORTING
&amp;gt;                       return = l_bapireturn.
&amp;gt; 
&amp;gt;                   CALL FUNCTION 'HR_INFOTYPE_OPERATION'
&amp;gt;                     EXPORTING
&amp;gt;                       infty                  = '2006'
&amp;gt;                       number                 = ipspar-pernr
&amp;gt;                       subtype                = i2006-subty
&amp;gt;                       objectid               = i2006-objps
&amp;gt; *                   LOCKINDICATOR          =
&amp;gt;                       validityend            = i2006-endda
&amp;gt;                       validitybegin          = i2006-begda
&amp;gt; *                  RECORDNUMBER           =
&amp;gt;                       record                 = i2006
&amp;gt;                       operation              = 'INS'
&amp;gt;                   TCLAS                  = 'A'
&amp;gt; *                  DIALOG_MODE            = '0'
&amp;gt; *                  NOCOMMIT               =
&amp;gt; *                  VIEW_IDENTIFIER        =
&amp;gt; *                  SECONDARY_RECORD       =
&amp;gt;                 IMPORTING
&amp;gt;                   return                 = wt_return
&amp;gt;                   key                    = wl_key.
&amp;gt; 
&amp;gt; 
&amp;gt;                   CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
&amp;gt;                     EXPORTING
&amp;gt;                       number = ipspar-pernr
&amp;gt;                     IMPORTING
&amp;gt;                       return = l_bapireturn.
&amp;gt; 
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 18:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hr-infotype-operation-insert/m-p/6763023#M1461946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-25T18:12:13Z</dc:date>
    </item>
  </channel>
</rss>

