SAP K_VARIANCES_FILL_TABLE_KSS03 Function Module for









K_VARIANCES_FILL_TABLE_KSS03 is a standard k variances fill table kss03 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 k variances fill table kss03 FM, simply by entering the name K_VARIANCES_FILL_TABLE_KSS03 into the relevant SAP transaction such as SE37 or SE38.

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



Function K_VARIANCES_FILL_TABLE_KSS03 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 'K_VARIANCES_FILL_TABLE_KSS03'"
EXPORTING
I_USER = "
* I_VERID = ' ' "
* I_PROCNR = ' ' "
* I_KSTRG = ' ' "
* I_WERKS = ' ' "
* I_GJAHR = "
* I_ABWAU = ' ' "
* I_ABWWP = ' ' "
* I_TRG_K = "
* I_TRF_K = "
* I_TRG_O = "
I_KV20A = "
* I_NEW_RESULT_LIST = "
I_OBJNR = "
I_OWAER = "
* I_AUFNR = ' ' "
* I_AUTYP = ' ' "
* I_SAFNR = ' ' "
* I_POSNR = ' ' "
* I_MATNR = ' ' "

CHANGING
* C_OBJ_VAR_ALV = "

TABLES
T_VAR = "
T_ACT = "
T_TAR = "
T_KSS03 = "
* T_ACTL = "
* T_TARL = "
.



IMPORTING Parameters details for K_VARIANCES_FILL_TABLE_KSS03

I_USER -

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

I_VERID -

Data type: RKSABW-VERID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROCNR -

Data type: AUFK-PROCNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KSTRG -

Data type: RKSABW-KSTRG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WERKS -

Data type: RKSABW-WERKS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR -

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

I_ABWAU -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ABWWP -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRG_K -

Data type: RKSABW-TRG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRF_K -

Data type: RKSABW-TRF
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRG_O -

Data type: RKSABW-TRG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KV20A -

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

I_NEW_RESULT_LIST -

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

I_OBJNR -

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

I_OWAER -

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

I_AUFNR -

Data type: RKSABW-AUFNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUTYP -

Data type: AUFK-AUTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SAFNR -

Data type: RKSABW-SAFNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POSNR -

Data type: RKSABW-POSNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MATNR -

Data type: RKSABW-MATNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for K_VARIANCES_FILL_TABLE_KSS03

C_OBJ_VAR_ALV -

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

TABLES Parameters details for K_VARIANCES_FILL_TABLE_KSS03

T_VAR -

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

T_ACT -

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

T_TAR -

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

T_KSS03 -

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

T_ACTL -

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

T_TARL -

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

