ABAP WebAS 活动代码页

发布于 2024-08-24 04:57:55 字数 594 浏览 7 评论 0原文

我需要连接字符串中的不同行。

为此,我需要使用 CR + LF 十六进制字符。

问题是,当我使用 8 位/字符环境时,我只需要执行以下操作:

constants : c_lf type x value '10'.

constants : c_cr type x value '13'.

data : g_html type string.

concatenate '<html>' c_cr c_lf into g_html.

但是,当我在 16 位/字符环境中时,X 变量不代表正确的十六进制表示形式对于 CR 和 LF。

所以,我应该使用这样的东西:

constants : c_lf(2) type x value '0010'.

constants : c_cr(2) type x value '0013'.

data : g_html type string.

concatenate '<html>' c_cr c_lf into g_html.

那么,有什么方法可以找出 ABAP WebAS 使用的字节/字符量?

谢谢!

I need to concatenate different lines in a string.

To do so, I need to use CR + LF hexadecimal characters.

The problem is that, when I'm using an 8 bit/char environment, I just need to do something like this:

constants : c_lf type x value '10'.

constants : c_cr type x value '13'.

data : g_html type string.

concatenate '<html>' c_cr c_lf into g_html.

but, when I'm in a 16 bit/char environment, the X variable does not represent the correct hexadecimal representation for CR and LF.

So, I should use something like this:

constants : c_lf(2) type x value '0010'.

constants : c_cr(2) type x value '0013'.

data : g_html type string.

concatenate '<html>' c_cr c_lf into g_html.

So, there is any way to find out the amount of bytes/char in use by ABAP WebAS?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

携余温的黄昏 2024-08-31 04:57:55

函数 TR_GET_IS_UNICODE_SYSTEM 指示系统是否使用 unicode。
它调用 CL_ABAP_CHAR_UTILITIES 类来获取 CHARSIZE 属性 (bite/char)(顺便说一句,该类包含 CR_LF 公共属性...)

问候
纪尧姆

The function TR_GET_IS_UNICODE_SYSTEM indicate if the system is using unicode or not.
It calls the CL_ABAP_CHAR_UTILITIES class to get the CHARSIZE attribute (bite/char) (by the way, this class contains a CR_LF public attribute...)

Regards
Guillaume

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文