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

How to modify field value using 'Exit Modules' in DMEE tree

Former Member
0 Likes
5,459

Hi,

I have Dme tree with tree type as 'DART' and format tree as 'PT_AUDIT_SDXML' and I would like to change the value of field 'Invoice type' using

'Exit modules' . So I tried to copy fm 'DMEE_EXIT_TEMPLATE_ABA' to 'ZDMEE_EXIT_TEMPLATE_ABA' and attached this in exit module. In fm ZDMEE_EXIT_TEMPLATE_ABA , logic is written to populate invoice type with new value and passed it through C_VALUE but when I tried to check the syntax error for DME tree in tcode 'DMEE' , it says the below error

***********************************************************************************************************************************************************

Node InvoiceType: function module ZDMEE_EXIT_TEMPLATE_ABA has incorrect interface

Message no. DMEE_ABA358

Diagnosis

You have assigned the exit module ZDMEE_EXIT_TEMPLATE_ABA to node InvoiceType. 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:

******************************************************************************************************************************************************

but as I have copied zfunction from DMEE_EXIT_TEMPLATE_ABA only then why it's giving this error? Could someone help me to solve this?

or any other way (other than user exit , as it doesn't include  that field ) to change the field values in DMEE files?  Even I tried to directly attach FM DMEE_EXIT_TEMPLATE_ABA into exit module but it's not allowing to do the changes directly there. Please help.

Regards,

Mrunal

Hi,

I have Dme tree with tree type as 'DART' and format tree as 'PT_AUDIT_SDXML' and I would like to change the value of field 'Invoice type' using

'Exit modules' . So I tried to copy fm 'DMEE_EXIT_TEMPLATE_ABA' to 'ZDMEE_EXIT_TEMPLATE_ABA' and attached this in exit module. In fm ZDMEE_EXIT_TEMPLATE_ABA , logic is written to populate invoice type with new value and passed it through C_VALUE but when I tried to check the syntax error for DME tree in tcode 'DMEE' , it says the below error

***********************************************************************************************************************************************************

Node InvoiceType: function module ZDMEE_EXIT_TEMPLATE_ABA has incorrect interface

Message no. DMEE_ABA358

Diagnosis

You have assigned the exit module ZDMEE_EXIT_TEMPLATE_ABA to node InvoiceType. 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:

******************************************************************************************************************************************************

but as I have copied zfunction from DMEE_EXIT_TEMPLATE_ABA only then why it's giving this error? Could someone help me to solve this?

or any other way (other than user exit , as it doesn't include  that field ) to change the field values in DMEE files?  Even I tried to directly attach FM DMEE_EXIT_TEMPLATE_ABA into exit module but it's not allowing to do the changes directly there. Please help.

Regards,

Mrunal

4 REPLIES 4
Read only

Former Member
0 Likes
2,304

Hi,

I think you can change your function module name, such as z_dmee_exit_template_aba.

BR

Iris

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,304

Hi Mrunal

Simply do one thing put a break point in include LDMEE1_ABACIN at line 1731 where it is calling

 

'FUNCTION_IMPORT_INTERFACE'. Check which all parameters it is comparing.. You will see that difference..Did you rename any parameters?

Nabheet


Read only

amigy85
Discoverer
0 Likes
2,304
You must ask for sscr key to modify FM  DMEE_EXIT_TEMPLATE_ABA 
on import parameters put
i_tem TYPE DMEE_PAYM_IF_TYPE
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
2,304

But did you change anything in the function definition after you copied it? These FMs require very specific parameters (aka "interface").