专栏首页Jerry的SAP技术分享SAP CRM系统里的附件存储逻辑
原创

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

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¤t_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.

原创声明,本文系作者授权云+社区发表,未经许可,不得转载。

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

我来说两句

0 条评论
登录 后参与评论

相关文章

  • SAP事务码MM02里的字段属性控制

    You can not save a material in MM02 without maintaining ANP code in QI3/504 beca...

    Jerry Wang
  • 如何将SAP CRM里维护的Account图片显示到Fiori应用中

    We have to launch CRM WebUI, upload a new attachment for given account:

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

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

    Jerry Wang
  • MQX中断系统深度解析(二)

    在此提醒大家,如果是基于KSDK开发的软件,跟单独基于MQX的在配置上有些不同,飞思卡尔对kinetis MCU的SDK从1.1.0以后,已经包含MQX RTO...

    用户1605515
  • 技术精进的三境界

    最近更新了一篇 Docker 的文章,朋友跟我反馈说效果并不是很好,我回头看了下,的确没有我自己的特色,没有太多思考,让公众号显得有些「百货」了。经过反思,今后...

    kirito-moe
  • python零基础网络爬虫:抓取4A级猎头公司数据

    所以我们可以使用python内置的模块去访问网址,这里可以用requests或者urllib,因为之前介绍过requests模块的使用,这里我们就不做过多阐述,...

    汤贤
  • 继承和多态

    这里继承和多态的概念与java的概念差不多。概念还是需要多次理解才能透彻。感觉类和实例的概念还是不能深刻理解。再次复习下吧。

    一点儿也不潇洒
  • 爬虫问题二:处理js异步加载问题

    在新闻网站中大多采用的是异步加载模式,新闻条目会随滚动条的滚动而逐渐加载。当爬虫访问这类网站时得到的HTML数据仅仅是我们看到的页面数据,只有当我们向下滚动时,...

    明天依旧可好
  • 微博爬虫综述、错误汇总、Q&A

    微博爬虫主要有两个导向,一个是微博内容的爬虫,其目的字段包括微博文本、发布者、转发/评论/点赞数等,另一个是微博评论的爬虫,其目的字段主要是评论文本和评论者。

    月小水长
  • 错误消息Form of address 0001 not designated for organization

    I have tried to download a customer from ERP to CRM via request download. After ...

    Jerry Wang

扫码关注云+社区

领取腾讯云代金券