SAP FRE_TS_DELTA Function Module for Delta Transfer of Stock Information and Consumption Data









FRE_TS_DELTA is a standard fre ts delta SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delta Transfer of Stock Information and Consumption Data 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 fre ts delta FM, simply by entering the name FRE_TS_DELTA into the relevant SAP transaction such as SE37 or SE38.

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



Function FRE_TS_DELTA 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 'FRE_TS_DELTA'"Delta Transfer of Stock Information and Consumption Data
EXPORTING
* I_DATE_FROM = '00000000' "Current Date of Application Server
* I_TEST = ' ' "Checkbox
* I_PARALLEL = ' ' "Checkbox
* I_SVRGRP = "Logon/Server Group Name
* I_TASKS = "Maximum number of parallel tasks
* I_BLOCK = "Number of Records per Package
I_SENDER = "Logical System
I_REFID = "Identifier
I_SEND_OPT = "Maintain Basic Settings for Data Transfer
* I_GEN_TRANSFER = "Transfer general data including unchanged
* I_DATE_TO = SY-DATUM "Current Date of Application Server
* I_TIME_FROM = '000000' "Current Time of Application Server
* I_TIME_TO = SY-UZEIT "Current Time of Application Server
* IT_RELART = "Table Type for Relevant article/site-combinations
* IT_LOC_TZ_LOCTYPE = "Table type for FRE_WERKS_TZ_LOCTYPE_STY
* IT_STTYP = "Table Type for relevant stock types
I_TR_STOCK = "Checkbox
I_TR_CONSUMPTION = "Checkbox

IMPORTING
E_CP_STOCK = "
E_CP_CONS = "

EXCEPTIONS
NO_DATA = 1 ERROR_IN_DATE_INTERVAL = 2 ERROR_IN_TIME_INTERVAL = 3 NO_RELEVANT_SITES = 4 NO_RELEVANT_STOCK_TYPES = 5 NO_RESOURCES_FOR_PARALLEL_PROC = 6 COMMUNICATION_FAILURE = 7 LOCK_ERROR = 8
.



IMPORTING Parameters details for FRE_TS_DELTA

I_DATE_FROM - Current Date of Application Server

Data type: SY-DATUM
Default: '00000000'
Optional: Yes
Call by Reference: Yes

I_TEST - Checkbox

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_PARALLEL - Checkbox

Data type: FRE_PARALLEL
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_SVRGRP - Logon/Server Group Name

Data type: RZLLITAB-CLASSNAME
Optional: Yes
Call by Reference: Yes

I_TASKS - Maximum number of parallel tasks

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

I_BLOCK - Number of Records per Package

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

I_SENDER - Logical System

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

I_REFID - Identifier

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

I_SEND_OPT - Maintain Basic Settings for Data Transfer

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

I_GEN_TRANSFER - Transfer general data including unchanged

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

I_DATE_TO - Current Date of Application Server

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_TIME_FROM - Current Time of Application Server

Data type: SY-UZEIT
Default: '000000'
Optional: Yes
Call by Reference: Yes

I_TIME_TO - Current Time of Application Server

Data type: SY-UZEIT
Default: SY-UZEIT
Optional: Yes
Call by Reference: Yes

IT_RELART - Table Type for Relevant article/site-combinations

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

IT_LOC_TZ_LOCTYPE - Table type for FRE_WERKS_TZ_LOCTYPE_STY

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

IT_STTYP - Table Type for relevant stock types

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

I_TR_STOCK - Checkbox

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

I_TR_CONSUMPTION - Checkbox

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

EXPORTING Parameters details for FRE_TS_DELTA

E_CP_STOCK -

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

E_CP_CONS -

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

EXCEPTIONS details

NO_DATA - neither flag for stock nor flag for consumption set

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_DATE_INTERVAL - Error in date interval

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_TIME_INTERVAL - Error in time interval

Data type:
Optional: No
Call by Reference: Yes

NO_RELEVANT_SITES - no relevant sites in table FRE_DB_SITE

Data type:
Optional: No
Call by Reference: Yes

NO_RELEVANT_STOCK_TYPES - no relevant stock types in table FRE_TS_REL_TS

Data type:
Optional: No
Call by Reference: Yes

NO_RESOURCES_FOR_PARALLEL_PROC - no resources for parallel processing

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_FAILURE - error during communication

Data type:
Optional: No
Call by Reference: Yes

