11-28-2008 10:57 AM
11-28-2008 11:04 AM
Hello,
You can create a Tab Delimited file using DMEE.
For this you need to create a Technical Node with an Exit Module "Z_TAB_DELIMITER" (proposed name) & pass this value between two fields.
Coding for the Exit Module:
FUNCTION Z_TAB_DELIMITER.
*"--------------------------------------------------------------------
*"*"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
*"--------------------------------------------------------------------
C_VALUE = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB. "Tab Delimiter.
ENDFUNCTION.
Hope this is clear.
BR,
Suhas
11-28-2008 11:04 AM
Hello,
You can create a Tab Delimited file using DMEE.
For this you need to create a Technical Node with an Exit Module "Z_TAB_DELIMITER" (proposed name) & pass this value between two fields.
Coding for the Exit Module:
FUNCTION Z_TAB_DELIMITER.
*"--------------------------------------------------------------------
*"*"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
*"--------------------------------------------------------------------
C_VALUE = CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB. "Tab Delimiter.
ENDFUNCTION.
Hope this is clear.
BR,
Suhas
11-28-2008 11:07 AM
11-28-2008 11:15 AM
Hello,
1. Create a "Technical Node".
2. In the ATTRIBUTES tab, "Mapping Procedure" section, check the EXIT MODULE radia-button.
3. Then in the SOURCE tab, "Exit Function" give the name of the Func. module.
BR,
Suhas
11-28-2008 1:03 PM
I had create now the function but when I want to activate the tree in dmee it says that my function has the wrong interface and that I have to use one of these templates
DMEE_EXIT_TEMPLATE_ABA
DMEE_EXIT_TEMPLATE_EXTEND_ABA
11-28-2008 1:08 PM
Hello,
Welcome to world of DMEE Tree. You can create the Exit FMs but all have the same interface :-((
Please use either DMEE_EXIT_TEMPLATE_ABA/ DMEE_EXIT_TEMPLATE_EXTEND_ABA as templates.
And in your Z Func. Module pass the value to c_value. (Please refer to my code)
BR,
Suhas
11-28-2008 1:11 PM
Hello this is my function
FUNCTION z_dmee_delimiter.
*"----
""Lokale Schnittstelle:
*" 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)
*" CHANGING
*" REFERENCE(I_TAB)
*"----
c_value = cl_abap_char_utilities=>horizontal_tab. "Tab Delimiter.
ENDFUNCTION.
the problem is I think that I have to define my paramaters to DMEE_EXIT_TEMPLATE_ABA, I guess this was the problem, I will chek it now.
11-28-2008 1:13 PM
Hello,
Plz check my code. I_TAB must be defined under "TABLES" & not "CHANGING".
BR,
Suhas
Edited by: Suhas Saha on Nov 28, 2008 2:14 PM
11-28-2008 1:14 PM
This is the actual function
FUNCTION z_dmee_delimiter.
*"----
""Lokale Schnittstelle:
*" 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)
*" EXPORTING
*" REFERENCE(O_VALUE)
*" REFERENCE(C_VALUE)
*" REFERENCE(N_VALUE)
*" REFERENCE(P_VALUE)
*" CHANGING
*" REFERENCE(I_TAB)
*"----
c_value = cl_abap_char_utilities=>horizontal_tab. "Tab Delimiter.
ENDFUNCTION.
I take now
*" VALUE(I_TREE_TYPE) TYPE DMEE_TREETYPE_ABA
*" VALUE(I_TREE_ID) TYPE DMEE_TREEID_ABA
but I get the same error message when I want to activate my dmee tree.
11-28-2008 1:16 PM
11-28-2008 1:17 PM
Thank you Suhan you are wright, this was the mistake, now I have to check the output file.
11-28-2008 1:34 PM
OK the function is included in my dmee tree and I can activate it without errors, the problem is that my outputfile have missing data now.
What do I have to insert in the top in dmee tree properties at format attributes for delimiter? I have these fields blank. I only have the radiobutton marked at payment details and at the subitems of payment details where I also have insert the name of my function.
11-28-2008 1:56 PM
11-28-2008 3:06 PM
where do I have to insert my function
in segement,
composite,
element or
technical node.
I have test to create an element after my datafield but all I had in the output was a # , what do you insert for the length in the attributes for that?
12-01-2008 11:38 AM
07-05-2011 8:32 PM
Suhas Saha,
I´m applying the source code your giving us, but when I run the F110 for a test, It doesn't do anything to the output.
I introduced as you said in a technical Node as an Exit, then I activate it. Until that point everything works fine, but when I run the F110 and look the payment media, every field is one next to the other with no tabulator.
Hope you answer me soon.
Esteban Moreno