SAP Function Modules

OBJ_VAR_SUM_LEVEL_SET_DATA SAP Function module







OBJ_VAR_SUM_LEVEL_SET_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OBJ_VAR_SUM_LEVEL_SET_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OBJ1_DISPLAY
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM OBJ_VAR_SUM_LEVEL_SET_DATA - OBJ VAR SUM LEVEL SET DATA





CALL FUNCTION 'OBJ_VAR_SUM_LEVEL_SET_DATA' "
  EXPORTING
    i_objnr =                   " j_objnr       Object Number
    it_kpzp1 =                  " obj_tab_kpzp1  Table for KPZP1
    it_kss04 =                  " obj_tab_kss04  Table for KSS04
    i_kss05 =                   " kss05         Variance Calculation: Posting Rules
    i_kss10 =                   " kss10         Output fields: CO list display variances
    i_kv20a =                   " kv20a         Common Structure in Variance Tables
    i_versn =                   " kss10-awvrs   Target Cost Version
    i_user =                    " c             User
    it_kss05 =                  " obj_tab_kss05
    .  "  OBJ_VAR_SUM_LEVEL_SET_DATA

ABAP code example for Function Module OBJ_VAR_SUM_LEVEL_SET_DATA





The ABAP code below is a full code listing to execute function module OBJ_VAR_SUM_LEVEL_SET_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_i_objnr) = 'Check type of data required'.
DATA(ld_it_kpzp1) = 'Check type of data required'.
DATA(ld_it_kss04) = 'Check type of data required'.
DATA(ld_i_kss05) = 'Check type of data required'.
DATA(ld_i_kss10) = 'Check type of data required'.
DATA(ld_i_kv20a) = 'Check type of data required'.

DATA(ld_i_versn) = some text here
DATA(ld_i_user) = 'Check type of data required'.
DATA(ld_it_kss05) = 'Check type of data required'. . CALL FUNCTION 'OBJ_VAR_SUM_LEVEL_SET_DATA' EXPORTING i_objnr = ld_i_objnr it_kpzp1 = ld_it_kpzp1 it_kss04 = ld_it_kss04 i_kss05 = ld_i_kss05 i_kss10 = ld_i_kss10 i_kv20a = ld_i_kv20a i_versn = ld_i_versn i_user = ld_i_user it_kss05 = ld_it_kss05 . " OBJ_VAR_SUM_LEVEL_SET_DATA
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_objnr  TYPE J_OBJNR ,
ld_it_kpzp1  TYPE OBJ_TAB_KPZP1 ,
ld_it_kss04  TYPE OBJ_TAB_KSS04 ,
ld_i_kss05  TYPE KSS05 ,
ld_i_kss10  TYPE KSS10 ,
ld_i_kv20a  TYPE KV20A ,
ld_i_versn  TYPE KSS10-AWVRS ,
ld_i_user  TYPE C ,
ld_it_kss05  TYPE OBJ_TAB_KSS05 .

ld_i_objnr = 'Check type of data required'.
ld_it_kpzp1 = 'Check type of data required'.
ld_it_kss04 = 'Check type of data required'.
ld_i_kss05 = 'Check type of data required'.
ld_i_kss10 = 'Check type of data required'.
ld_i_kv20a = 'Check type of data required'.

ld_i_versn = some text here
ld_i_user = 'Check type of data required'.
ld_it_kss05 = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OBJ_VAR_SUM_LEVEL_SET_DATA or its description.