Copy and paste ABAP code example for K_VARIANCES_FILL_TABLE_KSS03 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_t_var  TYPE STANDARD TABLE OF KV013, "   
lv_i_user  TYPE KV013, "   
lv_c_obj_var_alv  TYPE OBJ_VAR_ALV_TAB, "   
lv_i_verid  TYPE RKSABW-VERID, "   SPACE
lv_i_procnr  TYPE AUFK-PROCNR, "   SPACE
lv_i_kstrg  TYPE RKSABW-KSTRG, "   SPACE
lv_i_werks  TYPE RKSABW-WERKS, "   SPACE
lv_i_gjahr  TYPE CCSS-GJAHR, "   
lv_i_abwau  TYPE CCSS, "   SPACE
lv_i_abwwp  TYPE CCSS, "   SPACE
lv_i_trg_k  TYPE RKSABW-TRG, "   
lv_i_trf_k  TYPE RKSABW-TRF, "   
lv_i_trg_o  TYPE RKSABW-TRG, "   
lt_t_act  TYPE STANDARD TABLE OF KV012, "   
lv_i_kv20a  TYPE KV20A, "   
lv_i_new_result_list  TYPE XFLAG, "   
lt_t_tar  TYPE STANDARD TABLE OF KV012, "   
lv_i_objnr  TYPE RKSABW-OBJNR, "   
lv_i_owaer  TYPE CCSS-OWAER, "   
lt_t_kss03  TYPE STANDARD TABLE OF KSS03, "   
lt_t_actl  TYPE STANDARD TABLE OF KV011, "   
lv_i_aufnr  TYPE RKSABW-AUFNR, "   SPACE
lt_t_tarl  TYPE STANDARD TABLE OF KV011, "   
lv_i_autyp  TYPE AUFK-AUTYP, "   SPACE
lv_i_safnr  TYPE RKSABW-SAFNR, "   SPACE
lv_i_posnr  TYPE RKSABW-POSNR, "   SPACE
lv_i_matnr  TYPE RKSABW-MATNR. "   SPACE

  CALL FUNCTION 'K_VARIANCES_FILL_TABLE_KSS03'  "
    EXPORTING
         I_USER = lv_i_user
         I_VERID = lv_i_verid
         I_PROCNR = lv_i_procnr
         I_KSTRG = lv_i_kstrg
         I_WERKS = lv_i_werks
         I_GJAHR = lv_i_gjahr
         I_ABWAU = lv_i_abwau
         I_ABWWP = lv_i_abwwp
         I_TRG_K = lv_i_trg_k
         I_TRF_K = lv_i_trf_k
         I_TRG_O = lv_i_trg_o
         I_KV20A = lv_i_kv20a
         I_NEW_RESULT_LIST = lv_i_new_result_list
         I_OBJNR = lv_i_objnr
         I_OWAER = lv_i_owaer
         I_AUFNR = lv_i_aufnr
         I_AUTYP = lv_i_autyp
         I_SAFNR = lv_i_safnr
         I_POSNR = lv_i_posnr
         I_MATNR = lv_i_matnr
    CHANGING
         C_OBJ_VAR_ALV = lv_c_obj_var_alv
    TABLES
         T_VAR = lt_t_var
         T_ACT = lt_t_act
         T_TAR = lt_t_tar
         T_KSS03 = lt_t_kss03
         T_ACTL = lt_t_actl
         T_TARL = lt_t_tarl
. " K_VARIANCES_FILL_TABLE_KSS03




ABAP code using 7.40 inline data declarations to call FM K_VARIANCES_FILL_TABLE_KSS03

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 VERID FROM RKSABW INTO @DATA(ld_i_verid).
DATA(ld_i_verid) = ' '.
 
"SELECT single PROCNR FROM AUFK INTO @DATA(ld_i_procnr).
DATA(ld_i_procnr) = ' '.
 
"SELECT single KSTRG FROM RKSABW INTO @DATA(ld_i_kstrg).
DATA(ld_i_kstrg) = ' '.
 
"SELECT single WERKS FROM RKSABW INTO @DATA(ld_i_werks).
DATA(ld_i_werks) = ' '.
 
"SELECT single GJAHR FROM CCSS INTO @DATA(ld_i_gjahr).
 
DATA(ld_i_abwau) = ' '.
 
DATA(ld_i_abwwp) = ' '.
 
"SELECT single TRG FROM RKSABW INTO @DATA(ld_i_trg_k).
 
"SELECT single TRF FROM RKSABW INTO @DATA(ld_i_trf_k).
 
"SELECT single TRG FROM RKSABW INTO @DATA(ld_i_trg_o).
 
 
 
 
 
"SELECT single OBJNR FROM RKSABW INTO @DATA(ld_i_objnr).
 
"SELECT single OWAER FROM CCSS INTO @DATA(ld_i_owaer).
 
 
 
"SELECT single AUFNR FROM RKSABW INTO @DATA(ld_i_aufnr).
DATA(ld_i_aufnr) = ' '.
 
 
"SELECT single AUTYP FROM AUFK INTO @DATA(ld_i_autyp).
DATA(ld_i_autyp) = ' '.
 
"SELECT single SAFNR FROM RKSABW INTO @DATA(ld_i_safnr).
DATA(ld_i_safnr) = ' '.
 
"SELECT single POSNR FROM RKSABW INTO @DATA(ld_i_posnr).
DATA(ld_i_posnr) = ' '.
 
"SELECT single MATNR FROM RKSABW INTO @DATA(ld_i_matnr).
DATA(ld_i_matnr) = ' '.
 


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!