‎2014 Oct 10 11:55 AM
Hi,
I have a requirement to add the interim bank account details to a DMEE tree structure. I have created a function module and assigned it to the node in the DMEE structure. When I perform a Format-Tree check I get the error:
Function Module has incorrect interface
Make sure your exit module uses the interface of one of the following module templates:
DMEE_EXIT_TEMPLATE_ABA
DMEE_EXIT_TEMPLATE_ENTEND_ABA
The code of my function module is below which I copied from one of the function module templates suggested above and then added in my lines of code.
FUNCTION Z_DMEE_EXIT_INTERIM_ACC_NO.
*"--------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_TREE_TYPE) TYPE DMEE_TREETYPE_ABA
*" VALUE(I_TREE_ID) TYPE DMEE_TREEID_ABA
*" VALUE(I_ITEM)
*" VALUE(I_PARAM)
*" VALUE(I_UPARAM)
*" REFERENCE(I_EXTENSION) TYPE DMEE_EXIT_INTERFACE_ABA
*" EXPORTING
*" REFERENCE(O_VALUE)
*" REFERENCE(C_VALUE)
*" REFERENCE(N_VALUE)
*" REFERENCE(P_VALUE)
*" TABLES
*" I_TAB
*"--------------------------------------------------------------------
* Extended template function module -----------------------------------*
DATA : lwa_item TYPE dmee_paym_if_type,
l_fpayh TYPE fpayh,
l_fpayp TYPE fpayp.
lwa_item = i_item.
l_fpayh = lwa_item-fpayh.
l_fpayp = lwa_item-fpayp.
IF l_fpayh-bnkn1 is not initial.
concatenate 'Account ' l_fpayh-bnkn1 into c_value.
ENDIF.
ENDFUNCTION.
I cannot create my function module in function group DMEES_ABA as this is reserved for SAP.
Does my function module need to be created in a particular function group or can anyone advise what I'm doing wrong?
Brian.
‎2014 Oct 10 1:47 PM
Function can be in any function group.
How exactly have you created a copy? Try in SE37 - button above "Copy...".
And better use DMEE_EXIT_TEMPLATE_ABA as template, if you don't need extension.
‎2014 Oct 10 12:41 PM
‎2014 Oct 10 1:47 PM
Function can be in any function group.
How exactly have you created a copy? Try in SE37 - button above "Copy...".
And better use DMEE_EXIT_TEMPLATE_ABA as template, if you don't need extension.
‎2014 Oct 13 9:19 AM
Thank you for the reply Tomas.
In SE80 I created and activated a new Function Group (Z_DMEE).
In SE37 I copied FM DMEE_EXIT_TEMPLATE_ABA to FM Z_DMEE_EXIT_INTERIM_ACC_NO and added in my code to assign output to parameter c_value.
In tcode DMEE, I have a format tree ZZ_NB_GB_FOREIGN in which I have created a node with mapping procedure Exit Module and in the source tab the Exit function is Z_DMEE_EXIT_INTERIM_ACC_NO. In DMEE when I check or active the Format Tree the below error occurs:
Node 25 Interim Account: function module Z_DMEE_EXIT_INTERIM_ACC_NO has incorrect interface
Message no. DMEE_ABA358
Diagnosis
You have assigned the exit module Z_DMEE_EXIT_INTERIM_ACC_NO to node 25 Interim Account. However, the interface for this function module is not one of the predefined interfaces.
Procedure
Make sure that your exit module uses the interface of one of the following module templates:
DMEE_EXIT_TEMPLATE_ABA
DMEE_EXIT_TEMPLATE_EXTEND_ABA
‎2014 Oct 13 11:13 AM
I think i got it, correct template modules are:
DMEE_EXIT_TEMPLATE
DMEE_EXIT_TEMPLATE_EXTENDED
etc. (without _ABA)
DMEE_EXIT_TEMPLATE
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_TREE_TYPE) TYPE DMEE_TREETYPE
*" VALUE(I_TREE_ID) TYPE DMEE_TREEID
*" VALUE(I_ITEM)
*" VALUE(I_PARAM)
*" VALUE(I_UPARAM)
*" EXPORTING
*" REFERENCE(O_VALUE)
*" REFERENCE(C_VALUE)
*" REFERENCE(N_VALUE)
*" REFERENCE(P_VALUE)
*" TABLES
*" I_TAB
Long text of DMEE_ABA 358 message is wrongly used in DMEE check.
‎2014 Oct 13 12:03 PM
Many thanks Tomas you have cracked it.
I copied FM DMEE_EXIT_TEMPLATE to FM Z_DMEE_EXIT_INTERIM_ACC_NO and added my code. The DMEE tree structure now activates.
Many thanks for your quick responses.
Brian