Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC_INPUT_CREDITOR

Former Member
0 Likes
621

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

1 REPLY 1
Read only

Former Member
0 Likes
420

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.