Ansicht
Dokumentation

HRPIQ00COHORTS_DIST - BAdI: Distribute Students from Cohort to Subcohorts

HRPIQ00COHORTS_DIST - BAdI: Distribute Students from Cohort to Subcohorts

rdisp/max_wprun_time - Maximum work process run time   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Use

In this IMG activity, this Business Add-In (BAdI) is called by the cohort builder when the user chooses the button Distribute Students.

Requirements

The BAdI takes effect only if the cohort in question contains students and has sub-cohorts.

Standard settings

The default implementation of the BAdI consists of the following distribution algorithm:

All students of the cohort are assigned to the first sub-cohort as long as there are free slots.

If the sub-cohort is full (based on the optimum capacity), the students which are not yet assigned, are assigned to the second sub-cohort.

This process is carried on until there are no free slots anymore or until all students have been assigned to sub-cohorts. Then the distributed students are un-assigned from the main cohort.

To save the result of the distribution to the database, choose the Save button.

If the distribution cannot be performed according to the distribution algorithm, an error log is written by the system and, as a result, not all of the students will be assigned to a sub-cohort and un-assigned from the main cohort. This can happen, for example, if there are already students assigned to some of the sub-cohorts before the distribution algorithm is started.

Activities

If the distribution algorithm should work differently from the description above, you can create a new BAdI-implementation, that contains another algorithm.

Example

The default coding can be found in the fallback class CL_DEF_IM_HRPIQ00COHORTS_DIST, interface IF_EX_HRPIQ00COHORTS_DIST, method DISTRIBUTE_STUDENTS. You may use the default coding as a sample for your own algorithm.






General Material Data   General Material Data  
This documentation is copyright by SAP AG.

Length: 1987 Date: 20240523 Time: 220731     sap01-206 ( 39 ms )