Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Badi FAGL_MIG_ADJ_ACCIT

Hi expert,

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.

Tags:
replied

Hi,

Try,

FIELD-SYMBOLS:

                <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

  

ENDIF

ENDIF.

ENDLOOP.


Hope it helpful,


Regards,

Venkat.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question