SAP Reports / Programs | Enhancements to scheduling agreements MM (Outbound) | Industry Solution Automotive | Enhancements to scheduling agreements MM (Outbound)(IS-A-EMM) SAP IS

MESCR_MAIL_SEND SAP ABAP Report - Sending an Internet mail







MESCR_MAIL_SEND 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 MESCR_MAIL_SEND 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 MESCR_MAIL_SEND. "Basic submit
SUBMIT MESCR_MAIL_SEND AND RETURN. "Return to original report after report execution complete
SUBMIT MESCR_MAIL_SEND VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Sending an Internet mail


INCLUDES used within this REPORT MESCR_MAIL_SEND

INCLUDE MESCR_MAIL_SENDTOP . "
INCLUDE MESCR_MAIL_SEND_F01.


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:

T001W_SINGLE_READ CALL FUNCTION 'T001W_SINGLE_READ' EXPORTING * KZRFB = ' ' t001w_werks = l_plant IMPORTING wt001w = gs_plant EXCEPTIONS not_found = 0 OTHERS = 0 .

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = sy-mandt ** ID = TXTID_BEWEG id = ls_header-tdid language = nast-spras name = ls_header-tdname object = ls_header-tdobject ** OBJECT = TDOBJECT IMPORTING header = ls_header TABLES lines = tlines EXCEPTIONS id = 01 language = 02 name = 03 not_found = 04 object = 05 reference_check = 06 wrong_access_to_archive = 07.

NAST_PROTOCOL_UPDATE CALL FUNCTION 'NAST_PROTOCOL_UPDATE' EXPORTING msg_arbgb = syst-msgid msg_nr = syst-msgno msg_ty = syst-msgty msg_v1 = syst-msgv1 msg_v2 = syst-msgv2 msg_v3 = syst-msgv3 msg_v4 = syst-msgv4 EXCEPTIONS OTHERS = 0.

TEXT_SYMBOL_REPLACE CALL FUNCTION 'TEXT_SYMBOL_REPLACE' EXPORTING endline = l_lines header = ls_header * INIT = ' ' * OPTION_DIALOG = ' ' program = l_repid * REPLACE_PROGRAM = 'X' * REPLACE_STANDARD = 'X' * REPLACE_SYSTEM = 'X' * REPLACE_TEXT = 'X' * STARTLINE = 1 * IMPORTING * CHANGED = * NEWHEADER = TABLES lines = tlines .

SO_OBJECT_SEND CALL FUNCTION 'SO_OBJECT_SEND' EXPORTING folder_id = x_folder_id forwarder = x_forwarder object_fl_change = x_object_fl_change object_hd_change = x_object_hd_change object_id = x_object_id object_type = x_object_type outbox_flag = x_outbox_flag owner = x_owner store_flag = x_store_flag IMPORTING object_id_new = x_object_id_new sent_to_all = x_sent_to_all TABLES objcont = x_objcont objhead = x_objhead objpara = x_objpara objparb = x_objparb receivers = x_receivers EXCEPTIONS active_user_not_exist = 1 component_not_available = 2 folder_no_authorization = 3 folder_not_exist = 4 forwarder_not_exist = 5 object_no_authorization = 6 object_not_exist = 7 object_not_sent = 8 object_type_not_exist = 9 operation_no_authorization = 10 owner_not_exist = 11 parameter_error = 12 substitute_not_active = 13 substitute_not_defined = 14 user_not_exist = 15.

SO_DEQUEUE_UPDATE_LOCKS CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS' EXCEPTIONS OTHERS = 0.

NAST_PROTOCOL_UPDATE CALL FUNCTION 'NAST_PROTOCOL_UPDATE' EXPORTING msg_arbgb = syst-msgid msg_nr = syst-msgno msg_ty = syst-msgty msg_v1 = syst-msgv1 msg_v2 = syst-msgv2 msg_v3 = syst-msgv3 msg_v4 = syst-msgv4 EXCEPTIONS OTHERS = 0.



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 MESCR_MAIL_SEND or its description.