SAP FKK_SAMPLE_6140 Function Module for









FKK_SAMPLE_6140 is a standard fkk sample 6140 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 sample 6140 FM, simply by entering the name FKK_SAMPLE_6140 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKH2
Program Name: SAPLFKH2
Main Program: SAPLFKH2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_SAMPLE_6140 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_6140'"
EXPORTING
X_CHECKS_ONLY = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
X_PRCTP = "
* X_OPBEL = "Number of a Contract Accounts Receivable and Payable Document
* X_WAERS = "Transaction Currency
* X_BETRW = "Amount in Transaction Currency with +/- Sign
* X_RFKH0 = "

TABLES
* TX_DFKKZK = "Transaction Data for Cash Journal
* TX_DFKKCJT = "Transaction Data for Cash Journal
* TX_DFKKCJF = "
* TX_DFKKCJM = "
.



IMPORTING Parameters details for FKK_SAMPLE_6140

X_CHECKS_ONLY - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')

Data type: BOOLE-BOOLE
Optional: No
Call by Reference: Yes

X_PRCTP -

Data type: CHAR2
Optional: No
Call by Reference: Yes

X_OPBEL - Number of a Contract Accounts Receivable and Payable Document

Data type: OPBEL_KK
Optional: Yes
Call by Reference: Yes

X_WAERS - Transaction Currency

Data type: WAERS
Optional: Yes
Call by Reference: Yes

X_BETRW - Amount in Transaction Currency with +/- Sign

Data type: BETRW_KK
Optional: Yes
Call by Reference: Yes

X_RFKH0 -

Data type: RFKH0
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FKK_SAMPLE_6140

TX_DFKKZK - Transaction Data for Cash Journal

Data type: DFKKZK
Optional: Yes
Call by Reference: Yes

TX_DFKKCJT - Transaction Data for Cash Journal

Data type: DFKKCJT
Optional: Yes
Call by Reference: Yes

TX_DFKKCJF -

Data type: DFKKCJF
Optional: Yes
Call by Reference: Yes

TX_DFKKCJM -

Data type: DFKKCJM
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FKK_SAMPLE_6140 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:
lt_tx_dfkkzk  TYPE STANDARD TABLE OF DFKKZK, "   
lv_x_checks_only  TYPE BOOLE-BOOLE, "   
lv_x_prctp  TYPE CHAR2, "   
lt_tx_dfkkcjt  TYPE STANDARD TABLE OF DFKKCJT, "   
lv_x_opbel  TYPE OPBEL_KK, "   
lt_tx_dfkkcjf  TYPE STANDARD TABLE OF DFKKCJF, "   
lv_x_waers  TYPE WAERS, "   
lt_tx_dfkkcjm  TYPE STANDARD TABLE OF DFKKCJM, "   
lv_x_betrw  TYPE BETRW_KK, "   
lv_x_rfkh0  TYPE RFKH0. "   

  CALL FUNCTION 'FKK_SAMPLE_6140'  "
    EXPORTING
         X_CHECKS_ONLY = lv_x_checks_only
         X_PRCTP = lv_x_prctp
         X_OPBEL = lv_x_opbel
         X_WAERS = lv_x_waers
         X_BETRW = lv_x_betrw
         X_RFKH0 = lv_x_rfkh0
    TABLES
         TX_DFKKZK = lt_tx_dfkkzk
         TX_DFKKCJT = lt_tx_dfkkcjt
         TX_DFKKCJF = lt_tx_dfkkcjf
         TX_DFKKCJM = lt_tx_dfkkcjm
. " FKK_SAMPLE_6140




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_6140

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 BOOLE FROM BOOLE INTO @DATA(ld_x_checks_only).
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!