SAP CRM Attachment 数据物理存放的逻辑

68 阅读1分钟

| # Created by Jerry Wang on Nov 26, 2014System AG3/001, Product: ZJERRYTEST1124, upload one text attachment with 58 bytes. clipboard1Click the hyperlink "result1" in column Name, the file is opened in browser via the link below: ldai2ag3.wdf.sap.corp:44356/sap/bc/cont… clipboard2 use transaction code SE16 to query database table with PHIO_ID = FA163EEF573D1ED49DA44708EF3ABF63: clipboard3 and two entries found: clipboard4 execute FM SCMS_R3DB_IMPORT in test mode, specify CREP_ID = BDS_DB22 and DOC_ID = FA163EEF573D1ED49DA44708EF3ABF63 clipboard5 binary content of uploaded attachment could be found in CONTENT_BIN: clipboard6the content returned by FM is actually exactly the same compared with the binary data of the local file: clipboard7 clipboard8# 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.

| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |