DME stands for Data Medium Exchange having T-code DMEE(DME Engine).
Some business has this interface with banks which process their payment by just sending a payment file to the bank generally the file is in .xml or flat-file format which can be created by a standard process called DMEE.
DMEE is a standard process that can be configured as required XML or flat-file output nodes are introduced in DMEE structure and the values are taken in either the structure or putting an exit which is a Function Module where code can be written for the fields which are not in the standard structure.
All the nodes can have separate FM or Exit or can be included in one Exit using Case Endcase on Node ID or separate FM can be included for each node.
Function Module Can Be used:-
- FI_PAYMEDIUM_SAMPLE_21 ( FM to Change File Name).
The function Module mentioned above can be used for creating Exit for getting values on the node which cannot be satisfied by a standard structure whereas importing parameters we get all the fields which are present in DMEE and contains three exporting parameters Which are O_VALUE, C_VALUE, N_VALUE and P_VALUE which represents type C, N, P and O is for Output Return Value.
Importing Parameter for the FM is of type DMEE_PAYM_IF_TYPE where data from F110 is imported to FM which can be used to get other relevant fields.
A node that needs to have Exit need to check RadioButton Exit module, wherein Attributes the type should be given as Exporting Parameters from FM.
Whatever the data is to show in node through Exit code is written in that particular exit as shown in the code and image beside.
DMEE_EXIT_TEMPLATE_EXTEND_ABA FM as exit code depending on the node Id.
DMEE_EXIT_TEMPLATE FM as an exit for the individual node.
This is when you need to map just for one node or to avoid confusion every node is given seperate Exit as in FM.
FI_PAYMEDIUM_SAMPLE_21 FM to change Filename
The Importing Parameter i_filename which contains the file path where the file needs to be saved and exporting parameters which give file name c_filename.
Config for Attaching FM For File Name to DMEE File
T-code OBPM3 and find DME Format select and double click on Event Modules where FM name can be assigned with event 21.
Thank you for reading. Stay tuned!