Port Type XML: Maintaining Port Definition 
The regulations for generating the outbound file are defined in outbound processing. In inbound processing, the port definition only affects the test program (see below).
Procedure
The text is displayed in the initial screen of the port definition and in the partner profiles. A descriptive text, for example, would be "files contain the DTD".
The DTD contains the tags that are used in the following XML IDoc, that is, tags for the IDoc record types and the individual segments. The tags are named in the same way as the individual fields. The start-end-tag-sequence for the field MESTYP of the control record EDI_DC40 is therefore <EDIDC_40-MESTYP><EDIDC_40-MESTYP>.
The file name generated by the function module overrides the static name, which you can maintain in field Outbound file. A static name can make sense for a test port: If your test port is entered in the corresponding field in the
IDoc administration , and if you have not entered a function module, then the static name in the test programs is used. Static file names like dynamic file names contain the addition .xml in Windows/NT operating systems.Logical directories are resolved depending on operating system in the physical directory maintained in the transaction FILE. Also see the F1 Help for the fields logical/physical directory.