我正在尝试获取附加到邮件的文件的内存表示。
我有邮件的 ID、附件的 ID(我从 SOOD 表中计算出来)和事务 SOST。
DATA: gs_doc TYPE soodk,
gs_attachment TYPE soodk,
objcont TYPE soli OCCURS 0,
objhead TYPE soli OCCURS 0.
gs_doc-objtp = 'RAW'.
gs_doc-objyr = '38'.
gs_doc-objno = '000000000465'.
gs_attachment-objtp = 'EXT'.
gs_attachment-objyr = '38'.
gs_attachment-objno = '000000000282'..
* i_oid = 'E2ED5468C94941F198A300155D005612'
CALL FUNCTION 'SO_ATTACHMENT_READ'
EXPORTING
* FILTER =
object_id = gs_doc
attach_id = gs_attachment
* OWNER =
* FORWARDER =
* IMPORTING
* OBJECT_HD_DISPLAY =
* OBJECT_RC_DISPLAY =
* OBJECT_FL_DISPLAY =
TABLES
objcont = objcont
objhead = objhead
EXCEPTIONS
active_user_not_exist = 1
object_not_exist = 2
operation_no_authorization = 3
owner_not_exist = 4
parameter_error = 5
substitute_not_active = 6
substitute_not_defined = 7
x_error = 8
communication_failure = 9
system_failure = 10
OTHERS = 11.
这是我写的代码。它返回表格objcont
和objhead
其他内容,但我不知道如何处理该输出,因为它看起来像这样:
&SO_KProObjectID=SOFFLOIO E2ED5468C94941F198A300155D005612
和
&SO_FORMAT=BIN
分别。
我试图对Where used
Function 模块进行查询,看看它是如何使用的,但我还没有明白。
那么有谁知道如何将附件作为内存文件获取?