Hello guys! I have a problem with a internal table into of a my badi, I try of get each position of a PO is saved in t_posic. The problem it's that for each position, only save a register in my table t_posic. I use the BADI ME_PROCESS_PO_CUST with method ITEM.
e_posic-ebelp = ls_mepoitem-ebelp.
e_posic-pspnr = ls_account-ps_psp_pnr.
e_posic-waers = ls_mepoitem-waers.
READ TABLE
t_posic
INTO ls_posic
WITH KEY
pspnr = e_posic-pspnr
BINARY SEARCH.
IF SY-SUBRC EQ 0.
ELSE.
APPEND e_posic TO t_posic.
ENDIF.