SAP BBP_IMS_ATTACH_SAVE Function Module for Attachment in KW speichern
BBP_IMS_ATTACH_SAVE is a standard bbp ims attach save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Attachment in KW speichern processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bbp ims attach save FM, simply by entering the name BBP_IMS_ATTACH_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_IV_IMS
Program Name: SAPLBBP_IV_IMS
Main Program: SAPLBBP_IV_IMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_IMS_ATTACH_SAVE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BBP_IMS_ATTACH_SAVE'"Attachment in KW speichern.
EXPORTING
IS_EXCEPTION = "Globally Unique Identifier
IT_ATTACH = "
* IV_MAIL_SENT = "Feld zum Ankreuzen
* IV_MAIL_RECEIV = "Feld zum Ankreuzen
IV_LOG_GUID = "Globally Unique Identifier
IMPORTING
EV_LOIO_OBJID = "ID für Dokumente und Beziehungen
EV_LOIO_OBJCLASS = "Dokumentenklasse
EV_CATEG = "Kategorie Attachment
IMPORTING Parameters details for BBP_IMS_ATTACH_SAVE
IS_EXCEPTION - Globally Unique Identifier
Data type: BBPS_EVENTOptional: No
Call by Reference: No ( called with pass by value option)
IT_ATTACH -
Data type: BBPT_ATTACHMENT_BCSOptional: No
Call by Reference: No ( called with pass by value option)
IV_MAIL_SENT - Feld zum Ankreuzen
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_MAIL_RECEIV - Feld zum Ankreuzen
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOG_GUID - Globally Unique Identifier
Data type: BBP_GUIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BBP_IMS_ATTACH_SAVE
EV_LOIO_OBJID - ID für Dokumente und Beziehungen
Data type: SDOK_DOCIDOptional: No
Call by Reference: No ( called with pass by value option)
EV_LOIO_OBJCLASS - Dokumentenklasse
Data type: SDOK_CLASSOptional: No
Call by Reference: No ( called with pass by value option)
EV_CATEG - Kategorie Attachment
Data type: BBP_ATT_CATEGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_IMS_ATTACH_SAVE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_is_exception | TYPE BBPS_EVENT, " | |||
| lv_ev_loio_objid | TYPE SDOK_DOCID, " | |||
| lv_it_attach | TYPE BBPT_ATTACHMENT_BCS, " | |||
| lv_ev_loio_objclass | TYPE SDOK_CLASS, " | |||
| lv_ev_categ | TYPE BBP_ATT_CATEG, " | |||
| lv_iv_mail_sent | TYPE XFELD, " | |||
| lv_iv_mail_receiv | TYPE XFELD, " | |||
| lv_iv_log_guid | TYPE BBP_GUID. " |
|   CALL FUNCTION 'BBP_IMS_ATTACH_SAVE' "Attachment in KW speichern |
| EXPORTING | ||
| IS_EXCEPTION | = lv_is_exception | |
| IT_ATTACH | = lv_it_attach | |
| IV_MAIL_SENT | = lv_iv_mail_sent | |
| IV_MAIL_RECEIV | = lv_iv_mail_receiv | |
| IV_LOG_GUID | = lv_iv_log_guid | |
| IMPORTING | ||
| EV_LOIO_OBJID | = lv_ev_loio_objid | |
| EV_LOIO_OBJCLASS | = lv_ev_loio_objclass | |
| EV_CATEG | = lv_ev_categ | |
| . " BBP_IMS_ATTACH_SAVE | ||
ABAP code using 7.40 inline data declarations to call FM BBP_IMS_ATTACH_SAVE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects