Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module HR_INFOTYPE_OPERATION

Former Member
0 Kudos

Hi Folks,

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..

Shyam.

Edited by: shyam prasad on Jul 15, 2008 3:38 AM

3 REPLIES 3

Former Member
0 Kudos

Hi ,

check the possible values for

COP Copy

DEL Delete

DIS Display

EDQ Lock/unlock

INS Create

LIS9 Delimit

MOD Change

INSS Create for Actions is not converted to Change

regards

Prabhu

Former Member
0 Kudos

Hi Shyam,

Infotype operation is not but making some changes to the Infotype like creating a record, deleating a record, changing a record etc...

Please check the Function Module documentation in SE37.

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.

These are the possible operations which can be done on infotype using the function module HR_INFOTYPE_OPERATION

COP	Copy
DEL	Delete
DIS	Display
EDQ	Lock/unlock
INS	Create
LIS9	Delimit
MOD	Change
INSS	Create for Actions is not converted to Change

Please check this code


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'.

Best regards,

raam

0 Kudos

Hi ,

Thanks for you answers. Actually i am using the custom class YTV_CL_TRMGMT_ENH=>UPDATE_TM_INFTY. Here i need to import the return paramter. The import parameters i need to get are displayed a,

IMPORTING

EV_ERROR =

EV_MSGTXT =

ES_RETURN =

.

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 ....