使用代码读取SAP CRM product的所有属性

53 阅读1分钟

Created by Jerry Wang, last modified on Jun 02, 2016

  • content
  • content management
  • attribute
    You can use the following code to retrieve attachment attributes:
DATA: lt_ios                TYPE skwf_ios,
           ios_properties_result TYPE crm_kw_propst.
DATA(ls_ios) = VALUE skwf_io( objtype = 'P' class = 'BDS_POC22' objid = '0090FA0D8DC21EE398905A1611087AC8' ).
APPEND ls_ios TO lt_ios.
CALL FUNCTION 'CRM_KW_PROPERTIES_GET'
  EXPORTING
    ios                   = lt_ios
  IMPORTING
    ios_properties_result = ios_properties_result.

for objid just pass the guid of attachment physical instance, not logical instance.
The returned attributes could be classified as two types: the header attribute and the table attribute.
clipboard1
clipboard2

Those attributes could be found tcode DMWB:
clipboard3
clipboard4

The header attribute for product is stored in table BDSPHIO22
clipboard5
the table attribute for product is stored in table BDSPHPR22.
clipboard6