SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

SD_COND_ARCH_DELETE SAP ABAP Report - ADK: Archiving Conditions: Delete Program







SD_COND_ARCH_DELETE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report SD_COND_ARCH_DELETE physically deletes all conditions from a file that exists in the archive system from the database...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_COND_ARCH_DELETE 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_COND_ARCH_DELETE. "Basic submit
SUBMIT SD_COND_ARCH_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT SD_COND_ARCH_DELETE 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_DELPRD = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Title: ADK: Archiving Conditions: Delete Program
Text Symbol: 001 = Document deleted
Text Symbol: 002 = &1 documents deleted


INCLUDES used within this REPORT SD_COND_ARCH_DELETE

INCLUDE ARCH_DELETE_PRG_STANDARD2.


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:

ARCHIVE_PROTOCOL_INIT_APPL call function 'ARCHIVE_PROTOCOL_INIT_APPL' exporting I_DETAILPROTOCOL = P_PROT.

ARCHIVE_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting OBJECT = 'SD_COND' importing COMMIT_COUNT_FOR_DELETE_PRG = CUST_COMMIT_COUNT.

ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting OBJECT = 'SD_COND' TEST_MODE = P_DELTST importing ARCHIVE_HANDLE = G_HANDLE exceptions FILE_ALREADY_OPEN = 01.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting ARCHIVE_HANDLE = G_HANDLE exceptions END_OF_FILE = 01.

ARCHIVE_DELETE_OBJECT_DATA call function 'ARCHIVE_DELETE_OBJECT_DATA' exporting ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = G_HANDLE importing RECORD_FLAGS = L_FLAGS RECORD_STRUCTURE = L_STRUCTURE RECORD_REF = L_RECORD exceptions END_OF_OBJECT = 01.

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting I_TEXT = TEXT-002 I_MSGV1 = G_PROCESSED I_PROCESSED = G_PROCESSED.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' exporting I_OBJECT = -KNUMH I_MSGTYPE = '01' I_TEXT = TEXT-001.

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting I_TEXT = TEXT-002 I_MSGV1 = G_PROCESSED I_PROCESSED = G_PROCESSED I_OUTPUT_IMMEDIATELY = 'X'.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_PROTOCOL_WRITE_APPL call function 'ARCHIVE_PROTOCOL_WRITE_APPL'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = G_HANDLE.

RV_TABLE_NAME_SET call function 'RV_TABLE_NAME_SET' exporting RT_KOTABNR = -KOTABNR RT_KVEWE = -KVEWE importing RT_KOTAB = L_KOTAB.

ARCHIVE_GIVE_STATISTICS call function 'ARCHIVE_GIVE_STATISTICS' exporting ARCHIVE_HANDLE = G_HANDLE tables TABLE = ARCH_STAT.



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