Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

Find changes in HR infotypes by date

DATA: t_change_list TYPE pldoc_key_tab,

w_change_item TYPE pldoc_key.

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'

EXPORTING

* TCLAS = 'A'

begda = p_aedtm

endda = p_aedtm

TABLES

infty_logg_key_tab = t_change_list

.

DATA: t_before TYPE prelp_tab,

t_after TYPE prelp_tab,

w_before TYPE prelp,

w_after TYPE prelp.

LOOP AT t_change_list INTO w_change_item.

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'

EXPORTING

logged_infotype = w_change_item

TABLES

infty_tab_before = t_before

infty_tab_after = t_after.

ENDLOOP.

LOOP AT t_after INTO w_after.

CASE w_after-infty.

WHEN '0001'.

WHEN '0007'.

etc..........

ENDCASE.

ENDLOOP.

Back to How To list