SAP Function Modules

KJCCSJ3_BI01_EGVB_BUFFER_SET SAP Function module - Reestimation: Write EGVB to Buffer







KJCCSJ3_BI01_EGVB_BUFFER_SET 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 KJCCSJ3_BI01_EGVB_BUFFER_SET into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM KJCCSJ3_BI01_EGVB_BUFFER_SET - KJCCSJ3 BI01 EGVB BUFFER SET





CALL FUNCTION 'KJCCSJ3_BI01_EGVB_BUFFER_SET' "Reestimation: Write EGVB to Buffer
  EXPORTING
*   x_geraet =                  " v_eger-geraet  Serial Number
*   x_equnr =                   " eabl-equnr    Equipment Number
*   x_zwnummer =                " eabl-zwnummer  Register
*   x_adatvon =                 " eabl-adat     Meter Reading Date Relevant to Billing
*   x_i_valvon =                " eablh-i_zwsterw  Expected Meter Reading: Internal Format
*   x_adatbis =                 " eabl-adat     Meter Reading Date Relevant to Billing
*   x_i_valbis =                " eablh-i_zwsterw  Expected Meter Reading: Internal Format
*   x_gewverf =                 " te266-gewverf  Weighting procedures
*   x_gewkey =                  " te266-gewkey  Weighting Keys
*   x_anlage =                  " eanl-anlage   Installation
    x_egvb_gv =                 " eablh-i_zwsterw  Expected Meter Reading: Internal Format
    x_egvb_ln =                 " eablh-i_zwsterw  Expected Meter Reading: Internal Format
    x_consum_real =             " eablh-i_verberw  Expected Consumption: Internal Format
    x_consum_linear =           " eablh-i_verberw  Expected Consumption: Internal Format
    x_total_weight =            " eablh-i_verberw  Expected Consumption: Internal Format
*   x_bp =                      " rea00-break
*   x_disconnected =            " regen-kennzx  Indicator
*   x_wablt =                   " isu2a_ablt
*   x_wthg =                    " isufg_thg
*   x_inst_for_billing =        " isu2a_inst_struc  Installation Structure of an Installation from Billing View
* TABLES
*   t_v_ediscobj =              " v_ediscobj
*   t_vactab =                  " vacstruc      Vacant Periods
  EXCEPTIONS
    GENERAL_FAULT = 1           "               General Error
    .  "  KJCCSJ3_BI01_EGVB_BUFFER_SET

ABAP code example for Function Module KJCCSJ3_BI01_EGVB_BUFFER_SET





The ABAP code below is a full code listing to execute function module KJCCSJ3_BI01_EGVB_BUFFER_SET 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:
it_t_v_ediscobj  TYPE STANDARD TABLE OF V_EDISCOBJ,"TABLES PARAM
wa_t_v_ediscobj  LIKE LINE OF it_t_v_ediscobj ,
it_t_vactab  TYPE STANDARD TABLE OF VACSTRUC,"TABLES PARAM
wa_t_vactab  LIKE LINE OF it_t_vactab .


SELECT single GERAET
FROM V_EGER
INTO @DATA(ld_x_geraet).


SELECT single EQUNR
FROM EABL
INTO @DATA(ld_x_equnr).


SELECT single ZWNUMMER
FROM EABL
INTO @DATA(ld_x_zwnummer).


SELECT single ADAT
FROM EABL
INTO @DATA(ld_x_adatvon).


DATA(ld_x_i_valvon) = Check type of data required

SELECT single ADAT
FROM EABL
INTO @DATA(ld_x_adatbis).


DATA(ld_x_i_valbis) = Check type of data required

SELECT single GEWVERF
FROM TE266
INTO @DATA(ld_x_gewverf).


SELECT single GEWKEY
FROM TE266
INTO @DATA(ld_x_gewkey).


SELECT single ANLAGE
FROM EANL
INTO @DATA(ld_x_anlage).


DATA(ld_x_egvb_gv) = Check type of data required

DATA(ld_x_egvb_ln) = Check type of data required

DATA(ld_x_consum_real) = Check type of data required

DATA(ld_x_consum_linear) = Check type of data required

DATA(ld_x_total_weight) = Check type of data required

DATA(ld_x_bp) = some text here

DATA(ld_x_disconnected) = some text here
DATA(ld_x_wablt) = 'Check type of data required'.
DATA(ld_x_wthg) = 'Check type of data required'.
DATA(ld_x_inst_for_billing) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_v_ediscobj to it_t_v_ediscobj.