LOCK_ERROR - initial or delta transfer is already running

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FRE_TS_DELTA 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_no_data  TYPE STRING, "   
lv_e_cp_stock  TYPE I, "   
lv_i_date_from  TYPE SY-DATUM, "   '00000000'
lv_i_test  TYPE XFELD, "   SPACE
lv_i_parallel  TYPE FRE_PARALLEL, "   SPACE
lv_i_svrgrp  TYPE RZLLITAB-CLASSNAME, "   
lv_i_tasks  TYPE DDMAXTASKS, "   
lv_i_block  TYPE FRE_PACKAGESIZE_TS, "   
lv_i_sender  TYPE LOGSYSTEM, "   
lv_i_refid  TYPE FRE_BIF_ID, "   
lv_i_send_opt  TYPE FRE_SEND_OPTION, "   
lv_i_gen_transfer  TYPE XFELD, "   
lv_e_cp_cons  TYPE I, "   
lv_i_date_to  TYPE SY-DATUM, "   SY-DATUM
lv_error_in_date_interval  TYPE SY, "   
lv_i_time_from  TYPE SY-UZEIT, "   '000000'
lv_error_in_time_interval  TYPE SY, "   
lv_i_time_to  TYPE SY-UZEIT, "   SY-UZEIT
lv_no_relevant_sites  TYPE SY, "   
lv_it_relart  TYPE FRE_DB_ART_SITE_TTY, "   
lv_no_relevant_stock_types  TYPE FRE_DB_ART_SITE_TTY, "   
lv_it_loc_tz_loctype  TYPE FRE_WERKS_TZ_LOCTYPE_TTY, "   
lv_no_resources_for_parallel_proc  TYPE FRE_WERKS_TZ_LOCTYPE_TTY, "   
lv_it_sttyp  TYPE FRE_TS_REL_ST_TTY, "   
lv_communication_failure  TYPE FRE_TS_REL_ST_TTY, "   
lv_i_tr_stock  TYPE FRE_TS_TRSTO, "   
lv_lock_error  TYPE FRE_TS_TRSTO, "   
lv_i_tr_consumption  TYPE FRE_TS_TRCON. "   

  CALL FUNCTION 'FRE_TS_DELTA'  "Delta Transfer of Stock Information and Consumption Data
    EXPORTING
         I_DATE_FROM = lv_i_date_from
         I_TEST = lv_i_test
         I_PARALLEL = lv_i_parallel
         I_SVRGRP = lv_i_svrgrp
         I_TASKS = lv_i_tasks
         I_BLOCK = lv_i_block
         I_SENDER = lv_i_sender
         I_REFID = lv_i_refid
         I_SEND_OPT = lv_i_send_opt
         I_GEN_TRANSFER = lv_i_gen_transfer
         I_DATE_TO = lv_i_date_to
         I_TIME_FROM = lv_i_time_from
         I_TIME_TO = lv_i_time_to
         IT_RELART = lv_it_relart
         IT_LOC_TZ_LOCTYPE = lv_it_loc_tz_loctype
         IT_STTYP = lv_it_sttyp
         I_TR_STOCK = lv_i_tr_stock
         I_TR_CONSUMPTION = lv_i_tr_consumption
    IMPORTING
         E_CP_STOCK = lv_e_cp_stock
         E_CP_CONS = lv_e_cp_cons
    EXCEPTIONS
        NO_DATA = 1
        ERROR_IN_DATE_INTERVAL = 2
        ERROR_IN_TIME_INTERVAL = 3
        NO_RELEVANT_SITES = 4
        NO_RELEVANT_STOCK_TYPES = 5
        NO_RESOURCES_FOR_PARALLEL_PROC = 6
        COMMUNICATION_FAILURE = 7
        LOCK_ERROR = 8
. " FRE_TS_DELTA




ABAP code using 7.40 inline data declarations to call FM FRE_TS_DELTA

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_i_date_from).
DATA(ld_i_date_from) = '00000000'.
 
DATA(ld_i_test) = ' '.
 
DATA(ld_i_parallel) = ' '.
 
"SELECT single CLASSNAME FROM RZLLITAB INTO @DATA(ld_i_svrgrp).
 
 
 
 
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date_to).
DATA(ld_i_date_to) = SY-DATUM.
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_i_time_from).
DATA(ld_i_time_from) = '000000'.
 
 
"SELECT single UZEIT FROM SY INTO @DATA(ld_i_time_to).
DATA(ld_i_time_to) = SY-UZEIT.
 
 
 
 
 
 
 
 
 
 
 


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!