SAP FKK_SAMPLE_0800 Function Module for Security Deposit: Transaction Determination
FKK_SAMPLE_0800 is a standard fkk sample 0800 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Security Deposit: Transaction Determination 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 0800 FM, simply by entering the name FKK_SAMPLE_0800 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKML
Program Name: SAPLFKML
Main Program: SAPLFKML
Appliation area: F
Release date: 03-Nov-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_SAMPLE_0800 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_0800'"Security Deposit: Transaction Determination.
EXPORTING
I_FKKOP = "Document Data
* I_FKK_SEC = "Security Deposit
IMPORTING
E_HVORG = "Main Transaction
E_TVORG = "Subtransaction
E_OPTXT = "Item Text
E_BLDAT = "Document Date
E_BUDAT = "Posting Date
EXCEPTIONS
ACTIVITY_NOT_FOUND = 1
IMPORTING Parameters details for FKK_SAMPLE_0800
I_FKKOP - Document Data
Data type: FKKOPOptional: No
Call by Reference: No ( called with pass by value option)
I_FKK_SEC - Security Deposit
Data type: FKK_SECOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_SAMPLE_0800
E_HVORG - Main Transaction
Data type: TFKHVO-HVORGOptional: No
Call by Reference: No ( called with pass by value option)
E_TVORG - Subtransaction
Data type: TFKTVO-TVORGOptional: No
Call by Reference: No ( called with pass by value option)
E_OPTXT - Item Text
Data type: FKKOP-OPTXTOptional: No
Call by Reference: No ( called with pass by value option)
E_BLDAT - Document Date
Data type: FKKOP-BLDATOptional: No
Call by Reference: No ( called with pass by value option)
E_BUDAT - Posting Date
Data type: FKKOP-BUDATOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ACTIVITY_NOT_FOUND - Could Not Determine Transaction
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_SAMPLE_0800 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_hvorg | TYPE TFKHVO-HVORG, " | |||
| lv_i_fkkop | TYPE FKKOP, " | |||
| lv_activity_not_found | TYPE FKKOP, " | |||
| lv_e_tvorg | TYPE TFKTVO-TVORG, " | |||
| lv_i_fkk_sec | TYPE FKK_SEC, " | |||
| lv_e_optxt | TYPE FKKOP-OPTXT, " | |||
| lv_e_bldat | TYPE FKKOP-BLDAT, " | |||
| lv_e_budat | TYPE FKKOP-BUDAT. " |
|   CALL FUNCTION 'FKK_SAMPLE_0800' "Security Deposit: Transaction Determination |
| EXPORTING | ||
| I_FKKOP | = lv_i_fkkop | |
| I_FKK_SEC | = lv_i_fkk_sec | |
| IMPORTING | ||
| E_HVORG | = lv_e_hvorg | |
| E_TVORG | = lv_e_tvorg | |
| E_OPTXT | = lv_e_optxt | |
| E_BLDAT | = lv_e_bldat | |
| E_BUDAT | = lv_e_budat | |
| EXCEPTIONS | ||
| ACTIVITY_NOT_FOUND = 1 | ||
| . " FKK_SAMPLE_0800 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0800
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 HVORG FROM TFKHVO INTO @DATA(ld_e_hvorg). | ||||
| "SELECT single TVORG FROM TFKTVO INTO @DATA(ld_e_tvorg). | ||||
| "SELECT single OPTXT FROM FKKOP INTO @DATA(ld_e_optxt). | ||||
| "SELECT single BLDAT FROM FKKOP INTO @DATA(ld_e_bldat). | ||||
| "SELECT single BUDAT FROM FKKOP INTO @DATA(ld_e_budat). | ||||
Search for further information about these or an SAP related objects