Ansicht
Dokumentation
WFM_OPT_CALCBATCH_GETRUN - get the data for calculation batches next run
Vendor Master (General Section) SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
Returns the data of one or many calculation batch runs. If a calculation batch id is passed, only the data for that calculation batch id is returned. If a status is passed, only runs with that status are returned. These 2 filters can be combined (if both passed, it is an AND filter).
It queries the R3 jobs that are running a CRM_WFM_CALCBATCH_RUN program. If batch id filter passed, it processes only those jobs for which the variant assigned has as value that id. If status filter passed, it processes only those jobs that have as status that passed status filter.
It also returns the data from the WFMFC_CALC_CB_ST table for that batch id. IT DOES NOT PAY ATTENTION TO THE JOB_ID STORED IN THE TABLE, therefore, if there are 2 running jobs for the same calculation batch id (like one running 'R' and one scheduled 'S') will process the same record from WFMFC_CALC_CB_ST for both of them.
However, if a status 'S' was inquired, the attempts data is cleared (the job has never run), and only the is_suspended flag is returned since it is relevant at calculation batch level and not at r3 job level.
Example
Notes
Further information
Parameters
ET_CALCBATCHIV_CALCBATCH_ID
IV_STATUS
Exceptions
Function Group
CRM_WFM_OPTIMIZERrdisp/max_wprun_time - Maximum work process run time rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 1477 Date: 20240523 Time: 145201 sap01-206 ( 37 ms )