Field help (LEDTYPDEC) 

The ledger type will determine the ledger where the data for the declaration will be triggered.

By default this ledger should be the social one. If not, you should make sure that the chosen ledger is connected to a chart of accounts where taxes are managed.