SAP Reports / Programs | Logistics - General | Logistics Basic Data | Customer Master(LO-MD-BP-CM) SAP LO

KCONS_DELETE SAP ABAP Report - Consent Data: Deletion of consent data records







KCONS_DELETE 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 KCONS_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 KCONS_DELETE. "Basic submit
SUBMIT KCONS_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT KCONS_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: LV_PACK = Packet Size
Selection Text: LV_RESD = Residence time in days
Selection Text: LV_TEST = Test mode
Title: Consent Data: Deletion of consent data records
Text Symbol: 001 = Consent data deletion.
Text Symbol: 002 = rows selected. Change document entries will also be deleted. Do you want to delete the entries?
Text Symbol: 003 = Yes
Text Symbol: 004 = No
Text Symbol: 005 = Number of Consent data rows deleted successfully:
Text Symbol: 006 = Number of consent data rows deleted unsuccessfully:
Text Symbol: 007 = Number of change document keys deleted successfully:
Text Symbol: 008 = Number of change document keys deleted unsuccessfully:
Text Symbol: 009 = Part 2: Deletion of change documents for deleted rows of Consent data.
Text Symbol: 010 = Part 1: Deletion of existing Consent data (Consent data and related Change documents).


INCLUDES used within this REPORT KCONS_DELETE

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:

TSTR_CALC_TIME CALL FUNCTION 'TSTR_CALC_TIME' EXPORTING iv_begin_datelocal_req = sy-datum iv_duration_integer = lv_ressec iv_direction = '-' * IV_SPLIT_ALLOWED = 'X' IMPORTING ev_end_datelocal = lv_resdat EXCEPTIONS fatal_error = 1 time_invalid = 2 time_missing = 3 tstream_not_loadable = 4 tstream_generation_error = 5 parameter_error = 6 unspecified_error = 7 OTHERS = 8.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-001 text_question = lv_question text_button_1 = text-003 text_button_2 = text-004 IMPORTING answer = lv_ans EXCEPTIONS text_not_found = 1 OTHERS = 2.

CHANGEDOCUMENT_DELETE CALL FUNCTION 'CHANGEDOCUMENT_DELETE' EXPORTING client = sy-mandt objectclass = 'KCONS' objectid = lv_objectid * up_to_date = lv_resdat with_commit = '' EXCEPTIONS no_authority = 1 no_changes_found = 2 OTHERS = 3.

KCONS_CHANGEDOC_GET_DEL_KEYS CALL FUNCTION 'KCONS_CHANGEDOC_GET_DEL_KEYS' EXPORTING iv_residence_date = lv_resdat IMPORTING et_kconds_cd = lt_kcons_cd.

CHANGEDOCUMENT_DELETE CALL FUNCTION 'CHANGEDOCUMENT_DELETE' EXPORTING objectclass = 'KCONS' objectid = ls_kcons_cd-objectid up_to_date = ls_kcons_cd-udate * changenr = ls_kcons_cd-changenr EXCEPTIONS no_authority = 1 no_changes_found = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'KCONS' TABLES t_outtab = lt_kcons_del EXCEPTIONS program_error = 1 OTHERS = 2.



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