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

  1. Choose IDoc ® Port definition from the Initial Node of the IDoc Interface.
  2. Position the cursor on XML and choose . Name the port and confirm your entries.
  3. Specify a text that is as descriptive as possible in the definition.
  4. 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".

  5. Tab page Outbound File: You can choose whether the IDocs should be written together with the corresponding Document Type Declaration (DTD) in the XML file.
  6. 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>.

  7. If possible, you must replace country-specific special characters such as ä,ö,ü with international characters like ae,oe,ue. In addition, you must maintain the Conversion table and then select Convert special characters. You must note, however, that the character strings in the segment fields can then change length!
  8. As with port type file, it is best if you enter a function module which generates the file names. SAP recommends EDI_PATH_CREATE_CLIENT_DOCNUM or EDI_LPATH_CREATE_CLIENT_DOCNUM for logical directory. These function modules guarantee clear file names and therefore prevent files that have not been processed from being overwritten. Perform an access test for your directory.
  9. 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.

  10. Tab page Outbound: Triggering: Proceed as in step 6 with Port type file. Perform another access test.