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

Exit function module in DMEE

govind_parmar
Participant
0 Likes
1,909

Hi Experts,

I made a exit function for an element in DMEE tree. It is for invoice details, I had made a copy of the template DMEE_EXIT_TEMPLATE which has I_TAB in the table paramters. I want the code to return a internal table with multiple enteries. If I try to declare an internal table in the table paramters and the assign this to the tree it gives me a an error :Node Invoice Details: function module Z_DMEE_EXIT_INVOICE has incorrect interface

My question is how do I return a internal table which has a structure other than the predefined structure.

Thanks,

Govind

4 REPLIES 4
Read only

Former Member
0 Likes
1,017

I am not sure how to retrun internal table but i have solution to populate Invoice details. Here are the steps.

1. Create segment as "Invoice titles".

2. Create elements. If you have five columns then create five elements. Give titles in source tab/constant field.

3. assign exit function module to each field and return in variables.

Thanks,

Ram Juluru.

Read only

0 Likes
1,017

Hi Rama,

ur solution is okay if the Payment Document will have only one vendor invoice , so what if u have multiple Vendor Invoices ? , Is it returning correct values or not ? ,even i have done the same thing but i'm usiing XML format , due to that its repeating last Invoice Details twice.

regards

Prabhu

Read only

0 Likes
1,017

This works for multiple vendors also. I have tested it. Debug in exit module and check it. Your config might be different in DMEE.

Thanks,

Rama.

Read only

0 Likes
1,017

Hi guys,

Thanks for all your suggestions but we can declare an internal table in the program and then assign that value to C_VALUE in the EXIT Module, it would give you multiple value. i.e. One Payment run can have multiple invoices details. In my case I was having multiple amts and invoice numbers.

Thanks.. a lot