SAP Reports / Programs

SD_CHANGEDOCUMENT_REORG SAP ABAP Report - Deleting change documents for deleted sales documents







SD_CHANGEDOCUMENT_REORG is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report for Deleting Change Documents, that already belong to the sales documents deleted from the system...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter SD_CHANGEDOCUMENT_REORG 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 SD_CHANGEDOCUMENT_REORG. "Basic submit
SUBMIT SD_CHANGEDOCUMENT_REORG AND RETURN. "Return to original report after report execution complete
SUBMIT SD_CHANGEDOCUMENT_REORG 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_BILLG = Billing documents
Selection Text: P_DELIV = Deliveries
Selection Text: P_SLSOR = Sales documents
Selection Text: P_TEST = Test run without changes
Selection Text: S_AEDAT = D Changed on
Selection Text: S_VBELN = SD document
Title: Deleting change documents for deleted sales documents
Text Symbol: 001 = Document selection
Text Symbol: 002 = Document category
Text Symbol: 003 = Change documents can be deleted
Text Symbol: 004 = Change documents have been deleted from the database
Text Symbol: 005 = Sales document:
Text Symbol: 006 = Delivery:
Text Symbol: 007 = Billing documents:


INCLUDES used within this REPORT SD_CHANGEDOCUMENT_REORG

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:

/SAPDMC/DATAELEMENT_GET_TEXTS CALL FUNCTION '/SAPDMC/DATAELEMENT_GET_TEXTS' EXPORTING name = gc_p_simul IMPORTING text_long = g_test_run EXCEPTIONS not_found = 1 OTHERS = 2.

CHANGEDOCUMENT_DELETE CALL FUNCTION 'CHANGEDOCUMENT_DELETE' EXPORTING client = sy-mandt objectclass = gt_process-objectclas objectid = gf_objectid with_commit = space disable_authority_check = ' ' EXCEPTIONS no_authority = 1 no_changes_found = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_save = gc_save it_events = lt_eventtab TABLES t_outtab = gt_output_alv EXCEPTIONS program_error = 1 OTHERS = 2 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_structure i_inclname = g_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.



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