【发布时间】:2019-04-09 08:36:47
【问题描述】:
对于内部使用,我需要定义一个结构化类型,其中一个字段是具有可变长度的字符字段。
类似这样的东西(我希望这个例子能澄清我的问题):
DATA: lv_type TYPE char7.
lv_type = 'char128'. "The actual length will be determined during execution of the program
TYPES: BEGIN OF ty_satzcounter,
satza TYPE zedist,
addit TYPE (lv_type), "<----- Something like this (obviously, it doesn't work like
" this, but I think it clarifies my question)
menge TYPE int1,
END OF ty_satzcounter.
DATA: lt_satzcounter TYPE TABLE OF ty_satzcounter,
ls_satzcounter TYPE ty_satzcounter.
...
...
【问题讨论】:
-
7 年前我问过 :)