Hello Anup,
Copy all Vendor numbers from field LFB1-LIFNR and put it in LFA1-LIFNR and use LFA1-KTOKK ( KTOKK account groups are different for internal and external vendors). First extract data from internal account group KTOKK and save and repeat the same for external vendors.