  We define discrete Hamiltonian systems in the framework of discrete
embeddings. An explicit comparison with previous attempts is given. We then
solve the discrete Helmholtz's inverse problem for the discrete calculus of
variation in the Hamiltonian setting. Several applications are discussed.
