ITPub博客

首页 > 应用开发 > IT综合 > SAP CRM系统里的附件存储逻辑

SAP CRM系统里的附件存储逻辑

原创 IT综合 作者:i042416 时间:2020-03-06 09:36:16 0 删除 编辑

My research about how attachment data is stored in cluster table:

System AG3/001, Product: ZJERRYTEST1124, upload one text attachment with 58 bytes.

Click the hyperlink "result1" in column Name, the file is opened in browser via the link below:

jerry.sap.corp:44356/sa FA163EEF573D1ED49DA44708EF3ABF63&compId=result1.txt

use transaction code SE16 to query database table with PHIO_ID =  FA163EEF573D1ED49DA44708EF3ABF63:

and two entries found:

execute FM SCMS_R3DB_IMPORT in test mode, specify CREP_ID = BDS_DB22 and DOC_ID =  FA163EEF573D1ED49DA44708EF3ABF63

binary content of uploaded attachment could be found in CONTENT_BIN:

the content returned by FM is actually exactly the same compared with the binary data of the local file:

How does this FM actually finish data retrieve task?

Just execute the following code in AG3:

DATA: phio_cluster TYPE scmst_r3db_cont_cluster.

IMPORT phio_cluster FROM DATABASE bdscont22(ir) CLIENT sy-mandt

ID 'FA163EEF573D1ED49DA44708EF3ABF63' IGNORING CONVERSION ERRORS.

BREAK-POINT.

The content will be stored in variable phio_cluster.

What does bdscont22(ir) mean?

Open table BDSCONT22 in SE11, the highlighted three fields are cluster fields:

Please refer to ABAP help for more detail about cluster table:

help.sap.com/saphelp_47

in our example, we could get the region ID IR which will be used in the test ABAP program.


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24475491/viewspace-2678764/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
测试

注册时间:2018-01-20

  • 博文量
    3822
  • 访问量
    1984016