Hi Anu,
Address for the company code generally comes from T001 table.
IN this table, you will find one ADRNR field. Take the value of this field and with this field search in the ADRC table. You should get the details of your Company Address over there.
This is the Std procedure of Company address. but you have to check if any custom procedure is implemented in your SAPScript or not
hope this helps you !!
- Harshad