SAP Reports / Programs

RLSUB020 SAP ABAP Report - Inbound IDoc: Application documents linked with IDocs







RLSUB020 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for With this report, you can generate IDocs (IDoc = Intermediate Document) and application documents (transfer orders, transfer requirements etc...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RLSUB020 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

LX37 - Linked objects


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


Text pool values


Selection Text: DOCNUM = IDoc Number
Selection Text: MESTYP = Message Type
Selection Text: P_MOBLSR = All for MOB/LSR Interface
Selection Text: UPDDAT = Last changed on
Selection Text: UPDTIM = Time
Title: Inbound IDoc: Application documents linked with IDocs
Text Symbol: 020 = SU
Text Symbol: 021 = IDoc no.
Text Symbol: 022 = Doc. Warehouse
Text Symbol: 023 = Doc.
Text Symbol: 024 = Sender:
Text Symbol: 025 = Receiver:
Text Symbol: 026 = Description:
Text Symbol: 027 = Number of IDocs:


INCLUDES used within this REPORT RLSUB020

INCLUDE MLLVSKON.


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:

SREL_GET_NEXT_RELATIONS CALL FUNCTION 'SREL_GET_NEXT_RELATIONS' EXPORTING OBJECT = ls_object * ROLETYPE = RELATIONTYPE = 'IDC1' * MAX_HOPS = 1 TABLES LINKS = lt_relation * ROLES = EXCEPTIONS * INTERNAL_ERROR = 1 * NO_LOGSYS = 2 OTHERS = 3.

IDOCTYPE_READ CALL FUNCTION 'IDOCTYPE_READ' EXPORTING PI_IDOCTYP = OUT-IDOCTP IMPORTING PE_ATTRIBUTES = ATTRIB.

SWO_QUERY_METHOD CALL FUNCTION 'SWO_QUERY_METHOD' EXPORTING * LANGUAGE = SY-LANGU METHOD = 'DISPLAY' OBJTYPE = 'IDOC' * TEXT = ' ' IMPORTING * INFO = RETURN = RETURN EXCEPTIONS OTHERS = 1.

SWO_CREATE CALL FUNCTION 'SWO_CREATE' EXPORTING OBJTYPE = 'IDOC' OBJKEY = HLP_OBJKEY IMPORTING OBJECT = OBJECT RETURN = RETURN EXCEPTIONS OTHERS = 1.

SWO_INVOKE CALL FUNCTION 'SWO_INVOKE' EXPORTING * ACCESS = 'C' OBJECT = OBJECT VERB = 'DISPLAY' PERSISTENT = 'X' * REQUESTER = ' ' * SYNCHRON = '*' * UNSORTED_CONTAINER = ' ' IMPORTING RETURN = RETURN * VERB = TABLES CONTAINER = WI_CONTAINER EXCEPTIONS OTHERS = 1.

SWO_FREE CALL FUNCTION 'SWO_FREE' EXPORTING OBJECT = OBJECT * IMPORTING * RETURN = EXCEPTIONS OTHERS = 1.

L_SU_DISPLAY CALL FUNCTION 'L_SU_DISPLAY' EXPORTING I_LENUM = LENUM.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES NODETAB = NODES.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = 'RLSUB020' CALLBACK_USER_COMMAND = 'HANDLE_USER_COMMAND' * callback_text_display = 'SET_TEXTS_IN_HIERARCHY' CALLBACK_TOP_OF_PAGE = 'HANDLE_TOP_OF_PAGE' CALLBACK_COLOR_DISPLAY = ' ' CHECK_DUPLICATE_NAME = '1' COLOR_OF_LINK = '1' COLOR_OF_NODE = '4' LOWER_CASE_SENSITIVE = 'X' MODIFICATION_LOG = ' ' NODE_LENGTH = 12 TEXT_LENGTH = 40 TEXT_LENGTH1 = 10 TEXT_LENGTH2 = 15 SCREEN_START_COLUMN = 0 SCREEN_START_LINE = 0 SCREEN_END_COLUMN = 0 SCREEN_END_LINE = 0 SUPPRESS_NODE_OUTPUT = ' '.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = OWN_SYSTEM EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1.



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