A data medium exchange (DME) file that you send – for instance, to your bank or tax authority – either as a flat file or in XML format.
You model the external format file as a format tree in the DME Engine. When you create a format tree, you must assign a tree type. Different tree types are delivered with your SAP ERP system. For example, the tree types delivered for Financial Accounting include:
Payment Program (tree type PAYM)
The system can trigger the creation of a DME file from the payment program if, for example, you want to submit your vendor payments to your bank electronically. For this tree type, you use the Payment Medium Workbench (PMW) to configure payment media.
When you execute a payment run, the system triggers the generic payment medium program of the PMW for creating payment media. The PMW format uses the DMEE format tree to create the file to be sent to your bank. In this case, the system requires special configuration of the corresponding payment method.
Advance Return for Tax on Sales and Purchases (tree types UMS1, UMS2, and UMS3)
You run program RFUMSV00 to create an advance return for tax on sales/purchases for UMS1, and additionally program RFUVXX00 for UMS2 and UMS3. For further details, see UMS1, UMS2, and UMS3 Tree Types.
Generic Withholding Tax Reporting (tree type WTRE)
You can run program RFIDYYWT to prepare a withholding tax return as a DME file. Under Files, set the Create File indicator and specify a file name. You do not enter a format tree directly; rather, the system takes the information it needs from the process type and output group you specify.
EC Sales List (tree type ASLD)
To create an EC sales list as a DME file, you need to run program RFASLD20 (and not the standard program RFASLM00). Under Output control, you specify the format tree to be used (in the DMEE tree type field), as well as the name the file is to be saved under.
1099-C Cancellation of Debt (tree type DEBT)
To create a DME file for 1099-C reporting for the United States, you run program RFIDUS99C. Under Output, specify format tree IDUS99C_1099C, as well as file information.
From a technical view, the calling application carries out the following steps:
Selects data and fills the transfer structure
Calls DMEE modules with the data that has been selected
Obtains an internal table with data in format structure
Writes data to a file or to File/TemSe/... and, in the case of tree type PAYM, possibly updates DME administration
Note that a Business Add-In is available that enables you to modify the internal table (in step 3 above) before the DME Engine saves the file (step 4). You find the BAdI in Customizing for Cross-Application Components, under
.To create a format tree for outgoing DME files, follow the standard procedure. Note, however, that a few of the steps contain information specific to outgoing files: