使用ABAP向EXCEL单元格内写入回车符的方法

REPORT z_xam_test1.

INCLUDE z_excel_header.
DATA: g_str1(20) TYPE c VALUE ‘hello’,

g_str2 TYPE x VALUE ’0A’,

g_str3(20) TYPE c VALUE ‘world’,

g_str(50) TYPE c.

START-OF-SELECTION.

CONCATENATE g_str1 g_str2 g_str3

INTO g_str.

PERFORM open_blank_books.

PERFORM fill_cell

USING 1 1 g_str.

Comments are closed.