SAP Reports / Programs | Basis Components | Middleware | ALE Integration Technology(BC-MID-ALE) SAP BC

RSESTA02 SAP ABAP Report - Program for object type IDOCSTATUS : Status record







RSESTA02 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 RSESTA02 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 RSESTA02. "Basic submit
SUBMIT RSESTA02 AND RETURN. "Return to original report after report execution complete
SUBMIT RSESTA02 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 IDOCSTATUS : Status record


INCLUDES used within this REPORT RSESTA02

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:

IDOC_STATUS_IN CALL FUNCTION 'IDOC_STATUS_IN' EXPORTING DOCUMENT_NUMBER = DOCNUM DIALOG_SIGN = FALSE EXCEPTIONS DOCUMENT_LOCKED = 02 DOCUMENT_NOT_EXIST = 02 DOCUMENT_NOT_PROCESSED = 01 PARAMETER_ERROR = 02 FAILURE_IN_DB_WRITE = 02 STATUS_SET_MISSING = 02 IDOC_STATUS_ERROR = 02.

IDOC_ERROR_WORKFLOW_START CALL FUNCTION 'IDOC_ERROR_WORKFLOW_START' EXPORTING DOCNUM = '0000000000000000' EVENTCODE = PC_MSG MESS = MESSAGELINE EXCEPTIONS NO_ENTRY_IN_TEDE5 = 1 ERROR_IN_START_WORKFLOW = 2 OTHERS = 3.

EDI_DOCUMENT_STATUS_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_STATUS_DISPLAY' EXPORTING DOCNUM = ST_DOCNUM ACTIONS = ACTIONS STATUS_KEY = EMPTY_STAT_KEY CALL_ASYN = ' ' TREE_DISPLAY = 'Y' IMPORTING ACTION = ACTION EXCEPTIONS NO_STATUS_RECORD_FOUND = 1 OTHERS = 2.

EDI_DOCUMENT_STATUS_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_STATUS_DISPLAY' EXPORTING DOCNUM = ST_DOCNUM ACTIONS = ACTIONS STATUS_KEY = EMPTY_STAT_KEY CALL_ASYN = ' ' TREE_DISPLAY = 'Y' 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 = IDOC_NUMBER ENQUEUE_OPTION = 'S' IMPORTING IDOC_CONTROL = CONTROL_RECORD 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 = IDOC_NUMBER IDOC_STATUS = STATUS_RECORD IMPORTING IDOC_CONTROL = CONTROL_RECORD 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 = IDOC_NUMBER BACKGROUND = 'N' NO_DEQUEUE = ' ' IMPORTING IDOC_CONTROL = CONTROL_RECORD EXCEPTIONS DOCUMENT_NOT_OPEN = 1 FAILURE_IN_DB_WRITE = 2 PARAMETER_ERROR = 3 STATUS_SET_MISSING = 4 OTHERS = 5.

IDOC_STATUS_IN CALL FUNCTION 'IDOC_STATUS_IN' EXPORTING DOCUMENT_NUMBER = IDOC_NUMBER DIALOG_SIGN = TRUE EXCEPTIONS DOCUMENT_LOCKED = 01 DOCUMENT_NOT_EXIST = 01 DOCUMENT_NOT_PROCESSED = 03 PARAMETER_ERROR = 01 FAILURE_IN_DB_WRITE = 01 STATUS_SET_MISSING = 01 IDOC_STATUS_ERROR = 02.



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