SAP Reports / Programs

RBDCUS40 SAP ABAP Report - Generate Distribution Groups from CONDAT Distribution







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

BDXK - Convert CONDAT Objects in Dist.Group


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 RBDCUS40. "Basic submit
SUBMIT RBDCUS40 AND RETURN. "Return to original report after report execution complete
SUBMIT RBDCUS40 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: P_GROUP = Distribution Group
Selection Text: P_MODEL = Distribution Model
Selection Text: P_RCVSYS = Receiving System
Selection Text: P_SNDSYS = Sending System
Selection Text: TEST = Test
Title: Generate Distribution Groups from CONDAT Distribution
Text Symbol: 001 = Mapping CONDAT objects -> distribution group
Text Symbol: 002 = Object is not valid
Text Symbol: 003 = Object has already been used
Text Symbol: AL1 = Status
Text Symbol: AL2 = Object Type
Text Symbol: AL3 = Object Name
Text Symbol: AL4 = Information


INCLUDES used within this REPORT RBDCUS40

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:

AUTH_CHECK_USER_ALE_CUST CALL FUNCTION 'AUTH_CHECK_USER_ALE_CUST' EXPORTING group_cust = p_group actvt = '02' EXCEPTIONS is_allowed = 1 is_not_allowed = 2 OTHERS = 3.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING * MODE_RSTABLE = 'E' tabname = 'TBD72' varkey = h_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ALE_MODEL_INFO_GET CALL FUNCTION 'ALE_MODEL_INFO_GET' EXPORTING message_type = 'CONDAT' receiving_system = p_rcvsys sending_system = p_sndsys * VALIDDATE = SY-DATUM TABLES model_data = model_data EXCEPTIONS no_model_info_found = 1 own_system_not_defined = 2 OTHERS = 3.

CHECK_OBJECT_NAME_AND_TYPE CALL FUNCTION 'CHECK_OBJECT_NAME_AND_TYPE' EXPORTING objekttyp = h_tbd72-objekttyp objektname = h_tbd72-objektname EXCEPTIONS type_error = 1 OTHERS = 2.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING * MODE_RSTABLE = 'E' tabname = 'TBD72' varkey = h_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 1.

ALE_MODEL_INFO_GET CALL FUNCTION 'ALE_MODEL_INFO_GET' EXPORTING message_type = 'CONDAT' receiving_system = p_rcvsys sending_system = p_sndsys * VALIDDATE = SY-DATUM TABLES model_data = model_data EXCEPTIONS no_model_info_found = 1 own_system_not_defined = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = i_grid_title is_layout = list_layout it_fieldcat = gt_fieldcat[] it_excluding = it_excluding is_print = is_print TABLES t_outtab = output_tab EXCEPTIONS OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_failure IMPORTING RESULT = output_tab-icon.

GET_ALE_OBJECT_TEXT CALL FUNCTION 'GET_ALE_OBJECT_TEXT' EXPORTING objecttype = h_tbd72-objekttyp objectname = h_tbd72-objektname IMPORTING ddtext = h_text EXCEPTIONS no_text_found = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_okay IMPORTING RESULT = output_tab-icon.

GET_ALE_OBJECT_TEXT CALL FUNCTION 'GET_ALE_OBJECT_TEXT' EXPORTING objecttype = h_tbd72-objekttyp objectname = h_tbd72-objektname IMPORTING ddtext = h_text EXCEPTIONS no_text_found = 1 OTHERS = 2.



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