SAP FKK_GET_SINGLE_ARC_DOC Function Module for
FKK_GET_SINGLE_ARC_DOC is a standard fkk get single arc doc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fkk get single arc doc FM, simply by entering the name FKK_GET_SINGLE_ARC_DOC into the relevant SAP transaction such as SE37 or SE38.
Function Group: FPAR01
Program Name: SAPLFPAR01
Main Program: SAPLFPAR01
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_GET_SINGLE_ARC_DOC pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FKK_GET_SINGLE_ARC_DOC'".
EXPORTING
I_OPBEL = "Document Number
* I_CPUDT = "Accounting Document Entry Date
* I_CPUTM = "Obsolete
IMPORTING
E_FKKKO = "Document header
E_ARCH_HANDLE = "Internal Tables, Current Row Index
TABLES
* T_FKKOP = "Business Partner Items
* T_FKKOPKX = "Items for Contract Accounting Document (Enhancement)
* T_FKKOPK_TEXT_GL = "
* T_FKKOPC = "Card Data Supplement for Business Partner Item
* T_FKKDEFREV = "
* T_FKKESR = "ISR Payment Supplement
* T_CDHDR = "Change Document Header
* T_CDPOS = "Change document items
* T_DFKKOBJRL = "Object Relations between FI-CA Documents
* T_FKKKO_WF = "Header Data for Contract Accting Doc. (Workflow Parameters)
* T_FKKOPWH = "Withholding Tax Data for Business Partner Item
* T_FKKOPK = "G/L Account Line Items
* T_FKKOPAA = "Distribution Items with Account Assignment
* T_E001 = "Company Code Currencies for Archiv.Classes ARCT001
* T_FKKOPW = "Repetition Items
* T_FKKOP_C = "Clearing Items
* T_FKKOPKC = "Credit Card Supplements
* T_FKKIA = "
* T_LOCKS = "
* T_LOCKSH = "
* T_CRDATE_ID = "Entry Data
EXCEPTIONS
NO_DOCUMENT_FOUND = 1 AS_ERROR = 2
IMPORTING Parameters details for FKK_GET_SINGLE_ARC_DOC
I_OPBEL - Document Number
Data type: DFKKKO-OPBELOptional: No
Call by Reference: No ( called with pass by value option)
I_CPUDT - Accounting Document Entry Date
Data type: DFKKKO-CPUDTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CPUTM - Obsolete
Data type: DFKKKO-CPUTMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_GET_SINGLE_ARC_DOC
E_FKKKO - Document header
Data type: FKKKOOptional: No
Call by Reference: Yes
E_ARCH_HANDLE - Internal Tables, Current Row Index
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_GET_SINGLE_ARC_DOC
T_FKKOP - Business Partner Items
Data type: FKKOPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPKX - Items for Contract Accounting Document (Enhancement)
Data type: DFKKOPKXOptional: Yes
Call by Reference: Yes
T_FKKOPK_TEXT_GL -
Data type: DFKKOPK_TEXT_GLOptional: Yes
Call by Reference: Yes
T_FKKOPC - Card Data Supplement for Business Partner Item
Data type: DFKKOPCOptional: Yes
Call by Reference: Yes
T_FKKDEFREV -
Data type: FKKDEFREVOptional: Yes
Call by Reference: Yes
T_FKKESR - ISR Payment Supplement
Data type: DFKKESROptional: Yes
Call by Reference: Yes
T_CDHDR - Change Document Header
Data type: CDHDROptional: Yes
Call by Reference: Yes
T_CDPOS - Change document items
Data type: CDPOSOptional: Yes
Call by Reference: Yes
T_DFKKOBJRL - Object Relations between FI-CA Documents
Data type: DFKKOBJRLOptional: Yes
Call by Reference: Yes
T_FKKKO_WF - Header Data for Contract Accting Doc. (Workflow Parameters)
Data type: DFKKKO_WFOptional: Yes
Call by Reference: Yes
T_FKKOPWH - Withholding Tax Data for Business Partner Item
Data type: DFKKOPWHOptional: Yes
Call by Reference: Yes
T_FKKOPK - G/L Account Line Items
Data type: FKKOPKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPAA - Distribution Items with Account Assignment
Data type: DFKKOPAAOptional: Yes
Call by Reference: Yes
T_E001 - Company Code Currencies for Archiv.Classes ARCT001
Data type: E001Optional: Yes
Call by Reference: Yes
T_FKKOPW - Repetition Items
Data type: FKKOPWOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOP_C - Clearing Items
Data type: FKKOPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPKC - Credit Card Supplements
Data type: DFKKOPKCOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKIA -
Data type: DFKKIAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_LOCKS -
Data type: DFKKLOCKSOptional: Yes
Call by Reference: Yes
T_LOCKSH -
Data type: DFKKLOCKSHOptional: Yes
Call by Reference: Yes
T_CRDATE_ID - Entry Data
Data type: FKK_CRDATE_IDOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DOCUMENT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AS_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_GET_SINGLE_ARC_DOC Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_fkkko | TYPE FKKKO, " | |||
| lv_i_opbel | TYPE DFKKKO-OPBEL, " | |||
| lt_t_fkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_no_document_found | TYPE FKKOP, " | |||
| lt_t_fkkopkx | TYPE STANDARD TABLE OF DFKKOPKX, " | |||
| lt_t_fkkopk_text_gl | TYPE STANDARD TABLE OF DFKKOPK_TEXT_GL, " | |||
| lt_t_fkkopc | TYPE STANDARD TABLE OF DFKKOPC, " | |||
| lt_t_fkkdefrev | TYPE STANDARD TABLE OF FKKDEFREV, " | |||
| lt_t_fkkesr | TYPE STANDARD TABLE OF DFKKESR, " | |||
| lt_t_cdhdr | TYPE STANDARD TABLE OF CDHDR, " | |||
| lt_t_cdpos | TYPE STANDARD TABLE OF CDPOS, " | |||
| lt_t_dfkkobjrl | TYPE STANDARD TABLE OF DFKKOBJRL, " | |||
| lt_t_fkkko_wf | TYPE STANDARD TABLE OF DFKKKO_WF, " | |||
| lt_t_fkkopwh | TYPE STANDARD TABLE OF DFKKOPWH, " | |||
| lv_i_cpudt | TYPE DFKKKO-CPUDT, " | |||
| lv_as_error | TYPE DFKKKO, " | |||
| lt_t_fkkopk | TYPE STANDARD TABLE OF FKKOPK, " | |||
| lv_e_arch_handle | TYPE SY-TABIX, " | |||
| lt_t_fkkopaa | TYPE STANDARD TABLE OF DFKKOPAA, " | |||
| lt_t_e001 | TYPE STANDARD TABLE OF E001, " | |||
| lv_i_cputm | TYPE DFKKKO-CPUTM, " | |||
| lt_t_fkkopw | TYPE STANDARD TABLE OF FKKOPW, " | |||
| lt_t_fkkop_c | TYPE STANDARD TABLE OF FKKOP, " | |||
| lt_t_fkkopkc | TYPE STANDARD TABLE OF DFKKOPKC, " | |||
| lt_t_fkkia | TYPE STANDARD TABLE OF DFKKIA, " | |||
| lt_t_locks | TYPE STANDARD TABLE OF DFKKLOCKS, " | |||
| lt_t_locksh | TYPE STANDARD TABLE OF DFKKLOCKSH, " | |||
| lt_t_crdate_id | TYPE STANDARD TABLE OF FKK_CRDATE_ID. " |
|   CALL FUNCTION 'FKK_GET_SINGLE_ARC_DOC' " |
| EXPORTING | ||
| I_OPBEL | = lv_i_opbel | |
| I_CPUDT | = lv_i_cpudt | |
| I_CPUTM | = lv_i_cputm | |
| IMPORTING | ||
| E_FKKKO | = lv_e_fkkko | |
| E_ARCH_HANDLE | = lv_e_arch_handle | |
| TABLES | ||
| T_FKKOP | = lt_t_fkkop | |
| T_FKKOPKX | = lt_t_fkkopkx | |
| T_FKKOPK_TEXT_GL | = lt_t_fkkopk_text_gl | |
| T_FKKOPC | = lt_t_fkkopc | |
| T_FKKDEFREV | = lt_t_fkkdefrev | |
| T_FKKESR | = lt_t_fkkesr | |
| T_CDHDR | = lt_t_cdhdr | |
| T_CDPOS | = lt_t_cdpos | |
| T_DFKKOBJRL | = lt_t_dfkkobjrl | |
| T_FKKKO_WF | = lt_t_fkkko_wf | |
| T_FKKOPWH | = lt_t_fkkopwh | |
| T_FKKOPK | = lt_t_fkkopk | |
| T_FKKOPAA | = lt_t_fkkopaa | |
| T_E001 | = lt_t_e001 | |
| T_FKKOPW | = lt_t_fkkopw | |
| T_FKKOP_C | = lt_t_fkkop_c | |
| T_FKKOPKC | = lt_t_fkkopkc | |
| T_FKKIA | = lt_t_fkkia | |
| T_LOCKS | = lt_t_locks | |
| T_LOCKSH | = lt_t_locksh | |
| T_CRDATE_ID | = lt_t_crdate_id | |
| EXCEPTIONS | ||
| NO_DOCUMENT_FOUND = 1 | ||
| AS_ERROR = 2 | ||
| . " FKK_GET_SINGLE_ARC_DOC | ||
ABAP code using 7.40 inline data declarations to call FM FKK_GET_SINGLE_ARC_DOC
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single OPBEL FROM DFKKKO INTO @DATA(ld_i_opbel). | ||||
| "SELECT single CPUDT FROM DFKKKO INTO @DATA(ld_i_cpudt). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_e_arch_handle). | ||||
| "SELECT single CPUTM FROM DFKKKO INTO @DATA(ld_i_cputm). | ||||
Search for further information about these or an SAP related objects