Application Development and Automation 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: 
Read only

Question using HR_INFOTYPE_LOG_GET_LIST

Former Member
0 Likes
1,368

Hai all,

i have a problem using two FM as coded below, how can i link the correct row in lt_infty_tab_before and lt_infty_tab_after to the row in lt_fields, i found out that the order is not corresponding.

Tried to get the field data out of the data1 field in internal table lt_infty_tab_before and lt_infty_tab_after using `lw_logging-data = lw_infty_tab_before-data1´ but with this not the complet character field c250 is transfered to my work area.

Someone know if i do something wrong??

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'

EXPORTING

tclas = 'A'

begda = so_aedtm-low

endda = so_aedtm-high

auth_check = 'X'

use_archive = ' '

IMPORTING

subrc = lv_subrc

TABLES

pernr_tab = lt_pernr_tab

infty_tab = lt_infty_tab

infty_logg_key_tab = lt_infty_logg_key_tab.

  • DATUM_TAB = lt_datum_tab

  • UNAME_TAB = lt_uname_tab

LOOP AT lt_infty_logg_key_tab INTO lw_infty_logg_key_tab.

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'

EXPORTING

logged_infotype = lw_infty_logg_key_tab

  • AUTH_CHECK = 'X'

  • USE_ARCHIVE = ' '

IMPORTING

subrc = lv_subrc

TABLES

infty_tab_before = lt_infty_tab_before

infty_tab_after = lt_infty_tab_after

fields = lt_fields.

Hai all,

i have a problem using two FM as coded below, how can i link the correct row in lt_infty_tab_before and lt_infty_tab_after to the row in lt_fields, i found out that the order is not corresponding.

Tried to get the field data out of the data1 field in internal table lt_infty_tab_before and lt_infty_tab_after using `lw_logging-data = lw_infty_tab_before-data1´ but with this not the complet character field c250 is transfered to my work area.

Someone know if i do something wrong??

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_LIST'

EXPORTING

tclas = 'A'

begda = so_aedtm-low

endda = so_aedtm-high

auth_check = 'X'

use_archive = ' '

IMPORTING

subrc = lv_subrc

TABLES

pernr_tab = lt_pernr_tab

infty_tab = lt_infty_tab

infty_logg_key_tab = lt_infty_logg_key_tab.

  • DATUM_TAB = lt_datum_tab

  • UNAME_TAB = lt_uname_tab

LOOP AT lt_infty_logg_key_tab INTO lw_infty_logg_key_tab.

CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'

EXPORTING

logged_infotype = lw_infty_logg_key_tab

  • AUTH_CHECK = 'X'

  • USE_ARCHIVE = ' '

IMPORTING

subrc = lv_subrc

TABLES

infty_tab_before = lt_infty_tab_before

infty_tab_after = lt_infty_tab_after

fields = lt_fields.

3 REPLIES 3
Read only

Former Member
0 Likes
980

How to handle a field \TYPE=PREL_DATEN

Read only

Former Member
0 Likes
980

It seems that in lt_fields first inserts and update are handled and then deletes.

Can anybody confirm?

Read only

Former Member
0 Likes
980

Fixed it with code below:

CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn

EXPORTING

prelp = wa_infty_tab_before

IMPORTING

pnnnn = p0110.