ATTACH_MEDIA_FILE SAP Method Attaches photos to safety observation Attachment folder









Below is documentation, parameters and attributes of ABAP Method ATTACH_MEDIA_FILE within SAP class /EHSMM01/CL_INC_BO_HELPER. 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 /EHSMM01/CL_INC_BO_HELPER 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 ATTACH_MEDIA_FILE can also be found below:

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


Parameters of Method ATTACH_MEDIA_FILE

.

NameTypeData TypeDescriptionDefault Value
IO_ROOT_NODEImportingTYPE REF TO
CL_EHFND_ENA_NODE
IO_SERVICE_MANAGERImportingTYPE REF TO
CL_EHFND_ENA_SERVICE_MNGR
IV_FILE_MIMEImportingTYPE
W3CONTTYPE
HTML content type
IV_MEDIA_FILEImportingTYPE
STRING
IV_MEDIA_FILE_NAMEImportingTYPE
SDOK_FILNM
Relative storage location of physical document
IV_SO_KEYImportingTYPE
/BOBF/CONF_KEY
NodeID
CT_MESSAGESChangingTYPE
EHFNDT_FW_MSG
Table for Messages



Exceptions of Method ATTACH_MEDIA_FILE

This method does not have any exceptions

Example ABAP coding


DATA: lv_CT_MESSAGES TYPE EHFNDT_FW_MSG,
lv_IO_ROOT_NODE TYPE CL_EHFND_ENA_NODE,
lv_IO_SERVICE_MANAGER TYPE CL_EHFND_ENA_SERVICE_MNGR,
lv_IV_FILE_MIME TYPE W3CONTTYPE,
lv_IV_MEDIA_FILE TYPE STRING,
lv_IV_MEDIA_FILE_NAME TYPE SDOK_FILNM,
lv_IV_SO_KEY TYPE /BOBF/CONF_KEY,
lv_other TYPE c.

CALL METHOD /EHSMM01/CL_INC_BO_HELPER=>ATTACH_MEDIA_FILE(
EXPORTING
IO_ROOT_NODE = lv_IO_ROOT_NODE
IO_SERVICE_MANAGER = lv_IO_SERVICE_MANAGER
IV_FILE_MIME = lv_IV_FILE_MIME
IV_MEDIA_FILE = lv_IV_MEDIA_FILE
IV_MEDIA_FILE_NAME = lv_IV_MEDIA_FILE_NAME
IV_SO_KEY = lv_IV_SO_KEY
CHANGING
CT_MESSAGES = lv_CT_MESSAGES ).

Links to Related Class(s)

/EHSMM01...
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!