07-03-2007 11:58 AM
Hallow
I this program I move different kind of structre to <fs_pnnn> p0000 or p0001 and many more
My qustion is how to save all structre in diffrent tables becouse I need to use them
regards
LOOP AT lcl_pers_tab INTO wa_lcl_pers_tab."Read fm for hire Employee
CALL FUNCTION 'HR_INFOTYPE_LOG_GET_DETAIL'
EXPORTING
logged_infotype = wa_lcl_pers_tab
auth_check = 'X'
use_archive = 'X'
TABLES
infty_tab_before = infty_tab_before
infty_tab_after = infty_tab_after
fields = fields.
IF ( wa_lcl_pers_tab-infty EQ '0000' ) OR ( wa_lcl_pers_tab-infty EQ '0001')
OR ( wa_lcl_pers_tab-infty EQ '0002').
l_infty = wa_lcl_pers_tab-infty.
CONCATENATE 'LS_P' l_infty INTO l_field. "LS_P is defntion of Type Above
CONCATENATE 'LT_P' l_infty INTO l_field2. "LT_P is defntion of TYPE STANDARD TABLE Above
ASSIGN (l_field) TO <fs_any>.
ASSIGN (l_field2) TO <fs_pnnn>.
LOOP AT infty_tab_after INTO ls_prelp.
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn "Convert: semi-transparent -> transparent infotype
EXPORTING
prelp = ls_prelp
IMPORTING
pnnnn = <fs_any>.
<b>APPEND <fs_any> TO <fs_pnnn></b> .
ENDLOOP.
ENDIF.
Endloop.
regards
07-03-2007 12:05 PM
hi
use modify <fs_pnn> after append statement.
regards
ravish
<b>plz reward if useful</b>
07-03-2007 12:05 PM
hi
use modify <fs_pnn> after append statement.
regards
ravish
<b>plz reward if useful</b>