SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | Change Documents(BC-SRV-ASF-CHD) SAP BC

CHANGEDOCU_READ SAP ABAP Report - Read Selected Change Documents from Database or Archive







CHANGEDOCU_READ 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 CHANGEDOCU_READ 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 CHANGEDOCU_READ. "Basic submit
SUBMIT CHANGEDOCU_READ AND RETURN. "Return to original report after report execution complete
SUBMIT CHANGEDOCU_READ 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: S_OBJ = Object Class
Selection Text: S_OBID = Object Value
Selection Text: S_CHNR = Change Document Number
Selection Text: P_USER = User
Selection Text: P_TCODE = Transaction Code
Selection Text: P_ENDTIM = Creation Time: to
Selection Text: P_ENDDAT = Creation Date: to
Selection Text: P_BEGTIM = Creation Time: from
Selection Text: P_BEGDAT = Creation Date: from
Title: Read Selected Change Documents from Database or Archive
Text Symbol: SEL = Select Archived Change Documents
Text Symbol: RES = Time Restriction
Text Symbol: END = to (Date/Time)
Text Symbol: CRE = Change document triggered by
Text Symbol: BEG = from (Date/Time)
Text Symbol: 015 = Time to:
Text Symbol: 014 = Time from:
Text Symbol: 013 = Date to:
Text Symbol: 012 = Date from:
Text Symbol: 011 = Error in Date Input:
Text Symbol: 010 = Selecting data...
Text Symbol: 001 = Reading from archive...


INCLUDES used within this REPORT CHANGEDOCU_READ

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:

HELP_OBJECT_SHOW_FOR_FIELD CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD' EXPORTING called_by_tcode = sy-tcode called_by_program = l_repid called_by_dynp = sy-dynnr called_for_tab = 'TCDRP' called_for_field = 'OBJECT' EXCEPTIONS OTHERS = 0.

AS_DATASOURCE_INIT CALL FUNCTION 'AS_DATASOURCE_INIT' EXPORTING i_report = 'CHANGEDOCU_READ' it_objects = lt_objects[] IMPORTING e_use_database = r_usedb e_use_archive = r_usear e_use_infosys = r_useas e_archobj = r_object et_arch_sel = rt_files[].

AS_DATASOURCE_SELECT CALL FUNCTION 'AS_DATASOURCE_SELECT' "#EC * EXPORTING i_db_and_arc = p_useas i_no_source_select = p_usedb i_infosys_possible = p_useas it_objects = lt_objects[] CHANGING c_use_database = r_usedb c_use_archive = r_usear c_use_infosys = r_useas c_archobj = r_object ct_arch_sel = rt_files[].

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "B20K8A0GP1 EXPORTING text = 'Daten werden selektiert...'(010).

CHANGEDOCUMENT_PREPARE_DISPLAY CALL FUNCTION 'CHANGEDOCUMENT_PREPARE_DISPLAY' EXPORTING it_cdpos_str = gt_cdpos_str[] IMPORTING et_cdred_str = gt_cdred_str[] TABLES i_cdhdr = gt_cdhdr[] i_cdpos = gt_cdpos[] i_cdpos_uid = gt_cdpos_uid[] i_cdred = gt_cdred[].

CHANGEDOCUMENT_DISPLAY CALL FUNCTION 'CHANGEDOCUMENT_DISPLAY' EXPORTING i_cb_program = sy-repid i_applicationid = sy-repid it_cdred_str = gt_cdred_str[] TABLES i_cdred = gt_cdred[].

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = cv_archive_object IMPORTING archive_handle = ps_gl-misc-handle TABLES archive_files = ps_gl-so_files[] selected_files = lt_files[].

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = ps_gl-misc-handle EXCEPTIONS end_of_file = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = lv_percentage text = lv_text.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = ps_gl-misc-handle record_structure = pv_tabname all_records_of_object = 'X' TABLES table = pt_quelle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 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 CHANGEDOCU_READ or its description.