SAP Reports / Programs

TREX_AUNIT_TENANT SAP ABAP Report - TREX Integration test.







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


Text pool values


Title: TREX Integration test.


INCLUDES used within this REPORT TREX_AUNIT_TENANT

INCLUDE TREX_AUNIT_TEST_BASE . "#EC INCL_OK


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:

TREX_EXT_CREATE_TENANT CALL FUNCTION 'TREX_EXT_CREATE_TENANT' EXPORTING i_rfc_destination = me->facade->rfcdest i_source_tenant = '' * i_target_tenant = sy-mandt i_target_tenant = c_tenant IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_DELETE_TENANT CALL FUNCTION 'TREX_EXT_DELETE_TENANT' EXPORTING * i_tenant = sy-mandt i_tenant = c_tenant i_rfc_destination = me->facade->rfcdest IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_CREATE_TENANT CALL FUNCTION 'TREX_EXT_CREATE_TENANT' EXPORTING i_rfc_destination = me->facade->rfcdest i_source_tenant = '' * i_target_tenant = sy-mandt i_target_tenant = l_c_tenant IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_LIST_TENANTS CALL FUNCTION 'TREX_EXT_LIST_TENANTS' EXPORTING i_rfc_destination = me->facade->rfcdest * I_TENANT = '' IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text e_tenants = l_tenants EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_LIST_TENANTS CALL FUNCTION 'TREX_EXT_LIST_TENANTS' EXPORTING i_rfc_destination = me->facade->rfcdest * I_TENANT = '' i_return_as_ip = 1 IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text e_tenants = l_tenants EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_LIST_TENANTS CALL FUNCTION 'TREX_EXT_LIST_TENANTS' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = c_tenant IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text e_tenants = l_tenants EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_DELETE_TENANT CALL FUNCTION 'TREX_EXT_DELETE_TENANT' EXPORTING * i_tenant = sy-mandt i_tenant = l_c_tenant i_rfc_destination = me->facade->rfcdest IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_SUSPEND_TENANT CALL FUNCTION 'TREX_EXT_SUSPEND_TENANT' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = c_tenant i_mode = 1 "suspend IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_SUSPEND_TENANT CALL FUNCTION 'TREX_EXT_SUSPEND_TENANT' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = c_tenant i_mode = 2 "resume IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_SUSPEND_TENANT CALL FUNCTION 'TREX_EXT_SUSPEND_TENANT' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = '123' i_mode = 1 IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_SET_TENANT_TAG CALL FUNCTION 'TREX_EXT_SET_TENANT_TAG' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = c_tenant i_value = l_c_tag IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

TREX_EXT_GET_TENANT_TAG CALL FUNCTION 'TREX_EXT_GET_TENANT_TAG' EXPORTING i_rfc_destination = me->facade->rfcdest i_tenant = c_tenant IMPORTING e_return_code = me->trex_return_code e_return_text = me->trex_return_text e_value = l_act_tag EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.



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