码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-02-27 13:17:02      阅读:75      评论:0      收藏:0      [点我收藏+]

标签:compare   click   oca   rod   roc   ram   node   ini   cti   

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:

https://jerry.sap.corp:44356/sap/bc/contentserver/001?get&pVersion=0045&contRep=BDS_DB22&docId=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:

http://help.sap.com/saphelp_470/helpdata/en/fc/eb3c12358411d1829f0000e829fbfe/content.htm?frameset=/en/fc/eb3c05358411d1829f0000e829fbfe/frameset.htm&current_toc=/en/d3/2e974d35c511d1829f0000e829fbfe/plain.htm&node_id=158

技术图片

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

技术图片

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
技术图片

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

标签:compare   click   oca   rod   roc   ram   node   ini   cti   

原文地址:https://www.cnblogs.com/sap-jerry/p/12371430.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!