SAP Reports / Programs | Cross-Application Components | IDoc Interfaces for EDI(CA-EDI) SAP CA

RSE21INM SAP ABAP Report - Program for object type IDOC21INMM: idoc_21_invoic_mm







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


Text pool values


Title: Program for object type IDOC21INMM: idoc_21_invoic_mm


INCLUDES used within this REPORT RSE21INM

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:

MM_WF_INVOIC_INV_ID01 CALL FUNCTION 'MM_WF_INVOIC_INV_ID01' EXPORTING PARAMETER = PARAM PROCESS_DATA = DATEN PROCESS_ID = IDENT IMPORTING RETURN_CODE = WFRESULT TABLES ASSIGNMENTS = ASSIGN LOGLINES = LOGINFO EXCEPTIONS WF_ERROR_PROCESS = 01 WF_NOTHING_DONE = 02.

EDI_DOCUMENT_OPEN_FOR_PROCESS CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_PROCESS' EXPORTING DB_READ_OPTION = 'N' DOCUMENT_NUMBER = UNPROCESSED_IDOCS EXCEPTIONS OTHERS = 5.

EDI_DOCUMENT_STATUS_SET CALL FUNCTION 'EDI_DOCUMENT_STATUS_SET' EXPORTING DOCUMENT_NUMBER = UNPROCESSED_IDOCS IDOC_STATUS = INT_EDIDS EXCEPTIONS OTHERS = 4.

EDI_DOCUMENT_CLOSE_PROCESS CALL FUNCTION 'EDI_DOCUMENT_CLOSE_PROCESS' EXPORTING DOCUMENT_NUMBER = UNPROCESSED_IDOCS EXCEPTIONS OTHERS = 5.

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = 'IDOC21INMM' OBJKEY = EVENT_KEY EVENT = EVENTTYP IMPORTING EVENT_ID = EVENT_ID TABLES EVENT_CONTAINER = EVENT_CONTAINER EXCEPTIONS OBJTYPE_NOT_FOUND = 01.

SWW_CI_CREATE CALL FUNCTION 'SWW_CI_CREATE' EXPORTING CREATOR = 'RSE21INM' DO_COMMIT = ' ' " space! because of update task IMPORTING WI_ID = WI_ID TABLES WI_CONTAINER = WI_CONTAINER EXCEPTIONS ID_NOT_CREATED = 01.

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = 'IDOC21INMM' OBJKEY = EVENT_KEY EVENT = EVENTTYP * creator = 'TS00008201' " gerstner, 950830 IMPORTING EVENT_ID = EVENT_ID TABLES EVENT_CONTAINER = EVENT_CONTAINER EXCEPTIONS OBJTYPE_NOT_FOUND = 01.

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING OBJTYPE = 'IDOC21INMM' OBJKEY = EVENT_KEY EVENT = EVENTTYP * creator = 'TS00008201' " gerstner, 950830 IMPORTING EVENT_ID = EVENT_ID TABLES EVENT_CONTAINER = EVENT_CONTAINER EXCEPTIONS OBJTYPE_NOT_FOUND = 01.

EDI_DOCUMENT_STATUS_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_STATUS_DISPLAY' EXPORTING DOCNUM = UNPROCESSED_IDOCS ACTIONS = ACTIONS IMPORTING ACTION = ACTION EXCEPTIONS NO_STATUS_RECORD_FOUND = 1 OTHERS = 2.

EDI_DOCUMENT_OPEN_FOR_PROCESS CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_PROCESS' EXPORTING DB_READ_OPTION = 'N' DOCUMENT_NUMBER = UNPROCESSED_IDOCS EXCEPTIONS DOCUMENT_FOREIGN_LOCK = 1 DOCUMENT_NOT_EXIST = 2 DOCUMENT_NUMBER_INVALID = 3 DOCUMENT_IS_ALREADY_OPEN = 4 OTHERS = 5.

EDI_DOCUMENT_STATUS_SET CALL FUNCTION 'EDI_DOCUMENT_STATUS_SET' EXPORTING DOCUMENT_NUMBER = UNPROCESSED_IDOCS IDOC_STATUS = INT_EDIDS EXCEPTIONS DOCUMENT_NUMBER_INVALID = 1 OTHER_FIELDS_INVALID = 2 STATUS_INVALID = 3 OTHERS = 4.

EDI_DOCUMENT_CLOSE_PROCESS CALL FUNCTION 'EDI_DOCUMENT_CLOSE_PROCESS' EXPORTING DOCUMENT_NUMBER = UNPROCESSED_IDOCS EXCEPTIONS DOCUMENT_NOT_OPEN = 1 FAILURE_IN_DB_WRITE = 2 PARAMETER_ERROR = 3 STATUS_SET_MISSING = 4 OTHERS = 5.

SWW_WI_START CALL FUNCTION 'SWW_WI_START' EXPORTING CALLBACK_FB = ' ' CREATOR = 'RSE21INM' TASK = 'TS00008201' WORKITEM_TYPE = 'B' DO_COMMIT = ' ' IMPORTING WI_ID = WI_ID TABLES AGENTS = AGENTS DEADLINE_AGENTS = DEADLINE_AGENTS EXCLUDED_AGENTS = EXCLUDED_AGENTS NOTIFICATION_AGENTS = NOTIFICATION_AGENTS SECONDARY_METHODS = SEG_METHODS WI_CONTAINER = WI_CONTAINER COMP_EVENTS = COMP_EVENTS EXCEPTIONS ID_NOT_CREATED = 1 READ_FAILED = 2 IMMEDIATE_START_NOT_POSSIBLE = 3 EXECUTION_FAILED = 4 INVALID_STATUS = 5 OTHERS = 6.



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