|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Resolving the truncation of multi-byte characters in DMEE File
Implementation of the logic to resolve the issue
we will look how can we handle the issue of truncation of multi byte characters
(e.g. Chinese characters), which
are appearing in DMEE output file.
this issue we can search a suitable BADI and there we can create our
implementation and put the code as per requirement.
developing DMEE tree for china because of the presence of multi byte characters
in the format. The length counted by the standard SAP is incorrect and results
in the improper output file (truncation of last field in all lines).
Defination name: DMEE_BADI_01
respective Implementation give the name of DMEE tree in attributes and in
Interface give IF_EX_DMEE_BADI_01.
Logic can be put as follows:
cl_abap_char_utilities DEFINITION LOAD.
flt_val = ' Give the name of DMEE tree created' (This is to put
filter only one specific DMEE tree)
AT c_output_tab INTO l_wa_tab.
case multiple docs posted for same vendor or customer then only one record
is generated by the DMEE tree summing all the amounts but Badi is called forever
line resulting in increasing length every time, to avoid it the line length
and imported length found in c_output_tab(if already modified) can be compared
So to make
it run only once for all the items.
IF l_v_len1 = l_wa_tab-length.
l_v_len = STRLEN (l_v_name) + STRLEN (l_v_bank) + STRLEN (l_v_purpose).
l_wa_tab-length = l_wa_tab-length + l_v_len.
MODIFY c_output_tab FROM l_wa_tab INDEX l_v_ind TRANSPORTING length.
is how such issues can be countered successfully.
3. How to Debug:
debug DMEE, program can be very handy SAPFPAYM
is the screen, here you need to give the inputs as shown below...
this you can debug the DMEE program.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards