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
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.
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
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.