2008 Nov 13 9:55 AM
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.
2008 Nov 13 12:20 PM
2008 Nov 13 1:39 PM
It seems that in lt_fields first inserts and update are handled and then deletes.
Can anybody confirm?
2008 Nov 17 12:28 PM
Fixed it with code below:
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
EXPORTING
prelp = wa_infty_tab_before
IMPORTING
pnnnn = p0110.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |