Quite Simple:- 1. You require the ledger name in order to get the HSN Code 2. You can retrieve HSN Code like this:- $_HSNCode:Ledger:$LedgerName Or $GSTHSNCode:Ledger:$LedgerName Note: Replace $LedgerName with the key which stores the Ledger name