SAP FKK_GET_POSTED_LINES Function Module for
FKK_GET_POSTED_LINES is a standard fkk get posted lines 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 posted lines FM, simply by entering the name FKK_GET_POSTED_LINES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKH4
Program Name: SAPLFKH4
Main Program: SAPLFKH4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_GET_POSTED_LINES 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_POSTED_LINES'".
EXPORTING
I_OFFIC = "Branch Office for Incoming Payments
I_CHDSK = "Cash Desk
I_CPUDT = "Date of Cash Desk Closing
I_SEQNO = "Sequence Number
TABLES
* T_DFKKZK = "Payment Lot: Header Data
* T_DFKKZP = "Payment Lot: Data for Payment
* T_DFKKKO = "Header Data for Open Item Accounting Document
* T_DFKKOPK = "Items in contract account document
* T_DFKKZP_ALL = "Structure for Table DFKKZP with Payment Category Enhancement
IMPORTING Parameters details for FKK_GET_POSTED_LINES
I_OFFIC - Branch Office for Incoming Payments
Data type: DFKKCJC-OFFICOptional: No
Call by Reference: Yes
I_CHDSK - Cash Desk
Data type: DFKKCJC-CHDSKOptional: No
Call by Reference: Yes
I_CPUDT - Date of Cash Desk Closing
Data type: DFKKCJC-CPUDTOptional: No
Call by Reference: Yes
I_SEQNO - Sequence Number
Data type: DFKKCJC-SEQNOOptional: No
Call by Reference: Yes
TABLES Parameters details for FKK_GET_POSTED_LINES
T_DFKKZK - Payment Lot: Header Data
Data type: DFKKZKOptional: Yes
Call by Reference: Yes
T_DFKKZP - Payment Lot: Data for Payment
Data type: DFKKZP_PAYTPOptional: Yes
Call by Reference: Yes
T_DFKKKO - Header Data for Open Item Accounting Document
Data type: DFKKKO_PAYTPOptional: Yes
Call by Reference: Yes
T_DFKKOPK - Items in contract account document
Data type: DFKKOPKOptional: Yes
Call by Reference: Yes
T_DFKKZP_ALL - Structure for Table DFKKZP with Payment Category Enhancement
Data type: DFKKZP_PAYTPOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FKK_GET_POSTED_LINES 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_i_offic | TYPE DFKKCJC-OFFIC, " | |||
| lt_t_dfkkzk | TYPE STANDARD TABLE OF DFKKZK, " | |||
| lv_i_chdsk | TYPE DFKKCJC-CHDSK, " | |||
| lt_t_dfkkzp | TYPE STANDARD TABLE OF DFKKZP_PAYTP, " | |||
| lv_i_cpudt | TYPE DFKKCJC-CPUDT, " | |||
| lt_t_dfkkko | TYPE STANDARD TABLE OF DFKKKO_PAYTP, " | |||
| lv_i_seqno | TYPE DFKKCJC-SEQNO, " | |||
| lt_t_dfkkopk | TYPE STANDARD TABLE OF DFKKOPK, " | |||
| lt_t_dfkkzp_all | TYPE STANDARD TABLE OF DFKKZP_PAYTP. " |
|   CALL FUNCTION 'FKK_GET_POSTED_LINES' " |
| EXPORTING | ||
| I_OFFIC | = lv_i_offic | |
| I_CHDSK | = lv_i_chdsk | |
| I_CPUDT | = lv_i_cpudt | |
| I_SEQNO | = lv_i_seqno | |
| TABLES | ||
| T_DFKKZK | = lt_t_dfkkzk | |
| T_DFKKZP | = lt_t_dfkkzp | |
| T_DFKKKO | = lt_t_dfkkko | |
| T_DFKKOPK | = lt_t_dfkkopk | |
| T_DFKKZP_ALL | = lt_t_dfkkzp_all | |
| . " FKK_GET_POSTED_LINES | ||
ABAP code using 7.40 inline data declarations to call FM FKK_GET_POSTED_LINES
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 OFFIC FROM DFKKCJC INTO @DATA(ld_i_offic). | ||||
| "SELECT single CHDSK FROM DFKKCJC INTO @DATA(ld_i_chdsk). | ||||
| "SELECT single CPUDT FROM DFKKCJC INTO @DATA(ld_i_cpudt). | ||||
| "SELECT single SEQNO FROM DFKKCJC INTO @DATA(ld_i_seqno). | ||||
Search for further information about these or an SAP related objects