10-29-2009 5:32 PM
hi,
how to update data for pa2002..
here i am using hr_infotype_Operation...(function module)
how to pass parameter in this.
Please help me.
10-29-2009 6:21 PM
use FM HR_INFOTYPE_OPERATION with operation as MOD ...
OR
I would suggest that you look at sap enhancement PBAS001 especially EXIT_SAPFP50M_002. This PAI . Your logic in ZXPADU02 would be something like this.
I would also suggest that you drive this user exit of IT0000 as this holds the status of an employee.
10-30-2009 6:34 AM
Hi,
Try to use HR_INFOTYPE_OPERATION function module like below
Thanks
venkat.ODATA:p2002 TYPE STANDARD TABLE OF p2002 WITH HEADER LINE,
return LIKE bapireturn1,
personaldatakey LIKE bapipakey.
START-OF-SELECTION.
"Get the data for Infotype into table p2002
LOOP AT p2002.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '2002'
number = p2002-pernr
subtype = p2002-subty
validityend = p2002-endda
validitybegin = p2002-begda
record = p2002
operation = 'MOD' "MOD = Modify or update
nocommit = space
IMPORTING
return = return
key = personaldatakey
EXCEPTIONS
OTHERS = 0.
ENDLOOP.
"You need write the logic for all infotype which are used in creating employee