"En rigtig Soldat" [Danish title] is number 612 in the Hans Christian Andersen Center's register of Andersen's literary works, i.e. no. 12 in the category drama (the range 601 - 700). BFN 322.
"En rigtig Soldat" [Danish title] was first published 19 May 1838, cf. the bibliographic description (in Danish) in : Digterens danske Værker 1822-1875, number in bibliography: 322:
En rigtig Soldat
(Saml. Skr. IX, 245). p. 53
The work was published as a part of Tre Digtninger [Danish title]. (Number 1002. BFN 320. Category/genre: Collected and miscellaneous writings).
Show this work in its context: all new Andersen publications from 1838.
The Hans Christian Andersen library (bibliographies):