Language ZH does not define any language-specific units for the internal unit D

When writing an ABAP program, calling a function function or calling a BDC will require input units. When we call the function after inputting the unit normally, an error will be reported.
Prompt: No language-specific unit is defined for the language ZH of the internal unit**. But when we checked the two background tables of tables T006 and T006A,
we found that the units existed in both tables, but such problems still occurred. The background configuration point Tcode:CUNI also checks that there is no problem.

In fact, this problem is the problem of unit conversion. When the system recognizes the unit, it passes the converted unit into the function,
so we need to call the function to convert the unit.

English unit to Chinese unit

CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT'
EXPORTING
input = "English unit of input
IMPORTING
output = "Chinese unit of output

    附测试页面:

insert image description here
Chinese unit to English unit
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
EXPORTING
input = "input Chinese unit
IMPORTING
output = "output English unit

Attached test page:
insert image description here

Guess you like

Origin blog.csdn.net/u014469625/article/details/130701528