hello community
I need to create a program that selects and compares all bseg and bsis values and if it is different I must update the table. I would like to know if there is a specific function for selecting bseg and bsis data and if I can use the 'FI_DOCUMENT_CHANGE' function to update values data.
sample of function:
LOOP AT lt_bsegaux INTO ls_bsegaux.
ls_log1-zlspr = ls_bsegaux-zlspr.
i_buzei = ls_bsegaux-buzei.
l_accchg-newval = ls_bsegaux-zlspr.
l_accchg-fdname = 'ZLSPR '.
l_accchg-oldval = ls_bsegaux-oldval.
APPEND l_accchg.
CLEAR l_accchg.
CALL FUNCTION 'FI_DOCUMENT_CHANGE'
EXPORTING
i_awtyp = accpmblk_fi-awtyp
i_awref = accpmblk_fi-awref
i_aworg = accpmblk_fi-aworg
i_awsys = accpmblk_fi-awsys
i_lifnr = accpmblk_fi-lifnr
TABLES
t_accchg = l_accchg.
endloop.