SAP Reports / Programs

SAPDBODK SAP ABAP Report - Order Database







SAPDBODK 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 SAPDBODK 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 SAPDBODK. "Basic submit
SUBMIT SAPDBODK AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBODK 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: TESTLAUF = Test run
Selection Text: OBJ_LIST = Order list
Selection Text: KOKRS = Controlling area
Selection Text: AUFNR = Order number
Selection Text: AUART = Order type
Selection Text: ARCHNODE = Archive
Selection Text: ARCHDEL = Archive and delete
Title: Order Database
Text Symbol: S06 = Selection
Text Symbol: S05 = Archive
Text Symbol: S04 = Database
Text Symbol: S03 = archive in the report:
Text Symbol: S02 = want to evaluate the database or an
Text Symbol: S01 = You have to decide whether you
Text Symbol: 900 = Archiving parameters
Text Symbol: 400 = Order list
Text Symbol: 300 = Test run
Text Symbol: 203 = Delete
Text Symbol: 202 = Processing options
Text Symbol: 201 = Archive and delete
Text Symbol: 200 = Archive
Text Symbol: 010 = Orders


INCLUDES used within this REPORT SAPDBODK

INCLUDE FKADBSEL.
INCLUDE SAPFKADB.


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:

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' IMPORTING e_kokrs = kokrs-low EXCEPTIONS not_found = 01.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING textline1 = text-s01 textline2 = text-s02 textline3 = text-s03 text_option1 = text-s04 text_option2 = text-s05 titel = text-s06 IMPORTING answer = source.

CRRE_TEST_SEQ_FILE * CALL FUNCTION 'CRRE_TEST_SEQ_FILE' * IMPORTING * FLAG = SEQINPUT.

CRRE_TEST_SEQ_FILE * CALL FUNCTION 'CRRE_TEST_SEQ_FILE' * IMPORTING * FLAG = SEQINPUT.

K_RPSCO_PRE_READ CALL FUNCTION 'K_RPSCO_PRE_READ' TABLES t_objnr = t_aufk_objnr.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = 'CO_ORDER' archive_name = arch_key IMPORTING archive_handle = archive_handle EXCEPTIONS no_files_available = 04.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_handle EXCEPTIONS end_of_file = 01.

K_ARCHIVE_DATE_SET CALL FUNCTION 'K_ARCHIVE_DATE_SET' EXPORTING i_archive_handle = archive_handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = archive_handle IMPORTING archive_creation_release = archive_creation_release EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

TEXT_SELECT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_SELECT_ARCHIVE_OBJECT' EXPORTING archive_handle = archive_handle id = '*' "TDID language = '*' name = '*' "TDNAME object = '*' "TDOBJECT client = sy-mandt TABLES selections = text_header EXCEPTIONS wrong_access_to_archive = 01.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.

K_ORDER_AUTHORITY_CHECK CALL FUNCTION 'K_ORDER_AUTHORITY_CHECK' EXPORTING i_aufk = aufk i_actvt = l_actvt EXCEPTIONS system_error = 1 user_not_authorized = 2.

CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING archive_handle = 0 date_of_change = '00000000' objectclass = aufk_objectclas objectid = aufk_objectid time_of_change = '000000' username = space TABLES i_cdhdr = xcdhdr EXCEPTIONS no_position_found = 01 wrong_access_to_archive = 02.

CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING archive_handle = archive_handle date_of_change = '00000000' objectclass = aufk_objectclas objectid = aufk_objectid time_of_change = '000000' username = space TABLES i_cdhdr = xcdhdr EXCEPTIONS no_position_found = 01 wrong_access_to_archive = 02.

CHANGEDOCUMENT_READ_POSITIONS CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING archive_handle = 0 changenumber = cdhdr-changenr IMPORTING header = cdhdr TABLES editpos = xcdshw EXCEPTIONS no_position_found = 01 wrong_access_to_archive = 02.

CHANGEDOCUMENT_READ_POSITIONS CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING archive_handle = archive_handle changenumber = cdhdr-changenr IMPORTING header = cdhdr TABLES editpos = xcdshw EXCEPTIONS no_position_found = 01 wrong_access_to_archive = 02.



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