SAP FKK_SAMPLE_3033 Function Module for









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

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



Function FKK_SAMPLE_3033 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_3033'"
EXPORTING
* CHARGE_TYPE = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_WAERS = "Screen fields for FPN1 - FI-CA installment plan
* I_ORIG_BETRW = "Amount in Transaction Currency with +/- Sign
* I_STTDT = "Start Date of Installment Plan

CHANGING
* FINE_BETRW = "Amount in Transaction Currency with +/- Sign
* FINE_HVORG = "Main Transaction for Line Item
* FINE_TVORG = "Subtransaction for Line Item
* CV_BETRW = "Amount in Transaction Currency with +/- Sign
* CV_HVORG = "Main Transaction for Line Item
* CV_TVORG = "Subtransaction for Line Item

TABLES
* CV_FKKOP = "Business Partner Items in Contract Account Document
* CV_FKKFH = "FI-CA: Table of Fine History
.



IMPORTING Parameters details for FKK_SAMPLE_3033

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

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

I_WAERS - Screen fields for FPN1 - FI-CA installment plan

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

I_ORIG_BETRW - Amount in Transaction Currency with +/- Sign

Data type: FKKOP-BETRW
Optional: Yes
Call by Reference: Yes

I_STTDT - Start Date of Installment Plan

Data type: RFKN1-STTDT
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for FKK_SAMPLE_3033

FINE_BETRW - Amount in Transaction Currency with +/- Sign

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

FINE_HVORG - Main Transaction for Line Item

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

FINE_TVORG - Subtransaction for Line Item

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

CV_BETRW - Amount in Transaction Currency with +/- Sign

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

CV_HVORG - Main Transaction for Line Item

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

CV_TVORG - Subtransaction for Line Item

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

TABLES Parameters details for FKK_SAMPLE_3033

CV_FKKOP - Business Partner Items in Contract Account Document

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

CV_FKKFH - FI-CA: Table of Fine History

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

Copy and paste ABAP code example for FKK_SAMPLE_3033 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_cv_fkkop  TYPE STANDARD TABLE OF FKKOP, "   
lv_fine_betrw  TYPE BETRW_KK, "   
lv_charge_type  TYPE CHAR1, "   
lv_i_waers  TYPE FKKOP-WAERS, "   
lt_cv_fkkfh  TYPE STANDARD TABLE OF DFKKFH, "   
lv_fine_hvorg  TYPE HVORG_KK, "   
lv_fine_tvorg  TYPE TVORG_KK, "   
lv_i_orig_betrw  TYPE FKKOP-BETRW, "   
lv_i_sttdt  TYPE RFKN1-STTDT, "   
lv_cv_betrw  TYPE BETRW_KK, "   
lv_cv_hvorg  TYPE HVORG_KK, "   
lv_cv_tvorg  TYPE TVORG_KK. "   

  CALL FUNCTION 'FKK_SAMPLE_3033'  "
    EXPORTING
         CHARGE_TYPE = lv_charge_type
         I_WAERS = lv_i_waers
         I_ORIG_BETRW = lv_i_orig_betrw
         I_STTDT = lv_i_sttdt
    CHANGING
         FINE_BETRW = lv_fine_betrw
         FINE_HVORG = lv_fine_hvorg
         FINE_TVORG = lv_fine_tvorg
         CV_BETRW = lv_cv_betrw
         CV_HVORG = lv_cv_hvorg
         CV_TVORG = lv_cv_tvorg
    TABLES
         CV_FKKOP = lt_cv_fkkop
         CV_FKKFH = lt_cv_fkkfh
. " FKK_SAMPLE_3033




ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_3033

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 WAERS FROM FKKOP INTO @DATA(ld_i_waers).
 
 
 
 
"SELECT single BETRW FROM FKKOP INTO @DATA(ld_i_orig_betrw).
 
"SELECT single STTDT FROM RFKN1 INTO @DATA(ld_i_sttdt).
 
 
 
 


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!