"populate fields of struture and append to itab
append wa_t_vactab to it_t_vactab. . CALL FUNCTION 'KJCCSJ3_BI01_EGVB_BUFFER_SET' EXPORTING * x_geraet = ld_x_geraet * x_equnr = ld_x_equnr * x_zwnummer = ld_x_zwnummer * x_adatvon = ld_x_adatvon * x_i_valvon = ld_x_i_valvon * x_adatbis = ld_x_adatbis * x_i_valbis = ld_x_i_valbis * x_gewverf = ld_x_gewverf * x_gewkey = ld_x_gewkey * x_anlage = ld_x_anlage x_egvb_gv = ld_x_egvb_gv x_egvb_ln = ld_x_egvb_ln x_consum_real = ld_x_consum_real x_consum_linear = ld_x_consum_linear x_total_weight = ld_x_total_weight * x_bp = ld_x_bp * x_disconnected = ld_x_disconnected * x_wablt = ld_x_wablt * x_wthg = ld_x_wthg * x_inst_for_billing = ld_x_inst_for_billing * TABLES * t_v_ediscobj = it_t_v_ediscobj * t_vactab = it_t_vactab EXCEPTIONS GENERAL_FAULT = 1 . " KJCCSJ3_BI01_EGVB_BUFFER_SET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_x_geraet  TYPE V_EGER-GERAET ,
it_t_v_ediscobj  TYPE STANDARD TABLE OF V_EDISCOBJ ,
wa_t_v_ediscobj  LIKE LINE OF it_t_v_ediscobj,
ld_x_equnr  TYPE EABL-EQUNR ,
it_t_vactab  TYPE STANDARD TABLE OF VACSTRUC ,
wa_t_vactab  LIKE LINE OF it_t_vactab,
ld_x_zwnummer  TYPE EABL-ZWNUMMER ,
ld_x_adatvon  TYPE EABL-ADAT ,
ld_x_i_valvon  TYPE EABLH-I_ZWSTERW ,
ld_x_adatbis  TYPE EABL-ADAT ,
ld_x_i_valbis  TYPE EABLH-I_ZWSTERW ,
ld_x_gewverf  TYPE TE266-GEWVERF ,
ld_x_gewkey  TYPE TE266-GEWKEY ,
ld_x_anlage  TYPE EANL-ANLAGE ,
ld_x_egvb_gv  TYPE EABLH-I_ZWSTERW ,
ld_x_egvb_ln  TYPE EABLH-I_ZWSTERW ,
ld_x_consum_real  TYPE EABLH-I_VERBERW ,
ld_x_consum_linear  TYPE EABLH-I_VERBERW ,
ld_x_total_weight  TYPE EABLH-I_VERBERW ,
ld_x_bp  TYPE REA00-BREAK ,
ld_x_disconnected  TYPE REGEN-KENNZX ,
ld_x_wablt  TYPE ISU2A_ABLT ,
ld_x_wthg  TYPE ISUFG_THG ,
ld_x_inst_for_billing  TYPE ISU2A_INST_STRUC .


SELECT single GERAET
FROM V_EGER
INTO ld_x_geraet.


"populate fields of struture and append to itab
append wa_t_v_ediscobj to it_t_v_ediscobj.

SELECT single EQUNR
FROM EABL
INTO ld_x_equnr.


"populate fields of struture and append to itab
append wa_t_vactab to it_t_vactab.

SELECT single ZWNUMMER
FROM EABL
INTO ld_x_zwnummer.


SELECT single ADAT
FROM EABL
INTO ld_x_adatvon.


ld_x_i_valvon = Check type of data required

SELECT single ADAT
FROM EABL
INTO ld_x_adatbis.


ld_x_i_valbis = Check type of data required

SELECT single GEWVERF
FROM TE266
INTO ld_x_gewverf.


SELECT single GEWKEY
FROM TE266
INTO ld_x_gewkey.


SELECT single ANLAGE
FROM EANL
INTO ld_x_anlage.


ld_x_egvb_gv = Check type of data required

ld_x_egvb_ln = Check type of data required

ld_x_consum_real = Check type of data required

ld_x_consum_linear = Check type of data required

ld_x_total_weight = Check type of data required

ld_x_bp = some text here

ld_x_disconnected = some text here
ld_x_wablt = 'Check type of data required'.
ld_x_wthg = 'Check type of data required'.
ld_x_inst_for_billing = '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 KJCCSJ3_BI01_EGVB_BUFFER_SET or its description.