‎2007 Jul 02 11:04 AM
hallow
i have to do a log for pa (interface)and in table fields i have the fields that have change
lets say i have lot of employee and i wont to take employee one at time and check if hire (massn = a1 ) or fire...
what is the best way to take employee and bring all the field that change for him?
regards
CALL FUNCTION 'HREIC_GET_LOGGED_INFTY_CHANGES'
EXPORTING
is_log_key = is_log_key
IMPORTING
et_infty_modif = et_infty_modif. "here i get table with all employee
SORT et_infty_modif BY pernr bdate btime infty.
LOOP AT et_infty_modif INTO wa_et_infty_modif.
CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
EXPORTING
logged_infotype = wa_et_infty_modif
auth_check = 'X'
use_archive = ' '
TABLES
infty_tab_before = infty_tab_before
infty_tab_after = infty_tab_after
fields = fields.
endloop.
Regards
‎2007 Jul 05 10:48 AM
Hi Antonio,
What I can understand is you want to take the employee one by one and want to do a check on the field PA0000-massn = 'A1'.
After you have the internal table created in the tables parameter and inputing the data you can create a local work area of the same type as table and then loop that internal table. In this way you can have one row of information and can check the Action Type field and perform the rest of the necessary business logic.
Data: wa_pa0000 type pa0000.
loop at it_pa0000 into wa_pa0000.
*/ Necessary Business logic
*/
endloop.
Thanks and Regards,
Samantak Chatterjee
Please rewards points if find useful.