SAP FCOM_EXP_KEYFIG_KSTAR Function Module for









FCOM_EXP_KEYFIG_KSTAR is a standard fcom exp keyfig kstar 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 fcom exp keyfig kstar FM, simply by entering the name FCOM_EXP_KEYFIG_KSTAR into the relevant SAP transaction such as SE37 or SE38.

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



Function FCOM_EXP_KEYFIG_KSTAR 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 'FCOM_EXP_KEYFIG_KSTAR'"
EXPORTING
ID_UNAME = "
ID_KOKRS = "
ID_FISC_YEAR = "
ID_VERSION = "

IMPORTING
ED_RETURN_CODE = "

TABLES
IT_KOSTL = "
IT_DTA_KEY_FIGURE = "
ET_CSKB_EX = "
ET_MESSAGE_RETURN = "
.



IMPORTING Parameters details for FCOM_EXP_KEYFIG_KSTAR

ID_UNAME -

Data type: SY-UNAME
Optional: No
Call by Reference: No ( called with pass by value option)

ID_KOKRS -

Data type: TKA01-KOKRS
Optional: No
Call by Reference: No ( called with pass by value option)

ID_FISC_YEAR -

Data type: TKA07-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

ID_VERSION -

Data type: TKA09-VERSN
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FCOM_EXP_KEYFIG_KSTAR

ED_RETURN_CODE -

Data type: FCOM_PLAN_KSTAR_EXT-FLAG
Optional: No
Call by Reference: Yes

TABLES Parameters details for FCOM_EXP_KEYFIG_KSTAR

IT_KOSTL -

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

IT_DTA_KEY_FIGURE -

Data type: FCOM_EXP_STAGR
Optional: No
Call by Reference: No ( called with pass by value option)

ET_CSKB_EX -

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

ET_MESSAGE_RETURN -

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

Copy and paste ABAP code example for FCOM_EXP_KEYFIG_KSTAR 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_id_uname  TYPE SY-UNAME, "   
lt_it_kostl  TYPE STANDARD TABLE OF FCOM_S_EXP_KOSTL, "   
lv_ed_return_code  TYPE FCOM_PLAN_KSTAR_EXT-FLAG, "   
lv_id_kokrs  TYPE TKA01-KOKRS, "   
lt_it_dta_key_figure  TYPE STANDARD TABLE OF FCOM_EXP_STAGR, "   
lt_et_cskb_ex  TYPE STANDARD TABLE OF CSKB_EX, "   
lv_id_fisc_year  TYPE TKA07-GJAHR, "   
lv_id_version  TYPE TKA09-VERSN, "   
lt_et_message_return  TYPE STANDARD TABLE OF BAPIRETURN1. "   

  CALL FUNCTION 'FCOM_EXP_KEYFIG_KSTAR'  "
    EXPORTING
         ID_UNAME = lv_id_uname
         ID_KOKRS = lv_id_kokrs
         ID_FISC_YEAR = lv_id_fisc_year
         ID_VERSION = lv_id_version
    IMPORTING
         ED_RETURN_CODE = lv_ed_return_code
    TABLES
         IT_KOSTL = lt_it_kostl
         IT_DTA_KEY_FIGURE = lt_it_dta_key_figure
         ET_CSKB_EX = lt_et_cskb_ex
         ET_MESSAGE_RETURN = lt_et_message_return
. " FCOM_EXP_KEYFIG_KSTAR




ABAP code using 7.40 inline data declarations to call FM FCOM_EXP_KEYFIG_KSTAR

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 UNAME FROM SY INTO @DATA(ld_id_uname).
 
 
"SELECT single FLAG FROM FCOM_PLAN_KSTAR_EXT INTO @DATA(ld_ed_return_code).
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_id_kokrs).
 
 
 
"SELECT single GJAHR FROM TKA07 INTO @DATA(ld_id_fisc_year).
 
"SELECT single VERSN FROM TKA09 INTO @DATA(ld_id_version).
 
 


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!