SAP Reports / Programs

RBDSEDOCUMENT_LOAD_MDTB SAP ABAP Report - Create IDOC for data transfer







RBDSEDOCUMENT_LOAD_MDTB 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 RBDSEDOCUMENT_LOAD_MDTB 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 RBDSEDOCUMENT_LOAD_MDTB. "Basic submit
SUBMIT RBDSEDOCUMENT_LOAD_MDTB AND RETURN. "Return to original report after report execution complete
SUBMIT RBDSEDOCUMENT_LOAD_MDTB 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_DOKAR = D Document type
Selection Text: P_DOKNR = D Document
Selection Text: P_DOKTL = D Document Part
Selection Text: P_DOKVR = D Document version
Title: Create IDOC for data transfer


INCLUDES used within this REPORT RBDSEDOCUMENT_LOAD_MDTB

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:

BAPI_DOCUMENT_GETDETAIL2 CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2' EXPORTING: documenttype = lf_doctype documentnumber = lf_docnumber documentpart = lf_docpart documentversion = lf_docversion getobjectlinks = 'X' getcomponents = 'X' getstatuslog = 'X' getlongtexts = 'X' getactivefiles = 'X' IMPORTING: documentdata = ls_doc_data return = ls_return TABLES: objectlinks = lt_links documentdescriptions = lt_desc longtexts = lt_texts statuslog = lt_statuslog documentfiles = lt_files components = lt_comp.

ALE_DOCUMENT_LOAD CALL FUNCTION 'ALE_DOCUMENT_LOAD' EXPORTING: documentdata = ls_doc_data documentdatax = ls_doc_datax hostname = '' serial_id = '0' TABLES: characteristicvalues = lt_char_values classallocations = lt_class_alloc documentdescriptions = lt_desc objectlinks = lt_links documentfiles = lt_files longtexts = lt_texts components = lt_comp statuslog = lt_statuslog receivers = lt_receiver * COMMUNICATION_DOCUMENTS = * APPLICATION_OBJECTS = EXCEPTIONS: error_creating_idocs = 1 OTHERS = 2.

NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING: langu = sy-langu only = ' ' tabname = 'BAPI_DOC_DRAW2' IMPORTING: header = ls_x030l rc = lf_subrc TABLES: nametab = lt_dntab EXCEPTIONS: internal_error = 01 table_has_no_fields = 02 table_not_activ = 03.

CLAP_DDB_GET_CLASSIFICATION CALL FUNCTION 'CLAP_DDB_GET_CLASSIFICATION' EXPORTING: object = lf_object obtab = lf_obtab standard_type_only = '' object_eq_class = '' spras = sy-langu only_varklart = '' pobtab = '' read_only = 'X' called_from_api = 'X' TABLES: allocations = lt_alloc EXCEPTIONS: no_allocation = 1 set_aennr = 2 change_nr_not_exist = 3 date_in_past = 4 error_class = 5 error_date_restriction = 6 error_status = 7 OTHERS = 8.

CLO0_DDB_OBJ_VALUATION_OPEN CALL FUNCTION 'CLO0_DDB_OBJ_VALUATION_OPEN' EXPORTING: classtype_imp = -klart class_imp = -class display_modus = 'X' object_imp = lf_object obj_structure_imp = 'DRAW' show_all_values = 'X' EXCEPTIONS: invalid_classcat = 1 class_status_not_valid = 2 class_not_found = 3 foreign_lock = 4 system_failure = 5 change_nr_not_exist = 6 OTHERS = 7.

CTMS_DDB_HAS_CHARACTERISTICS CALL FUNCTION 'CTMS_DDB_HAS_CHARACTERISTICS' TABLES: exp_characteristics = lt_char EXCEPTIONS: not_found = 1 no_characteristic_in_ddb = 2 OTHERS = 3.

CTMS_DDB_HAS_VALUES CALL FUNCTION 'CTMS_DDB_HAS_VALUES' EXPORTING: assigned_values = 'X' allowed_values = '' valid_values = '' inconsistent_values = '' first_assigned_value = '' default_values = '' incl_author = '' TABLES: imp_characteristics = lt_char exp_values = lt_value EXCEPTIONS: not_found = 1 OTHERS = 2.

CLO0_DDB_OBJ_VALUATION_CLOSE CALL FUNCTION 'CLO0_DDB_OBJ_VALUATION_CLOSE'.



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