Hi want to create voyages through x++ code
I’m not familiar with voyages, but in general, you typically can use either data entities or tables. You may be interested in the documentation page Voyage creation entities; even if you want to use tables directly rather than entities, the entities show you the tables involved.