SAP Reports / Programs

ROIJLOC_TREE SAP ABAP Report - Planning location hierarchy tree







ROIJLOC_TREE 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 ROIJLOC_TREE 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

O4TX_TREE - Drill-down planning locations


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 ROIJLOC_TREE. "Basic submit
SUBMIT ROIJLOC_TREE AND RETURN. "Return to original report after report execution complete
SUBMIT ROIJLOC_TREE 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: LOC = Location
Title: Planning location hierarchy tree
Text Symbol: 001 = Hierarchy header
Text Symbol: 002 = Planning Locations
Text Symbol: 003 = Locations
Text Symbol: 004 = Material
Text Symbol: 005 = Maximum no. of hits
Text Symbol: 006 = Location/Material
Text Symbol: 007 = Location name/Material name
Text Symbol: 008 = Location hierarchy with material


INCLUDES used within this REPORT ROIJLOC_TREE

INCLUDE OIJCONSTANTS.
INCLUDE SBAL_CONSTANTS.


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:

BAL_DSP_PROFILE_POPUP_GET CALL FUNCTION 'BAL_DSP_PROFILE_POPUP_GET' IMPORTING E_S_DISPLAY_PROFILE = L_S_DISPLAY_PROFILE EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING I_S_DISPLAY_PROFILE = L_S_DISPLAY_PROFILE EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_S_MSG = L_S_MSG I_LOG_HANDLE = L_LOG_HANDLE EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 1.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING TYPE = MESSAGE_TYPE-ERROR CL = MESSAGE_ID-OD NUMBER = '675' "'You are not authorized to run this IMPORTING RETURN = LS_RETURN. " program'

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = G_S_LOG IMPORTING E_LOG_HANDLE = L_LOG_HANDLE EXCEPTIONS OTHERS = 1.

OIJ_IF_LOC_GET CALL FUNCTION 'OIJ_IF_LOC_GET' EXPORTING I_GET_LOCATION = 'X' I_GET_MATERIALS = 'X' I_MAXROWS = P_MAX I_SORT = 'X' TABLES SO_LOCID = LT_LOC ET_OIJLOC = LT_OIJLOCS ET_OIJLOCMAT = LT_OIJLOCSMAT RETURN = LT_RETURN.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_S_MSG = L_S_MSG I_LOG_HANDLE = L_LOG_HANDLE EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 1.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = 'ROIJLOC_TREE' * I_STRUCTURE_NAME = 'STRUC_OIJLOC' * I_STRUCTURE_NAME = 'OIJLOC' * I_STRUCTURE_NAME = 'oijloc_struc' CHANGING CT_FIELDCAT = GT_FIELDCATALOG.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = '@A2@' IMPORTING RESULT = l_icon_dispo_level EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = '@A8@' IMPORTING RESULT = l_icon_plant EXCEPTIONS OTHERS = 0.

OIJPLANLOC_HIERARCHY_READ CALL FUNCTION 'OIJPLANLOC_HIERARCHY_READ' EXPORTING IV_LOCID = -LOCID * IV_REFRESH_BUFFER = IMPORTING ET_PLANLOC_H = LT_PLANLOC_H EXCEPTIONS RECORD_NOT_FOUND = 1 OTHERS = 2 .

OIJLOC_ARRAY_READ CALL FUNCTION 'OIJLOC_ARRAY_READ' EXPORTING IT_OIJLOC_KEY = LT_OIJLOC_KEY IMPORTING ET_OIJLOC = LT_OIJLOC_TAB *VK 01042003 SO7K101359 * ET_OIJLOC = lt_ROIJLOC_TREE.

OIJLOCMAT_ARRAY_READ CALL FUNCTION 'OIJLOCMAT_ARRAY_READ' EXPORTING IT_OIJLOC_KEY = LT_OIJLOC_KEY_REAL IMPORTING ET_OIJLOCMAT = LT_OIJLOCMAT EXCEPTIONS RECORDS_NOT_FOUND = 1 RECORDS_NOT_REQUESTED = 2 OTHERS = 3.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_S_MSG = L_S_MSG I_LOG_HANDLE = L_LOG_HANDLE EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_S_MSG = L_S_MSG I_LOG_HANDLE = L_LOG_HANDLE EXCEPTIONS LOG_NOT_FOUND = 0 OTHERS = 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 ROIJLOC_TREE or its description.