‎2007 May 03 12:11 AM
HI Experts,
We are posing a IDoc for bank details, It s woking fine and bank details are posting to transcation XK02. But it's deleting the previous bank details.
Idoc in using FM - IDOC_INPUT_CREDITOR
Could any body let me know the reason , why it is deleting ther previous existing
records.
Regards
Nagaraju
‎2007 May 03 1:47 AM
Unfortunately, the piece of code below deletes all the bank details that are not there in the incoming IDoc. You will always have to have the existing bank details also in your incoming IDoc. So if you have one bank A detail for a vendor already, and if you intend to add another bank B to it, you will have to fill in two instances of segment E1LFBKM, one for the existing bank A and one for the new bank B.
IF FIRST_E1LFBKM = C_TRUE "delete all existing entries
AND BLF00-TCODE <> 'XK01'.
PERFORM DELETE_LFBK_NOT_IN_IDOC TABLES T_IDOC_DATA_WA
T_BDIFIBIWA
USING H_LIFNR.
FIRST_E1LFBKM = C_FALSE.
ENDIF.