SAP Reports / Programs | Cross-Application Components | General Application Functions(CA-GTF) SAP CA

MABADRF02 SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT MABADRF02

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:

G_CONVERT_INPUT CALL FUNCTION 'G_CONVERT_INPUT' EXPORTING converted_length = desc-length convexit = desc-convexit datatype = desc-datatype input_length = desc-outputlen input_value = i_external_value IMPORTING converted_value = e_internal_value EXCEPTIONS date_does_not_exist = 1 date_format_unrecognized = 2 illegal_length = 3 input_is_not_numeric = 4 conversion_failure = 5 OTHERS = 6.

G_CONVERT_OUTPUT CALL FUNCTION 'G_CONVERT_OUTPUT' EXPORTING convexit = i_desc-convexit datatype = i_desc-datatype length_to_convert = i_desc-length output_length = i_desc-outputlen value_to_convert = i_internal_value IMPORTING output_value = e_external_value.

ABAD0_CHECK_STRUCTURE_DRIVATAB CALL FUNCTION 'ABAD0_CHECK_STRUCTURE_DRIVATAB' EXPORTING i_tablename = tabname it_source_fields = tab_source_desc it_target_fields = tab_target_desc i_guid = l_guid_desc i_version = l_version_desc IMPORTING e_difference_index = e_status EXCEPTIONS OTHERS = 0.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = version_dtelm all_types = 'X' IMPORTING dfies_wa = dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = guid_dtelm all_types = 'X' IMPORTING dfies_wa = dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

ABAD0_CREATE_ACCESS_ROUTINES CALL FUNCTION 'ABAD0_CREATE_ACCESS_ROUTINES' EXPORTING i_tablename = tabname i_reportname = reportname i_tab_sources = abadr_step-tab_sources i_tab_targets = abadr_step-tab_targets i_not_time_dependent = not_time_dependent i_guid_version_active = l_guid_version_active EXCEPTIONS OTHERS = 99.

ABAD0_CHECK_ACCESS_ROUTINES CALL FUNCTION 'ABAD0_CHECK_ACCESS_ROUTINES' EXPORTING i_reportname = reportname i_not_time_dependent = not_time_dependent i_tab_sources = abadr_step-tab_sources i_tab_targets = abadr_step-tab_targets i_guid_version_active = l_guid_version_active IMPORTING report_status = status.

ABAD0_CHECK_IF_DATA_EXISTS CALL FUNCTION 'ABAD0_CHECK_IF_DATA_EXISTS' EXPORTING i_tablename = tabname IMPORTING e_data_exist = data_exists.

ABAD0_DELETE_DERIVATION_TABLE CALL FUNCTION 'ABAD0_DELETE_DERIVATION_TABLE' EXPORTING i_tablename = tabname i_do_not_delete_tadir = i_do_not_delete_tadir i_check_only = 'X' EXCEPTIONS object_is_locked = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = 'Es sind bereits Regeleinträge vorhanden'(112) textline2 = 'Fortfahren und Regeleinträge löschen ?'(113) titel = 'Sicherheitsabfrage'(114) cancel_display = space IMPORTING answer = answer.

ABAD0_DELETE_DERIVATION_TABLE CALL FUNCTION 'ABAD0_DELETE_DERIVATION_TABLE' EXPORTING i_tablename = tabname i_do_not_delete_tadir = i_do_not_delete_tadir EXCEPTIONS OTHERS = 1.

ABAD0_DELETE_ACCESS_ROUTINES CALL FUNCTION 'ABAD0_DELETE_ACCESS_ROUTINES' EXPORTING i_reportname = reportname.

ABAD0_CREATE_DERIVATION_TABLE CALL FUNCTION 'ABAD0_CREATE_DERIVATION_TABLE' EXPORTING i_tablename = tabname i_tabletext = text i_buffer_table = buffer_table it_source_fields = tab_source_desc it_target_fields = tab_target_desc i_create_sap_table = i_step-is_sap_step i_guid = l_guid_desc i_version = l_version_desc EXCEPTIONS OTHERS = 99.

ABAD0_CREATE_ACCESS_ROUTINES CALL FUNCTION 'ABAD0_CREATE_ACCESS_ROUTINES' EXPORTING i_tablename = tabname i_reportname = reportname i_tab_sources = abadr_step-tab_sources i_tab_targets = abadr_step-tab_targets i_not_time_dependent = i_step-never_time_dependant i_guid_version_active = l_guid_version_active EXCEPTIONS OTHERS = 99.

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = tabname state = 'M' IMPORTING gotstate = gotstate EXCEPTIONS illegal_input = 1 OTHERS = 2.

ABAD0_GET_NUM CALL FUNCTION 'ABAD0_GET_NUM' IMPORTING number = number.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'TABADRS' varkey = var_lock_key EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING tabname = 'TABADRS' varkey = var_lock_key.

ENQUEUE_E_TABLE





CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING tabname = 'TABADRS' varkey = var_lock_key EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING tabname = 'TABADRS' varkey = var_lock_key.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING report = 'RABADRPRINT' IMPORTING out_parameters = params valid = valid.



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