Quantcast
Channel: SCN : Blog List - Customer Relationship Management (SAP CRM)
Viewing all articles
Browse latest Browse all 229

Technical details for attachment attributes

$
0
0

For a complete list of all my blogs regarding content management, please seehere.

When you create attachments for your business objects via cl_crm_documents=>create_with_table, you have to pass in an internal table for attachment property.
The namelist of attribute name could be got from attachment class via function module SDOK_PHIO_ATTRIBUTES_GET.

For example, attachment class CRM_P_DOC has 36 attributes.

 

http://farm8.staticflickr.com/7344/11187276154_5d528154be_o.png

The attributes could also be viewed in tcode DMWB

http://farm6.staticflickr.com/5547/11187275956_629a1f769f_o.png

The actual attribute value could be got via function module CRM_KW_PROPERTIES_GET:

http://farm8.staticflickr.com/7352/11187275846_c599721d2f_o.png

 

http://farm4.staticflickr.com/3700/11187275766_5006345943_o.png

 

The importing parameters are guid of logical/physical object instances:

http://farm8.staticflickr.com/7421/11187275844_b9e3bede8a_o.png

The attribute values are stored in PROPERTIES internal table.

http://farm4.staticflickr.com/3758/11187385233_729f26c7a5_o.png

 

Do you know why in the backend table, the property is stored in field PROP09?

http://farm4.staticflickr.com/3692/11187385283_ca182ecdc7_o.png

actually it is because I hard code the content of relative url as the attachment file name.

    ls_prop-name = 'KW_RELATIVE_URL'.

    ls_prop-value = iv_file_name.

    APPEND ls_prop TO lt_prop.

http://farm8.staticflickr.com/7325/11187229605_07b858c6df_o.png

 

The index of attribute could also be found in tcode DMWB.

http://farm3.staticflickr.com/2825/11187229635_9e2010bdd2_o.png


Viewing all articles
Browse latest Browse all 229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>