Question:

which is the table which stores all the transaction codes?

Answer:

The following tables hold all SAP transactions:
Table TSTC stores all transaction codes and their respective ABAP program.
Table TSTCT stores the text (or description) for each transaction.