SCMAMAIL 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 SCMAMAIL 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: CONTENT1 = Line 1 of Mail
Selection Text: CONTENT2 = Line 2 of Mail
Selection Text: CONTENT3 = Line 3 of Mail
Selection Text: CONTENT4 = Line 4 of Mail
Selection Text: CONTENT5 = Line 5 of Mail
Selection Text: HEADER = Title of Mail
Title: Schedule Manager: Send Information Mail
Text Symbol: 001 = Define Mail Recipient
Text Symbol: 002 = SAP User Name
Text Symbol: 003 = Distribution List
Text Symbol: 004 = Internet Address
Text Symbol: 00M = Define Text and Contents of the Mail
INCLUDE RKASMAWF.
No SAP DATABASE tables are accessed within this REPORT code!
SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict EXCEPTIONS others = 1.
KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = LS_DETAIL LS_WITEM = LS_WITEM IMPORTING LS_KEY = GS_KEY.
SO_NEW_DOCUMENT_SEND_API1 CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1' EXPORTING DOCUMENT_TYPE = 'RAW' DOCUMENT_DATA = DOC_CHNG * PUT_IN_OUTBOX = 'X' TABLES OBJECT_CONTENT = OBJCONT RECEIVERS = RECLIST EXCEPTIONS TOO_MANY_RECEIVERS = 1 DOCUMENT_NOT_SENT = 2 OPERATION_NO_AUTHORIZATION = 4 OTHERS = 99.
KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING LS_KEY = GS_KEY LS_SCMA_EVENT = LS_SCMA_EVENT CHANGING LD_APLSTAT = LD_APLSTAT EXCEPTIONS NO_ID_GIVEN = 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.
SCMAMAIL - Schedule Manager: Send Information Mail SCMAMAIL - Schedule Manager: Send Information Mail SCMAINIT - SchedMan: Initialize SchedMan as First Step of a Job Chain SCMAINIT - SchedMan: Initialize SchedMan as First Step of a Job Chain SCMACLOSE - SchedMan: Close SchedMan as Last Step of a Job Chain SCMACLOSE - SchedMan: Close SchedMan as Last Step of a Job Chain