<?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: Function Module HR_INFOTYPE_OPERATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187480#M1001019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype operation is not but making some changes to the Infotype like creating a record, deleating a record, changing a record etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please check the Function Module documentation in SE37.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module enables you to maintain master data for employees and applicants. You can transfer one data record. All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is , the individual maintenance screen error messages are transferred rather than interpreted by this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the possible operations which can be done on infotype using the function module &lt;STRONG&gt;HR_INFOTYPE_OPERATION&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COP	Copy
DEL	Delete
DIS	Display
EDQ	Lock/unlock
INS	Create
LIS9	Delimit
MOD	Change
INSS	Create for Actions is not converted to Change&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  w_return	like	bapireturn1,
  w_key	like	bapipakey.

parameters:
  p_pernr like pa0001-pernr.

select single *
from pa0001
into  corresponding fields of fs_pa0001
where pernr = p_pernr.


fs_pa0001-gsber = '1000'.
fs_pa0001-infty = '0001'.

call function 'HR_INFOTYPE_OPERATION'

    exporting
      infty                  = '0001'
      number                 = '00060621'
*   SUBTYPE                =
*   OBJECTID               =
*   LOCKINDICATOR          =
   validityend            = '99991231'
   validitybegin          = '20080627'
*   RECORDNUMBER           =
      record                 = fs_pa0001
      operation              = 'INS'
*   TCLAS                  = 'A'
*   DIALOG_MODE            = '0'
*   NOCOMMIT               =
*   VIEW_IDENTIFIER        =
*   SECONDARY_RECORD       =
 importing
   return                 = w_return
   key                    = w_key.

 call function 'BAPI_TRANSACTION_COMMIT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2008 02:07:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-15T02:07:46Z</dc:date>
    <item>
      <title>Function Module HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187478#M1001017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            What is meant by 'Infotype operation' in HR ABAP. I need to pass the parameter 'Operation '  in the FM HR_INFOTYPE_OPERATION. Could any one explain me hw to pass that parameter..Thanks..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Shyam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shyam prasad on Jul 15, 2008 3:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 01:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187478#M1001017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T01:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187479#M1001018</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;&lt;/P&gt;&lt;P&gt;check the possible values for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COP	Copy&lt;/P&gt;&lt;P&gt;DEL	Delete&lt;/P&gt;&lt;P&gt;DIS	Display&lt;/P&gt;&lt;P&gt;EDQ	Lock/unlock&lt;/P&gt;&lt;P&gt;INS	Create&lt;/P&gt;&lt;P&gt;LIS9	Delimit&lt;/P&gt;&lt;P&gt;MOD	Change&lt;/P&gt;&lt;P&gt;INSS	Create for Actions is not converted to Change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 02:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187479#M1001018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T02:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187480#M1001019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Infotype operation is not but making some changes to the Infotype like creating a record, deleating a record, changing a record etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please check the Function Module documentation in SE37.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module enables you to maintain master data for employees and applicants. You can transfer one data record. All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is , the individual maintenance screen error messages are transferred rather than interpreted by this module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the possible operations which can be done on infotype using the function module &lt;STRONG&gt;HR_INFOTYPE_OPERATION&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COP	Copy
DEL	Delete
DIS	Display
EDQ	Lock/unlock
INS	Create
LIS9	Delimit
MOD	Change
INSS	Create for Actions is not converted to Change&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
  w_return	like	bapireturn1,
  w_key	like	bapipakey.

parameters:
  p_pernr like pa0001-pernr.

select single *
from pa0001
into  corresponding fields of fs_pa0001
where pernr = p_pernr.


fs_pa0001-gsber = '1000'.
fs_pa0001-infty = '0001'.

call function 'HR_INFOTYPE_OPERATION'

    exporting
      infty                  = '0001'
      number                 = '00060621'
*   SUBTYPE                =
*   OBJECTID               =
*   LOCKINDICATOR          =
   validityend            = '99991231'
   validitybegin          = '20080627'
*   RECORDNUMBER           =
      record                 = fs_pa0001
      operation              = 'INS'
*   TCLAS                  = 'A'
*   DIALOG_MODE            = '0'
*   NOCOMMIT               =
*   VIEW_IDENTIFIER        =
*   SECONDARY_RECORD       =
 importing
   return                 = w_return
   key                    = w_key.

 call function 'BAPI_TRANSACTION_COMMIT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 02:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187480#M1001019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T02:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module HR_INFOTYPE_OPERATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187481#M1001020</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 answers. Actually i am using the custom class  YTV_CL_TRMGMT_ENH=&amp;gt;UPDATE_TM_INFTY. Here i need to import the return paramter. The import parameters i need to get are displayed a,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;      EV_ERROR          =&lt;/P&gt;&lt;P&gt;      EV_MSGTXT         =&lt;/P&gt;&lt;P&gt;      ES_RETURN         =&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to declare variables to assgin these paramters. generally in BAPI, we declare as BAPIRETRUN. But i dont know how to declare in a class.. Could you pls tell me how to declare..or any sample code regarding this.....Thanks ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 02:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-hr-infotype-operation/m-p/4187481#M1001020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-15T02:33:58Z</dc:date>
    </item>
  </channel>
</rss>

