SAP FKK_SAMPLE_6308 Function Module for Brazil: Select Open Items for Boleto
FKK_SAMPLE_6308 is a standard fkk sample 6308 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Brazil: Select Open Items for Boleto processing and below is the pattern details for this FM, 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 sample 6308 FM, simply by entering the name FKK_SAMPLE_6308 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKYBR7
Program Name: SAPLFKYBR7
Main Program: SAPLFKYBR7
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_SAMPLE_6308 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_SAMPLE_6308'"Brazil: Select Open Items for Boleto.
EXPORTING
IV_APPLK = "Application area
* IV_PYMET = "Customer identification in the Company
* IT_OPBEL_RANGE = "Document Number Range Table
* IT_GPART_RANGE = "Range Table GPART
* IT_VKONT_RANGE = "Range Table VKONT
* IT_VTREF_RANGE = "Range Table Type VTREF
* IT_BUKRS_RANGE = "Range Table Company Code
IMPORTING
ET_FKKCL = "Table with Clearing Information
EV_PROCESSED = "X = FM has processed this event
IMPORTING Parameters details for FKK_SAMPLE_6308
IV_APPLK - Application area
Data type: APPLK_KKOptional: No
Call by Reference: Yes
IV_PYMET - Customer identification in the Company
Data type: DFKKBOH-PYMETOptional: Yes
Call by Reference: Yes
IT_OPBEL_RANGE - Document Number Range Table
Data type: FKK_RT_OPBELOptional: Yes
Call by Reference: Yes
IT_GPART_RANGE - Range Table GPART
Data type: FKK_RT_GPARTOptional: Yes
Call by Reference: Yes
IT_VKONT_RANGE - Range Table VKONT
Data type: FKK_RT_VKONTOptional: Yes
Call by Reference: Yes
IT_VTREF_RANGE - Range Table Type VTREF
Data type: FKK_RT_VTREFOptional: Yes
Call by Reference: Yes
IT_BUKRS_RANGE - Range Table Company Code
Data type: FKK_RT_BUKRSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FKK_SAMPLE_6308
ET_FKKCL - Table with Clearing Information
Data type: FKKCL_TOptional: No
Call by Reference: Yes
EV_PROCESSED - X = FM has processed this event
Data type: BOOLE_DOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_SAMPLE_6308 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_et_fkkcl | TYPE FKKCL_T, " | |||
| lv_iv_applk | TYPE APPLK_KK, " | |||
| lv_iv_pymet | TYPE DFKKBOH-PYMET, " | |||
| lv_ev_processed | TYPE BOOLE_D, " | |||
| lv_it_opbel_range | TYPE FKK_RT_OPBEL, " | |||
| lv_it_gpart_range | TYPE FKK_RT_GPART, " | |||
| lv_it_vkont_range | TYPE FKK_RT_VKONT, " | |||
| lv_it_vtref_range | TYPE FKK_RT_VTREF, " | |||
| lv_it_bukrs_range | TYPE FKK_RT_BUKRS. " |
|   CALL FUNCTION 'FKK_SAMPLE_6308' "Brazil: Select Open Items for Boleto |
| EXPORTING | ||
| IV_APPLK | = lv_iv_applk | |
| IV_PYMET | = lv_iv_pymet | |
| IT_OPBEL_RANGE | = lv_it_opbel_range | |
| IT_GPART_RANGE | = lv_it_gpart_range | |
| IT_VKONT_RANGE | = lv_it_vkont_range | |
| IT_VTREF_RANGE | = lv_it_vtref_range | |
| IT_BUKRS_RANGE | = lv_it_bukrs_range | |
| IMPORTING | ||
| ET_FKKCL | = lv_et_fkkcl | |
| EV_PROCESSED | = lv_ev_processed | |
| . " FKK_SAMPLE_6308 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_6308
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 PYMET FROM DFKKBOH INTO @DATA(ld_iv_pymet). | ||||
Search for further information about these or an SAP related objects