07-15-2008 2:36 AM
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
07-15-2008 3:00 AM
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
07-15-2008 3:07 AM
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
07-15-2008 3:33 AM
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 ....