2
07.07.2013 Page 1 of 2 SAP Note 1679264 - DMEE: Special character required in file Note Language: English Version: 2 Validity: Valid Since 16.02.2012 Summary Symptom The payment format requires a special character in the file, which cannot be entered as a constant in transaction DMEE in the tree. Other terms U+0C00 Reason and Prerequisites Solution Implement the node in the tree as a DMEE exit function module. The character is specified in the exit as a hexadecimal, and converted to the character type. Example implementation for form feed U+000C hex '000C' in 4102, Unicode is activated: DATA: l_target(1) TYPE c, l_hex(2) TYPE x. field-symbols <xptr> type x. statics sd_codepage type cpcodepage. if sd_codepage is initial. CALL FUNCTION 'SCP_GET_CODEPAGE_NUMBER' EXPORTING DATABASE_ALSO = ' ' IMPORTING APPL_CODEPAGE = sd_codepage EXCEPTIONS others = 1. endif. if sd_codepage = '4103'. l_hex = '0C00'. elseif sd_codepage = '4102'. l_hex = '000C'. else. l_hex = '0C'. endif. assign l_target to <xptr> casting. <xptr> = l_hex. c_value = l_target. Note the following: The entry in l_hex must correspond to the current system code page. Note the different byte sequence in 4102 und 4103. The system code page can be determined with SCP_GET_CODEPAGE_NUMBER (APPL_CODEPAGE).

sapnote_0001679264

  • Upload
    bratx8

  • View
    8

  • Download
    0

Embed Size (px)

DESCRIPTION

SAP Note 1672343

Citation preview

Page 1: sapnote_0001679264

07.07.2013 Page 1 of 2

SAP Note 1679264 - DMEE: Special character required infile

Note Language: English Version: 2 Validity: Valid Since 16.02.2012

Summary

SymptomThe payment format requires a special character in the file, which cannotbe entered as a constant in transaction DMEE in the tree.

Other termsU+0C00

Reason and Prerequisites

SolutionImplement the node in the tree as a DMEE exit function module.

The character is specified in the exit as a hexadecimal, and converted tothe character type.

Example implementation for form feed U+000C hex '000C' in 4102, Unicode isactivated:

DATA: l_target(1) TYPE c, l_hex(2) TYPE x. field-symbols <xptr> type x.

statics sd_codepage type cpcodepage.

if sd_codepage is initial.

CALL FUNCTION 'SCP_GET_CODEPAGE_NUMBER' EXPORTING DATABASE_ALSO = ' ' IMPORTING APPL_CODEPAGE = sd_codepage EXCEPTIONS others = 1. endif.

if sd_codepage = '4103'. l_hex = '0C00'. elseif sd_codepage = '4102'. l_hex = '000C'. else. l_hex = '0C'. endif. assign l_target to <xptr> casting. <xptr> = l_hex. c_value = l_target.

Note the following: The entry in l_hex must correspond to the currentsystem code page. Note the different byte sequence in 4102 und 4103. Thesystem code page can be determined with SCP_GET_CODEPAGE_NUMBER(APPL_CODEPAGE).

Page 2: sapnote_0001679264

07.07.2013 Page 2 of 2

SAP Note 1679264 - DMEE: Special character required infile

Header Data

Release Status: Released for CustomerReleased on: 16.02.2012 09:56:39Master Language: GermanPriority: Recommendations/additional infoCategory: ConsultingPrimary Component: FI-BL-PT-FO payment forms

Valid Releases

Software Component Release FromRelease

ToRelease

andSubsequent

SAP_APPL 46C 46C 46C

SAP_APPL 470 470 470

SAP_APPL 500 500 500

SAP_APPL 600 600 600

SAP_APPL 602 602 602

SAP_APPL 603 603 603

SAP_APPL 604 604 604

SAP_APPL 605 605 605

SAP_APPL 606 606 606 X