SAP DIS01_LOG_COST_OBJECTS Function Module for









DIS01_LOG_COST_OBJECTS is a standard dis01 log cost objects 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 dis01 log cost objects FM, simply by entering the name DIS01_LOG_COST_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

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



Function DIS01_LOG_COST_OBJECTS 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 'DIS01_LOG_COST_OBJECTS'"
EXPORTING
I_GROUP_DATA = "
IT_DIS_VALUES_DELTA = "
* IT_PEG_TASS = "
I_LOGHNDL = "
I_DELTA = "
I_TEST = "
I_PERIO = "
I_GJAHR = "
* I_TIMESTMP = "
* I_REVERSAL = ' ' "
IT_DIS_VALUES_TOTAL = "

IMPORTING
I_COSP_INS = "
I_COSP_UPD = "
I_COSP_DEL = "
I_COSS_INS = "
I_COSS_UPD = "
I_COSS_DEL = "
I_FMSU_INS = "
I_FMSU_UPD = "
I_FMSU_DEL = "

TABLES
* IT_DIS_WLST_DEL = "
IT_DIS_TOBJS_COSP = "
IT_DIS_TOBJS_COSP_HIS = "
IT_DIS_TOBJS_COSS = "
IT_DIS_TOBJS_COSS_HIS = "
IT_DIS_TOBJS_FMSU = "
IT_DIS_TOBJS_FMSU_HIS = "
.



IMPORTING Parameters details for DIS01_LOG_COST_OBJECTS

I_GROUP_DATA -

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

IT_DIS_VALUES_DELTA -

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

IT_PEG_TASS -

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

I_LOGHNDL -

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

I_DELTA -

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

I_TEST -

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

I_PERIO -

Data type: COEP-PERIO
Optional: No
Call by Reference: Yes

I_GJAHR -

Data type: COSP-GJAHR
Optional: No
Call by Reference: Yes

I_TIMESTMP -

Data type: CEST1-TIMESTMP
Optional: Yes
Call by Reference: Yes

I_REVERSAL -

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

IT_DIS_VALUES_TOTAL -

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

EXPORTING Parameters details for DIS01_LOG_COST_OBJECTS

I_COSP_INS -

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

I_COSP_UPD -

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

I_COSP_DEL -

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

I_COSS_INS -

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

I_COSS_UPD -

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

I_COSS_DEL -

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

I_FMSU_INS -

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

I_FMSU_UPD -

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

I_FMSU_DEL -

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

TABLES Parameters details for DIS01_LOG_COST_OBJECTS

IT_DIS_WLST_DEL -

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

IT_DIS_TOBJS_COSP -

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

IT_DIS_TOBJS_COSP_HIS -

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

IT_DIS_TOBJS_COSS -

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

IT_DIS_TOBJS_COSS_HIS -

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

IT_DIS_TOBJS_FMSU -

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

IT_DIS_TOBJS_FMSU_HIS -

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

Copy and paste ABAP code example for DIS01_LOG_COST_OBJECTS 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_i_cosp_ins  TYPE I, "   
lv_i_group_data  TYPE GPD_TY_GROUP, "   
lt_it_dis_wlst_del  TYPE STANDARD TABLE OF DIS_WLST, "   
lv_it_dis_values_delta  TYPE DIS_T_VALUES, "   
lv_it_peg_tass  TYPE PEG_T_TASS, "   
lv_i_loghndl  TYPE BALLOGHNDL, "   
lv_i_cosp_upd  TYPE I, "   
lt_it_dis_tobjs_cosp  TYPE STANDARD TABLE OF DIS_TOBJS_COSP, "   
lv_i_delta  TYPE DIS_DELTA, "   
lv_i_cosp_del  TYPE I, "   
lt_it_dis_tobjs_cosp_his  TYPE STANDARD TABLE OF DIS_TOBJS_COSP, "   
lv_i_test  TYPE XFLAG, "   
lv_i_coss_ins  TYPE I, "   
lt_it_dis_tobjs_coss  TYPE STANDARD TABLE OF DIS_TOBJS_COSS, "   
lv_i_perio  TYPE COEP-PERIO, "   
lv_i_coss_upd  TYPE I, "   
lt_it_dis_tobjs_coss_his  TYPE STANDARD TABLE OF DIS_TOBJS_COSS, "   
lv_i_gjahr  TYPE COSP-GJAHR, "   
lv_i_coss_del  TYPE I, "   
lt_it_dis_tobjs_fmsu  TYPE STANDARD TABLE OF DIS_TOBJS_FMSU, "   
lv_i_fmsu_ins  TYPE I, "   
lv_i_timestmp  TYPE CEST1-TIMESTMP, "   
lt_it_dis_tobjs_fmsu_his  TYPE STANDARD TABLE OF DIS_TOBJS_FMSU, "   
lv_i_fmsu_upd  TYPE I, "   
lv_i_reversal  TYPE XFLAG, "   SPACE
lv_i_fmsu_del  TYPE I, "   
lv_it_dis_values_total  TYPE DIS_T_VALUES. "   

  CALL FUNCTION 'DIS01_LOG_COST_OBJECTS'  "
    EXPORTING
         I_GROUP_DATA = lv_i_group_data
         IT_DIS_VALUES_DELTA = lv_it_dis_values_delta
         IT_PEG_TASS = lv_it_peg_tass
         I_LOGHNDL = lv_i_loghndl
         I_DELTA = lv_i_delta
         I_TEST = lv_i_test
         I_PERIO = lv_i_perio
         I_GJAHR = lv_i_gjahr
         I_TIMESTMP = lv_i_timestmp
         I_REVERSAL = lv_i_reversal
         IT_DIS_VALUES_TOTAL = lv_it_dis_values_total
    IMPORTING
         I_COSP_INS = lv_i_cosp_ins
         I_COSP_UPD = lv_i_cosp_upd
         I_COSP_DEL = lv_i_cosp_del
         I_COSS_INS = lv_i_coss_ins
         I_COSS_UPD = lv_i_coss_upd
         I_COSS_DEL = lv_i_coss_del
         I_FMSU_INS = lv_i_fmsu_ins
         I_FMSU_UPD = lv_i_fmsu_upd
         I_FMSU_DEL = lv_i_fmsu_del
    TABLES
         IT_DIS_WLST_DEL = lt_it_dis_wlst_del
         IT_DIS_TOBJS_COSP = lt_it_dis_tobjs_cosp
         IT_DIS_TOBJS_COSP_HIS = lt_it_dis_tobjs_cosp_his
         IT_DIS_TOBJS_COSS = lt_it_dis_tobjs_coss
         IT_DIS_TOBJS_COSS_HIS = lt_it_dis_tobjs_coss_his
         IT_DIS_TOBJS_FMSU = lt_it_dis_tobjs_fmsu
         IT_DIS_TOBJS_FMSU_HIS = lt_it_dis_tobjs_fmsu_his
. " DIS01_LOG_COST_OBJECTS




ABAP code using 7.40 inline data declarations to call FM DIS01_LOG_COST_OBJECTS

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 PERIO FROM COEP INTO @DATA(ld_i_perio).
 
 
 
"SELECT single GJAHR FROM COSP INTO @DATA(ld_i_gjahr).
 
 
 
 
"SELECT single TIMESTMP FROM CEST1 INTO @DATA(ld_i_timestmp).
 
 
 
DATA(ld_i_reversal) = ' '.
 
 
 


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!