前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM系统里的附件存储逻辑

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

作者头像
Jerry Wang
发布2020-03-02 14:51:21
4820
发布2020-03-02 14:51:21
举报

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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-02-26 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
数据库
云数据库为企业提供了完善的关系型数据库、非关系型数据库、分析型数据库和数据库生态工具。您可以通过产品选择和组合搭建,轻松实现高可靠、高可用性、高性能等数据库需求。云数据库服务也可大幅减少您的运维工作量,更专注于业务发展,让企业一站式享受数据上云及分布式架构的技术红利!
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档