Hello, SAPers!
From time to time, when you configure custom DMEE trees you'are faced with different bank-dependent requirements concerning the format of payment orders. Most of these requirements can be dealt with using standard customizing and mapping procedures. However sometimes there are more complicated issues related to configuration of DMEE trees. One of the comparatilvely typical problems is use of TAB as delimiter in segments of DMEE tree. Basically, you can use any printable symbol as a delimiter, but you cannot simtly insert TAB as symbol on the Format attributes tab of your DMEE tree and there is no other standard customizing that will enable this. Thus, in order to configure tab as delimiter in segments the following configuration should be performed.
First of all, make sure that there are no delimiters in segments specified for your DMEE format tree. Go to Format attributes tab and make sure that the following fields are empty:
On the transaction level of DMEE the following logic has to be applied: create a composite node for each element which will group its value and tab value. For instance, according to bank requirements there should be a field with payment document type with fixed value 01 for domestic payment. In order to meet this requirement you create a composite node payment_doc_type:
As can be seen from the figure above, composite node doesn’t require a lot of customizing. You just have to specify a name of composite node and short description. As a rule you’ll need two elements (VALUE and TAB) for each composite node – except for those nodes which are not mandatory.
VALUE element will have different properties depending on mapping requirements. For instance, field with payment document type should return fixed value “01” therefore this element will have the following properties:
This particular VALUE element uses Constant as mapping procedure therefore "01" was specified on the Source tab in the respective field:
TAB element will have the same properties for each composite node:
TAB elements should use Exit function as mapping procedure therefore function module Z_DMEE_TAB_SYMBOL was specified in the respective field on the Source tab:
Consequently you will have to create a simple function module in transaction SE37. Source code for this function module can be found in the attached file. Please, note that you need developer key in order to create function module.
As a result, the DMEE tree will look as follows:
Create other composite nodes as required for payment medium for your bank and activate the tree. Afterwards, when you run the transaction FBPM and create the payment medium, your lines will look as follows:
Generally, I would recommend the following sequence of configuration steps for DMEE tree with TAB as delimiter:
1. Figure out what fields do you need and create a list with proposed names and mapping procedures for each field;
2. Create composite node for each field;
3. Create an element TAB and copy it as subnode to each composite node;
4. Create an element VALUE for each subnode with properties that will satisfy your mapping requirements.
I hope this information will be useful. All suggestions are welcome!
Best regards,
The Wirtschaftsmann
P.S. Source code for FM was found on SCN under the following link: DMEE Transaction
Thanks to authors!