Ansicht
Dokumentation
FRE_TS_DELTA - Delta Transfer of Stock Information and Consumption Data
PERFORM Short Reference General Data in Customer MasterThis documentation is copyright by SAP AG.
Functionality
This function reads all change pointers of stock and/or consumption data from the two database tables FRE_ST_POINTER and FRE_CONS_POINTER. The parameters i_tr_stockand i_tr_consumptiondetermine which change pointers will be read.
If the table it_relart is filled all change pointers of these location products will be read. Otherwise all change pointers will be read that were created within the time interval between i_date_from/i_time_fromand i_date_to/i_time_to.
If the parameter i_testis set, only the number of change pointers will be determined, but no data will be transferred to SAP Forecasting & Replenishment (SAP F&R). In this case, the function module only returns the two values e_cp_stockand e_cp_cons. e_cp_stockcontains the number of changed stock data and e_cp_consthe number of changed consumption data.
In the other case (i_test = SPACE) data will be transferred to SAP F&R. To do this, all change pointers are bundled in packages. The parameter i_blockdetermines how many change pointers should be contained in one package. Each package contains all change pointers of one site and as long as there are fewer change pointers as determined by the i_blockparameter within the package, the change pointers of the next site are added.
Therefore, it is possible that one package contains more than the number of change pointers determined by i_blockbecause all change pointers (as opposed to only some of them) of a site are always added. As soon as one package is filled up, the new function module FRE_TS_DELTA_SENDis called and the data is transferred to SAP F&R.
The optional table it_loc_tz_loctype contains all relevant sites with their time zones and location types. If the table is not filled, the data will be read.
The optional table it_sttyp contains all relevant stock types. If the table is not filled and stock data has to be transferred (i_tr_stock = 'X'), the data will be read.
The parameters i_srvgrp, i_tasksand i_blockare only optional if no parallel processing is desired. They have to be filled for parallel processing (i_parallel = 'X').
All messages are stored in the database table FRE_UI_MSG.
Example
Notes
Further information
Parameters
E_CP_CONSE_CP_STOCK
IT_LOC_TZ_LOCTYPE
IT_RELART
IT_STTYP
I_BLOCK
I_DATE_FROM
I_DATE_TO
I_FINAL_WAIT
I_GEN_TRANSFER
I_PARALLEL
I_REFID
I_SENDER
I_SEND_OPT
I_SVRGRP
I_TASKS
I_TEST
I_TIME_FROM
I_TIME_TO
I_TR_CONSUMPTION
I_TR_STOCK
Exceptions
COMMUNICATION_FAILUREERROR_IN_DATE_INTERVAL
ERROR_IN_TIME_INTERVAL
INTERNAL_COMMUNICATION_ERROR
LOCK_ERROR
NO_DATA
NO_RELEVANT_SITES
NO_RELEVANT_STOCK_TYPES
NO_RESOURCES_FOR_PARALLEL_PROC
Function Group
FRE_TS_DBAddresses (Business Address Services) rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 4872 Date: 20240523 Time: 094722 sap01-206 ( 97 ms )