Sunteți pe pagina 1din 2

11/25/2019 Resolving the truncation of multi-byte characters in DMEE File

Custom Search Search

Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us

SAP Virtual/Onsite
Resolving the truncation of multi-byte characters in DMEE File
Trainings
...Previous
Document Categories:
2. Implementation of the logic to resolve the issue of truncation.

ABAPTM Here we will look how can we handle the issue of truncation of multi byte characters (e.g. Chinese
Adobe Forms characters), which are appearing in DMEE output file.
ABAP-HR
ALE & IDocs For this issue we can search a suitable BADI and there we can create our implementation and put the code
ALV as per requirement.
BAPI
BASIS Issue:
BSP
Business Objects While developing DMEE tree for china because of the presence of multi byte characters in the format. The
Business Workflow
CRM NEW
length counted by the standard SAP is incorrect and results in the improper output file (truncation of last field
LSMW in all lines).
SAP Script/Smart Forms
BI/BW Solution:
eXchange Infrastructure (XI)
Enterprise Portals (EP) BADI Defination name: DMEE_BADI_01
eCATT
Object Oriented Programming Method name: MODIFY_OUTPUT_FILE
SAP Query
Userexits/BADIs In respective Implementation give the name of DMEE tree in attributes and in Interface give
WebDynpro for Java/ABAPTM IF_EX_DMEE_BADI_01.
Others
Now Logic can be put as follows:

What's New? CLASS cl_abap_char_utilities DEFINITION LOAD.


CONSTANTS: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal tab.
ABAP Test Cockpit HOT IF flt_val = ' Give the name of DMEE tree created' (This is to put filter only one specific DMEE tree)
SAP ABAP Pragmas
Understanding SE32 (ABAP LOOP AT c_output_tab INTO l_wa_tab.
Text Element Maintenance)
Creating an IDoc File on SAP l_v_ind = sy-tabix.
Application Server
Understanding “Advance with In case multiple docs posted for same vendor or customer then only one record is generated by the DMEE
dialog” option of SAP Workflow
SAP Workflow Scenario:
tree summing all the amounts but Badi is called forever line resulting in increasing length every time, to avoid
Maintenance Notification it the line length and imported length found in c_output_tab(if already modified) can be compared
Approval
Enhancements to a standard So to make it run only once for all the items.
class l_v_len1 = STRLEN (l_wa_tab-line).
Working with Floating Field in
Adobe Forms
IF l_v_len1 = l_wa_tab-length.
Inserting data from Internal
Table into the step “Send Mail”
Display GL Account long text
using enhancement framework SPLIT l_wa_tab-line AT c_tab INTO l_v_tc
Differences between l_v_no
polymorphism in JAVA and
ABAP
l_v_acc_no
Passing multiline parameters l_v_acc_num
from an ABAP Class event to a l_v_name
Workflow container
l_v_bank
Concept of Re-evaluate agents
for active work items in SAP l_v_exch
Workflow l_v_purpose
Dynamic creation of component
usage in ABAP WebDynpro
l_v_remark
Adobe Forms: Display symbols l_v_amt
like copyright and others l_v_doc.
Deactivate Hold functionality in IF sy-subrc = 0.
Purchase order (ME21N)
Quiz on OOABAP
l_v_len = STRLEN (l_v_name) + STRLEN (l_v_bank) + STRLEN (l_v_purpose).
Add fields in FBL5N using
BADIs
l_wa_tab-length = l_wa_tab-length + l_v_len.
Tutorial on Wide casting
Defining a Range in Module
Pool Program
MODIFY c_output_tab FROM l_wa_tab INDEX l_v_ind TRANSPORTING length.
Copy fields from one ENDIF.
structure/table into another
structure/table ENDIF.
Side Panel Usage in NWBC ENDLOOP.
ENDIF.
Contribute? ENDMETHOD.

This is how such issues can be countered successfully.


Sample Specs
3. How to Debug:

What's Hot? To debug DMEE, program can be very handy SAPFPAYM (Tcode FBPM).

Below is the screen, here you need to give the inputs as shown below...
Web Dynpro for ABAP Tutorials

Join the Mailing List

Enter name and email address below:


Name:

Email:

saptechnical.com/Tutorials/Others/DMEE/Page2.htm 1/2
11/25/2019 Resolving the truncation of multi-byte characters in DMEE File
Subscribe Unsubscribe
GO

After this you can debug the DMEE program.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM


Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us
©2006-2007 SAPTechnical.COM. All rights reserved.
All product names are trademarks of their respective companies. SAPTechnical.COM is in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver, and and any other SAP trademarks are registered trademarks of SAP AG in Germany and in several other countries.
Every effort is made to ensure content integrity. Use information on this site at your own risk.

Graphic Design by Round the Bend Wizards

saptechnical.com/Tutorials/Others/DMEE/Page2.htm 2/2

S-ar putea să vă placă și