SAP VAR_TRANS_CALC_STRUC_FILL Function Module for Variables Geschäft: Füllen der Kalkulationsstruktur









VAR_TRANS_CALC_STRUC_FILL is a standard var trans calc struc fill SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Variables Geschäft: Füllen der Kalkulationsstruktur processing and below is the pattern details for this FM, 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 var trans calc struc fill FM, simply by entering the name VAR_TRANS_CALC_STRUC_FILL into the relevant SAP transaction such as SE37 or SE38.

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



Function VAR_TRANS_CALC_STRUC_FILL 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 'VAR_TRANS_CALC_STRUC_FILL'"Variables Geschäft: Füllen der Kalkulationsstruktur
EXPORTING
IP_CALC_BEG = "
IP_CALC_END = "
IP_BUPER = "
IP_GJAHR = "
IP_WHWAER = "

TABLES
TCP_CALC_STRUC = "
TRP_JBTKREG = "
* ETP_VTMADA = "Variables Geschäft - Stammdaten
.



IMPORTING Parameters details for VAR_TRANS_CALC_STRUC_FILL

IP_CALC_BEG -

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

IP_CALC_END -

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

IP_BUPER -

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

IP_GJAHR -

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

IP_WHWAER -

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

TABLES Parameters details for VAR_TRANS_CALC_STRUC_FILL

TCP_CALC_STRUC -

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

TRP_JBTKREG -

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

ETP_VTMADA - Variables Geschäft - Stammdaten

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

Copy and paste ABAP code example for VAR_TRANS_CALC_STRUC_FILL 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_ip_calc_beg  TYPE SY-DATUM, "   
lt_tcp_calc_struc  TYPE STANDARD TABLE OF JBTEK_CF_PER_CALC_T, "   
lv_ip_calc_end  TYPE SY-DATUM, "   
lt_trp_jbtkreg  TYPE STANDARD TABLE OF JBTKREG, "   
lv_ip_buper  TYPE T009B-POPER, "   
lt_etp_vtmada  TYPE STANDARD TABLE OF JBDVTMD, "   
lv_ip_gjahr  TYPE T009B-BDATJ, "   
lv_ip_whwaer  TYPE TKEBL-WAERS. "   

  CALL FUNCTION 'VAR_TRANS_CALC_STRUC_FILL'  "Variables Geschäft: Füllen der Kalkulationsstruktur
    EXPORTING
         IP_CALC_BEG = lv_ip_calc_beg
         IP_CALC_END = lv_ip_calc_end
         IP_BUPER = lv_ip_buper
         IP_GJAHR = lv_ip_gjahr
         IP_WHWAER = lv_ip_whwaer
    TABLES
         TCP_CALC_STRUC = lt_tcp_calc_struc
         TRP_JBTKREG = lt_trp_jbtkreg
         ETP_VTMADA = lt_etp_vtmada
. " VAR_TRANS_CALC_STRUC_FILL




ABAP code using 7.40 inline data declarations to call FM VAR_TRANS_CALC_STRUC_FILL

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 DATUM FROM SY INTO @DATA(ld_ip_calc_beg).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_ip_calc_end).
 
 
"SELECT single POPER FROM T009B INTO @DATA(ld_ip_buper).
 
 
"SELECT single BDATJ FROM T009B INTO @DATA(ld_ip_gjahr).
 
"SELECT single WAERS FROM TKEBL INTO @DATA(ld_ip_whwaer).
 


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!