Currents structure in the scrape-off layer (SOL) of a tokamak is analyzed. It is demonstrated that poloidal currents measured in the experiments are a combination of several current types of different physical nature. Besides known Pfirsch-Schlüter (PS) currents and thermoelectric currents, so-called PCC (plate closing currents) flowing to/from the divertor plates are also analyzed. The latter close radial currents in the SOL and below/above the X-point. In particular, current flowing to the outer plate in the private flux region (PFR), opposite to thermolelectric current is predicted for the standard single-null configuration and favorable direction of ∇B drift (∇B drift of ions is directed towards active X-point). In addition, a pair of currents to and away from the outer plate should flow. In the single-null configuration they are often masked by a larger thermoelectric current, however for the connected double null (CDN) case, where thermoelectric current is strongly reduced due to less temperature asymmetry, these currents dominate. The suggested physical model is supported by results of simulations performed with SOLPS-ITER transport code. Simulations were done for ASDEX-Upgrade (AUG), L-mode , single-null configurations, and for Globus-M H-mode, both disconnected and connected double null configurations. Results of the simulations are compared with probe measurements for AUG and Globus-M tokamaks, and reasonable agreement has been found.