SAP Reports / Programs

RSWNSENDMAIL1 SAP ABAP Report - Test the Sending of E-Mails







RSWNSENDMAIL1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RSWNSENDMAIL1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSWNSENDMAIL1. "Basic submit
SUBMIT RSWNSENDMAIL1 AND RETURN. "Return to original report after report execution complete
SUBMIT RSWNSENDMAIL1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_ADDR = E-Mail Address
Selection Text: P_BODY = Content of E-Mail
Selection Text: P_SUBJ = Subject of E-Mail
Selection Text: P_USER = User ID for System Logon
Title: Test the Sending of E-Mails
Text Symbol: T01 = E-mail sent
Text Symbol: T02 = ID of SAPoffice Document:
Text Symbol: T03 = Error when sending e-mail:
Text Symbol: T04 = Workflow Inbox
Text Symbol: T05 = Function module report: E-mail not sent to all recipients


INCLUDES used within this REPORT RSWNSENDMAIL1

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SO_NEW_DOCUMENT_ATT_SEND_API1 CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING document_data = ps_document_data commit_work = 'X' IMPORTING sent_to_all = p_sent_to_all new_object_id = p_new_object_id TABLES packing_list = pt_packing_list object_header = pt_header contents_txt = pt_content receivers = pt_receiver EXCEPTIONS too_many_receivers = 1 document_not_sent = 2 document_type_not_exist = 3 operation_no_authorization = 4 parameter_error = 5 x_error = 6 enqueue_error = 7 OTHERS = 8.

SWN_CREATE_SHORTCUT CALL FUNCTION 'SWN_CREATE_SHORTCUT' EXPORTING i_transaction = 'SO01' "#EC NOTEXT i_saplogon_id = l_logon_id i_sysid = sy-sysid i_user = l_user i_language = p_langu i_windowsize = 'Normal window' "#EC NOTEXT i_custom = l_scrap IMPORTING shortcut_table = pt_attach EXCEPTIONS inconsistent_parameters = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSWNSENDMAIL1 or its description.