Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue creating DMEE exit function

Former Member
0 Likes
6,338

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.

1 ACCEPTED SOLUTION
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
4,101

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.

-- Tomas --
5 REPLIES 5
Read only

rthoodi
Active Participant
0 Likes
4,101

Hi Brian Kelso,

Can you check the following link helpful?

Br

RK

Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
4,102

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.

-- Tomas --
Read only

0 Likes
4,101

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

Read only

0 Likes
4,101

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.

-- Tomas --
Read only

0 Likes
4,101

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