- 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.
Those attributes could be found tcode DMWB:
The header attribute for product is stored in table BDSPHIO22
the table attribute for product is stored in table BDSPHPR22.