CL_DOCUMENT_BCS
Definition
Class that has implemented the interface IF_DOCUMENT_BCS.
Use
You can use methods of this class to create an object as a BCS document. First an instance is created and a reference to this instance is passed to BCS. You can also append attachments to the object.
The document can be stored outside BCS, meaning that it is already persistent, or it can be made persistent by BCS.
Structure
You can use the following methods to create a BCS document. A reference to an instance of the class CL_DOCUMENT_BCS is returned with each one.
CREATE_FROM_TEXT
|
Import parameter |
Description |
|
I_TEXT |
Content of the document as text, which is passed in a table with lines of length 255. |
|
I_DOCUMENTTYPE (optional) |
Document class, with PC documents the file extension (see table TSOTD). The default value is 'RAW'. |
|
I_SUBJECT (optional) |
Title of the document (maximum length 50). The default value is SPACE. |
|
I_IMPORTANCE (optional) |
Document attribute 'Priority' (possible values: 1 - high priority, 5 - medium priority, 9 low priority). The default value is '5'. |
|
I_SENSITIVITY (optional) |
Document attribute 'Confidentiality' (possible values: P - confidential, F - functional, O - standard). |
CREATE_DOCUMENT
|
Import parameter |
Description |
|
I_TYPE |
Document class (see table TSOTD). |
|
I_SUBJECT |
Title of the document (maximum length 50). |
|
I_LENGTH (optional) |
Size of the document in bytes. |
|
I_LANGUAGE (optional) |
Key of the language that is to be assigned to the document (default is SPACE). |
|
I_IMPORTANCE (optional) |
Document attribute 'Priority' (possible values: 1 - high priority, 5 - medium priority, 9 low priority). The default value is '5'. |
|
I_SENSITIVITY (optional) |
Document attribute 'Confidentiality' (possible values: P - confidential, F - functional, O - standard). |
|
I_TEXT (optional) |
Content of the document as text, which is passed in a table with lines of length 255. |
|
I_HEX (optional) |
Content of the document in binary form, which is passed in a table with lines of length 255. |
|
I_SENDER (optional) |
Reference to an address in Business Address Services (that is, to an instance of the class CL_CAM_ADDRESS_BCS). |
ADD_ATTACHMENT
|
Import parameter |
Description |
|
I_ATTACHMENT_TYPE |
Document class, with PC documents the file extension (see table TSOTD). |
|
I_ATTACHMENT_SUBJECT |
Title of the document (maximum length 50). |
|
I_ATTACHMENT_SIZE (optional) |
Size of the document in bytes. |
|
I_LANGUAGE (optional) |
Key of the language that is to be assigned to the document (default is SPACE). |
|
I_ATTACHMENT_TEXT (optional) |
Content of the document as text, which is passed in a table with lines of length 255. |
|
I_ATTACHMENT_HEX (optional) |
Content of the document in binary form, which is passed in a table with lines of length 255. |
CREATE_FROM_MULTIRELATED
This method enables you to create BCS documents for the MIME type Multipart/Related. (See RFC 2557 for example of HTML with GIF.) The application must create an instance of the helper class CL_GBT_MULTIRELATED _SERVICE and pass this to the class CL_DOCUMENT_BCS.
|
Import parameter |
Description |
|
I_SUBJECT |
Title of the document (maximum length 50). |
|
I_LANGUAGE (optional) |
Key of the language that is to be assigned to the document (default is SPACE). |
|
I_IMPORTANCE (optional) |
Document attribute 'Priority' (possible values: 1 - high priority, 5 - medium priority, 9 low priority). The default value is '5'. |
|
I_SENSITIVITY (optional) |
Document attribute 'Confidentiality' (possible values: P - confidential, F - functional, O - standard). |
|
I_MULTIREL_SERVICE |
Helper class for Multipart/Related in Business Workplace. |