Application Development 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: 

DMEE Transaction

Former Member
0 Kudos

Is it possible to get a tab delimiter for the tree in DMEE ???

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

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

15 REPLIES 15

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

where do I have to call this function.???

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hello,

Check my previous post !!!

BR,

Suhas

Former Member
0 Kudos

Thank you Suhan you are wright, this was the mistake, now I have to check the output file.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Suhas? Could you have a look at your settings?

Former Member
0 Kudos

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?

Former Member
0 Kudos

Thanks Suhas it works now.

0 Kudos

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