SAP FKK_TRANSACTIONS_DETERMINE_SD Function Module for









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

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



Function FKK_TRANSACTIONS_DETERMINE_SD 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_TRANSACTIONS_DETERMINE_SD'"
EXPORTING
I_FKART = "Billing Type
I_PSTYV = "Sales document item category
I_KTGRM = "Account assignment group for this material
I_KVSL1 = "Account Key
* I_APPLK = ' ' "Application Area

IMPORTING
E_HVORG = "Main Transaction for Line Item
E_TVORG = "Subtransaction for Line Item

EXCEPTIONS
ERROR_01 = 1
.



IMPORTING Parameters details for FKK_TRANSACTIONS_DETERMINE_SD

I_FKART - Billing Type

Data type: TVFK-FKART
Optional: No
Call by Reference: Yes

I_PSTYV - Sales document item category

Data type: TVPT-PSTYV
Optional: No
Call by Reference: Yes

I_KTGRM - Account assignment group for this material

Data type: TVKM-KTGRM
Optional: No
Call by Reference: Yes

I_KVSL1 - Account Key

Data type: T687-KVSL1
Optional: No
Call by Reference: Yes

I_APPLK - Application Area

Data type: FKKKO-APPLK
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FKK_TRANSACTIONS_DETERMINE_SD

E_HVORG - Main Transaction for Line Item

Data type: TFKHVO-HVORG
Optional: No
Call by Reference: Yes

E_TVORG - Subtransaction for Line Item

Data type: TFKTVO-TVORG
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR_01 -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FKK_TRANSACTIONS_DETERMINE_SD 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_fkart  TYPE TVFK-FKART, "   
lv_error_01  TYPE TVFK, "   
lv_e_tvorg  TYPE TFKTVO-TVORG, "   
lv_i_pstyv  TYPE TVPT-PSTYV, "   
lv_i_ktgrm  TYPE TVKM-KTGRM, "   
lv_i_kvsl1  TYPE T687-KVSL1, "   
lv_i_applk  TYPE FKKKO-APPLK. "   SPACE

  CALL FUNCTION 'FKK_TRANSACTIONS_DETERMINE_SD'  "
    EXPORTING
         I_FKART = lv_i_fkart
         I_PSTYV = lv_i_pstyv
         I_KTGRM = lv_i_ktgrm
         I_KVSL1 = lv_i_kvsl1
         I_APPLK = lv_i_applk
    IMPORTING
         E_HVORG = lv_e_hvorg
         E_TVORG = lv_e_tvorg
    EXCEPTIONS
        ERROR_01 = 1
. " FKK_TRANSACTIONS_DETERMINE_SD




ABAP code using 7.40 inline data declarations to call FM FKK_TRANSACTIONS_DETERMINE_SD

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 FKART FROM TVFK INTO @DATA(ld_i_fkart).
 
 
"SELECT single TVORG FROM TFKTVO INTO @DATA(ld_e_tvorg).
 
"SELECT single PSTYV FROM TVPT INTO @DATA(ld_i_pstyv).
 
"SELECT single KTGRM FROM TVKM INTO @DATA(ld_i_ktgrm).
 
"SELECT single KVSL1 FROM T687 INTO @DATA(ld_i_kvsl1).
 
"SELECT single APPLK FROM FKKKO INTO @DATA(ld_i_applk).
DATA(ld_i_applk) = ' '.
 


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!