i have issue in new implementation FAGL_MIG_ADJ_ACCIT.
in this badi i want to change segment according to Bukrs and gsber .
in IT_ACCIT_EX table this are available but i am getting error to read this table.
i want to read ACCIT str filed of this table.
VenkatRamesh V replied
<fs_accit> TYPE ANY,
<fval> TYPE ANY,
<fs_ct_accit> LIKE LINE OF CT_ACCIT_ASGMT.
loop at it_accit_ex ASSIGNING <fs_accit>.
ASSIGN COMPONENT 'GSBER' OF STRUCTURE <fs_Accit> to <fval>.
IF <fval> IS ASSIGNED.
select single segment
from ZSUB_PCSEG into lv_segment
where bukrs = wa_ACCIT_EX-BUKRS and gsber = <fval>.
READ TABLE CT_ACCIT_ASGMT ASSIGNING <fs_ct_accit> with key gsber = <fval>.
IF sy-subrc IS INITIAL.
<fs_ct_accit>-SEGMENT = lv_segment.
Hope it helpful,