INSERT_SHARED_DOCUMENT SAP Method Insert document to be shared









Below is documentation, parameters and attributes of ABAP Method INSERT_SHARED_DOCUMENT within SAP class CL_ABAP_ONLINE_COMMUNITY_UTIL. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_ONLINE_COMMUNITY_UTIL into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method INSERT_SHARED_DOCUMENT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method INSERT_SHARED_DOCUMENT

.

NameTypeData TypeDescriptionDefault Value
I_CHANNEL_EXTENSION_IDImportingTYPE
AMC_CHANNEL_EXTENSION_ID
Extension to the Channel Ids
I_DOCUMENTImportingTYPE
XSTRING
I_MIME_TYPEImportingTYPE
ABAP_ONLINE_COM_MIME_TYPE
ABAP Online Community: Mime type
E_DOCUMENT_IDReturningTYPE
SYSUUID_C32
16 Byte UUID in 32 Characters (Hexadecimal Encoded)



Exceptions of Method INSERT_SHARED_DOCUMENT

This method does not have any exceptions

Example ABAP coding


DATA: lv_E_DOCUMENT_ID TYPE SYSUUID_C32,
lv_I_CHANNEL_EXTENSION_ID TYPE AMC_CHANNEL_EXTENSION_ID,
lv_I_DOCUMENT TYPE XSTRING,
lv_I_MIME_TYPE TYPE ABAP_ONLINE_COM_MIME_TYPE,
lv_other TYPE c.

CALL METHOD CL_ABAP_ONLINE_COMMUNITY_UTIL=>INSERT_SHARED_DOCUMENT(
EXPORTING
I_CHANNEL_EXTENSION_ID = lv_I_CHANNEL_EXTENSION_ID
I_DOCUMENT = lv_I_DOCUMENT
I_MIME_TYPE = lv_I_MIME_TYPE
RECEIVING
E_DOCUMENT_ID = lv_E_DOCUMENT_ID )



"Alternate coding for Method Call with returning parameter
lv_E_DOCUMENT_ID = CL_ABAP_ONLINE_COMMUNITY_UTIL=>INSERT_SHARED_DOCUMENT(
EXPORTING
I_CHANNEL_EXTENSION_ID = lv_I_CHANNEL_EXTENSION_ID
I_DOCUMENT = lv_I_DOCUMENT
I_MIME_TYPE = lv_I_MIME_TYPE ).

Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!