How to obtain the Chinese character string length

Now SAP systems are basically only supports unicode, only the earlier version of SAP (ERP before 6.0 SR2) supports Unicode and non-Unicode character set (also known as Nonunicode). After ERP 6.0 SR3 only support Unicode character sets.

Unicode character set used by the SAP system accounted for 12 bytes; Unicode is not accounted for 9 bytes. Two characters differ materially for string processing program. In any case, the method DYNAMIC_OUTPUT_LENGTH use in class DYNAMIC_OUTPUT_LENGTH able to get the correct length (in English or Chinese characters).

Check if the SAP system is unicdoe: menu -system-status

Test code:

run:

the above.

Guess you like

Origin www.cnblogs.com/lvdong18847870057/p/12553224.html