‎2008 Dec 29 5:19 AM
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
‎2009 Mar 05 7:37 PM
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.
‎2009 Mar 13 5:37 AM
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
‎2009 Mar 16 4:36 PM
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.
‎2009 Mar 23 11:28 AM
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