SAP SGOSSUB_REC_FB_SEND_MAIL Function Module for
SGOSSUB_REC_FB_SEND_MAIL is a standard sgossub rec fb send mail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sgossub rec fb send mail FM, simply by entering the name SGOSSUB_REC_FB_SEND_MAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: SGOSSUB
Program Name: SAPLSGOSSUB
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SGOSSUB_REC_FB_SEND_MAIL 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 'SGOSSUB_REC_FB_SEND_MAIL'".
EXPORTING
EVENT = "Name of Event
RECTYPE = "Type of Event Receiver, Here: Task ID
OBJTYPE = "Type of triggering object
OBJKEY = "Key of Triggering Object
* EXCEPTIONS_ALLOWED = ' ' "Indicator Showing Whether FM Can Raise Exceptions
IMPORTING
REC_ID = "Key of Receiving Object
TABLES
EVENT_CONTAINER = "Event container
IMPORTING Parameters details for SGOSSUB_REC_FB_SEND_MAIL
EVENT - Name of Event
Data type: SWETYPECOU-EVENTOptional: No
Call by Reference: No ( called with pass by value option)
RECTYPE - Type of Event Receiver, Here: Task ID
Data type: SWETYPECOU-RECTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJTYPE - Type of triggering object
Data type: SWETYPECOU-OBJTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJKEY - Key of Triggering Object
Data type: SWEINSTCOU-OBJKEYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS_ALLOWED - Indicator Showing Whether FM Can Raise Exceptions
Data type: SWEFLAGS-EXC_OKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SGOSSUB_REC_FB_SEND_MAIL
REC_ID - Key of Receiving Object
Data type: SWELOG-RECIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SGOSSUB_REC_FB_SEND_MAIL
EVENT_CONTAINER - Event container
Data type: SWCONTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SGOSSUB_REC_FB_SEND_MAIL 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_event | TYPE SWETYPECOU-EVENT, " | |||
| lv_rec_id | TYPE SWELOG-RECID, " | |||
| lt_event_container | TYPE STANDARD TABLE OF SWCONT, " | |||
| lv_rectype | TYPE SWETYPECOU-RECTYPE, " | |||
| lv_objtype | TYPE SWETYPECOU-OBJTYPE, " | |||
| lv_objkey | TYPE SWEINSTCOU-OBJKEY, " | |||
| lv_exceptions_allowed | TYPE SWEFLAGS-EXC_OK. " SPACE |
|   CALL FUNCTION 'SGOSSUB_REC_FB_SEND_MAIL' " |
| EXPORTING | ||
| EVENT | = lv_event | |
| RECTYPE | = lv_rectype | |
| OBJTYPE | = lv_objtype | |
| OBJKEY | = lv_objkey | |
| EXCEPTIONS_ALLOWED | = lv_exceptions_allowed | |
| IMPORTING | ||
| REC_ID | = lv_rec_id | |
| TABLES | ||
| EVENT_CONTAINER | = lt_event_container | |
| . " SGOSSUB_REC_FB_SEND_MAIL | ||
ABAP code using 7.40 inline data declarations to call FM SGOSSUB_REC_FB_SEND_MAIL
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.| "SELECT single EVENT FROM SWETYPECOU INTO @DATA(ld_event). | ||||
| "SELECT single RECID FROM SWELOG INTO @DATA(ld_rec_id). | ||||
| "SELECT single RECTYPE FROM SWETYPECOU INTO @DATA(ld_rectype). | ||||
| "SELECT single OBJTYPE FROM SWETYPECOU INTO @DATA(ld_objtype). | ||||
| "SELECT single OBJKEY FROM SWEINSTCOU INTO @DATA(ld_objkey). | ||||
| "SELECT single EXC_OK FROM SWEFLAGS INTO @DATA(ld_exceptions_allowed). | ||||
| DATA(ld_exceptions_allowed) | = ' '. | |||
Search for further information about these or an SAP related objects