SAP Reports / Programs

SAPDBFDK SAP ABAP Report - Logical database FDK : Database program







SAPDBFDK 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 SAPDBFDK 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 SAPDBFDK. "Basic submit
SUBMIT SAPDBFDK AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBFDK 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: 4R_KTNRA = D Regulatory account
Selection Text: 4S_BUKRS = D Sending company code
Selection Text: 4S_GSBER = D Sending business area
Selection Text: 4S_KTNRA = D Natural account
Selection Text: 5R_BUKRS = D Receiving company code
Selection Text: 5R_GSBER = D Receiving business area
Selection Text: 5R_KTNRA = D Regulatory account
Selection Text: 5R_OBJNR = D Final obj. number
Selection Text: DD_ACT = Actual
Selection Text: DD_GJAHR = D Fiscal Year
Selection Text: DD_KOKRS = D CO area
Selection Text: DD_PERIO = D Period
Selection Text: DD_PLN = Plan
Selection Text: DD_VERSN = D Version
Selection Text: DR_BUKRS = D Receiving company code
Selection Text: DR_GSBER = D Receiving business area
Selection Text: DR_KTNRA = D Regulatory account
Selection Text: DR_OBJNR = D Final obj. number
Selection Text: DS_BUKRS = D Sending company code
Selection Text: DS_GSBER = D Sending business area
Selection Text: DS_KTNRA = D Natural account
Selection Text: DS_OBJNR = D Source obj. number
Selection Text: 4R_GSBER = D Receiving business area
Selection Text: 4R_BUKRS = D Receiving company code
Selection Text: 2S_OBJNR = D Source obj. number
Selection Text: 2S_GSBER = D Sending business area
Selection Text: 2S_BUKRS = D Sending company code
Selection Text: 2R_OBJNR = D Final obj. number
Selection Text: 2R_GSBER = D Receiving business area
Selection Text: 2R_BUKRS = D Receiving company code
Title: Logical database FDK : Database program
Text Symbol: D10 = Sender
Text Symbol: D11 = Receiver
Text Symbol: F01 = Reading from archive
Text Symbol: F02 = Period &/& has already been archived.
Text Symbol: F03 = Should the system read from archive?
Text Symbol: FOB = Final object
Text Symbol: P30 = Actual





Text Symbol: P40 = Plan
Text Symbol: P50 = Version
Text Symbol: QI1 = Add CO objects to selection
Text Symbol: R00 = Timeframe
Text Symbol: R01 = Data type
Text Symbol: SOB = Source object


INCLUDES used within this REPORT SAPDBFDK

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:

FERC_DEFAULT_GET call function 'FERC_DEFAULT_GET' importing CONTROLLING_AREA = DD_KOKRS PERIOD = DD_PERIO-LOW YEAR = DD_GJAHR-LOW exceptions others = 1.

ARCHIVE_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting OBJECT = ARCH-OBJECT importing COMMIT_COUNT_FOR_DELETE_PRG = ARCH-COMIT exceptions OBJECT_NOT_FOUND = 1.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 2S_OBJNR-LOW.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 2S_OBJNR-HIGH.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 2R_OBJNR-LOW.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 2R_OBJNR-HIGH.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = DS_OBJNR-LOW.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = DS_OBJNR-HIGH.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = DR_OBJNR-LOW.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = DR_OBJNR-HIGH.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 5R_OBJNR-LOW.

FERC_CO_OBJECT_SELECT_SINGLE call function 'FERC_CO_OBJECT_SELECT_SINGLE' exporting CONTROLLING_AREA = DD_KOKRS importing OBJECT = 5R_OBJNR-HIGH.

FERC_CO_OBJECT_SELECT_MULTIPLE call function 'FERC_CO_OBJECT_SELECT_MULTIPLE' exporting CONTROLLING_AREA = DD_KOKRS tables S_OBJNR = 2S_OBJNR.

FERC_CO_OBJECT_SELECT_MULTIPLE call function 'FERC_CO_OBJECT_SELECT_MULTIPLE' exporting CONTROLLING_AREA = DD_KOKRS tables S_OBJNR = 2R_OBJNR.

FERC_CO_OBJECT_SELECT_MULTIPLE call function 'FERC_CO_OBJECT_SELECT_MULTIPLE' exporting CONTROLLING_AREA = DD_KOKRS tables S_OBJNR = DR_OBJNR.






FERC_CO_OBJECT_SELECT_MULTIPLE call function 'FERC_CO_OBJECT_SELECT_MULTIPLE' exporting CONTROLLING_AREA = DD_KOKRS tables S_OBJNR = DS_OBJNR.

FERC_CO_OBJECT_SELECT_MULTIPLE call function 'FERC_CO_OBJECT_SELECT_MULTIPLE' exporting CONTROLLING_AREA = DD_KOKRS tables S_OBJNR = 5R_OBJNR.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting TITEL = 'Reading from archive'(F01) TEXTLINE1 = SY-MSGV1 TEXTLINE2 = 'Should the system read from archive?'(F03) DEFAULTOPTION = 'Y' importing ANSWER = ARCH-READ.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = ARCH-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_C2 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = ARCH-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_C6 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_F2 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_F3 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_D4 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD



call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_D1 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_D4 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE exceptions others = 1.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_D2 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting OBJECT = ARCH-OBJECT OBJECT_ID = IDX-OBJECT_ID importing ARCHIVE_HANDLE = ARCH-HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = ARCH-HANDLE importing * loop to get the next record from the archived table RECORD = FERC_D5 exceptions others = 1.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = ARCH-HANDLE.



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