Ansicht
Dokumentation

HRIQ_STUDENT_BOOKING - Book ST on SM, SE and E

HRIQ_STUDENT_BOOKING - Book ST on SM, SE and E

RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module performs the following functions:

It books one or more modules for a student (object type ST)

It cancels module bookings and the associated business event bookings (cancellations).

Required data:

When you update data, you must specify the student for which the bookings are made (import parameters IV_PLVAR, IV_OTYPE and IV_OBJID). Enter the modules to be booked and any additional booking data in the table IT_MODULETAB. If you also want to book business events (object type E) and/or time-independent events (object type EL), specify these in table IT_EVENTTAB. If you use event packages (object type SE) when booking, the function module automatically determines the associated business events and/or time-independent events.

Note:

If the fields BEGDA and ENDDA in the table IT_MODULETAB contain their initial values, the academic calendar is used to determine data. No checks are run on input data.

Checks:

The function module executes the following checks at callup point 0001 (module booking (general)):

It checks whether a re-registration exists for the relevant session

It checks whether an active hold or status is blocking the process

It checks the booking time and date against the booking periods assigned to the student

It performs checks based on the rules stored in VSR

It performs the user-defined checks that are implemented in business add-in HRPIQ00MODULEREG_PBO

The function module executes the following checks at callup point 0002 (module booking (set)):

It checks the rules set in VSR

It performs the user-defined checks that are implemented in business add-in HRPIQ00MODULEREG0002

The functin module executes the following checks at callup point 0003 (module booking (single)):

It performs checks based on the sessions of offering specified for modules, event packages, business events and time-independent events

It performs checks based on given prerequisites (relationship 529)

It performs checks based on given corequisites (relationship 533)

It checks the booking time and date against the booking periods assigned to the module or event package

It performs checks based on the rules stored in VSR

It checks module, event package and business event capacity

It performs the user-defined checks that are implemented in business add-in HRPIQ00MODULEREG0003

You can define which callup points are to be processed by entering them in the table IT_CPTAB (the default value specifies that all checks are to be processed).

Any errors that occur are returned to the calling program in the table ET_RETURN.

Parameter IV_MODE:

Import parameter IV_MODE controls data record updating as follows:

Mode T (test): Data records are not updated on the database

Mode V: Data records are updated if no error (E) messages were output

Mode F: Data records without errors are updated irrespective of other error messages

Note:

In the update modes (mode V and F), a database lock is applied to the objects being processed.

Possible Bookings:

Bookings with SMSTATUS 01 (booked)

If no data records exist for the period, one is created.

If a data record with one of the following statuses exists, it is overwritten (updated).

Prebooked (05)

Prebooking cancelled (06)

Preselected

Data records with the status "booked" (01) are overwritten (updated). Any required re-bookings are made at the business event level.

If data records with one of the following statuses exist, new data records are created (time constraint 3).

Completed successfully (02)

Completed unsuccessfully (03)

Cancelled (04)

Bookings with SMSTATUS 04 (cancel booking)

Data records with the status "booked" are overwritten.

Business event cancellations for bookings without an event package are based on table IT_EVENTTAB. Business event cancellations for bookings with an event package are made automatically.

Data records with the status "cancelled" are overwritten.

Bookings with SMSTATUS 05 and 06 (preselected or prebooked)

Data records with status 05, 06, 07 are overwritten.

For data records with status 01, 02, 03, 04, a new data record is created.

Bookings with SMSTATUS 07 (cancel prebooking)

Only data records with status 06 are overwritten.

Parameter IV_MANDATORY:

If the parameter IV_MANDATORY is set, bookings for business events are made as essential bookings.

Structure IS_MRCONTEXT:

This parameter describes the module booking context: Academic year and session for which bookings are made, and program or program type for which module bookings are used (parameters CONT_PERYR and CONT_PERID describe the booking period and year used for collective booking. This data can be accessed during rule checking, making it easier to formulate rules.)

Parameter RETURN_CODE:

RETURN_CODE "0" indicates that no errors occurred during the booking procedure.

RETURN_CODE "2" indicates that errors occurred in some entries of the table IT_MODULETAB.

RETURN_CODE "4" indicates that none of the entries in the table IT_MODULETAB can be booked.

Example

Notes

Further information





Parameters

ET_AVAILABILITY
ET_DBPEPE0
ET_DBPEPE1
ET_DERESERVE
ET_EXTEND_CHECK_BOOKING_LOG
ET_GUIDLIST
ET_HS_MANAGER
ET_INFTY_CONTAINER
ET_RELAT_CONTAINER
ET_RETURN
ET_TABLE_CONTAINER
ET_WAITL_ONLY
ET_WAITL_POSSIBLE
EV_BRF_MODBOOK
EV_BRF_PROGREG
EV_COND_BOOKINGS
EV_DOCID
EV_DOCID_REGIST
E_CHECKPROTHNDL
IS_EXCLUDE_CHECK
IS_MRCONTEXT
IT_CPTAB
IT_EVENTTAB
IT_MODULETAB
IV_DIALOG
IV_MANDATORY
IV_MASSBOOKING
IV_MASSB_NEW
IV_MODE
IV_MOVEUP_ENTITLEMENT
IV_OBJID
IV_OTYPE
IV_PLVAR
IV_VTASK
I_CHECKPROTHNDL
RETURN_CODE

Exceptions

DATABASE_UPDATE_FAILED
MODE_NOT_SUPPORTED
MODULES_MISSING
NEGATIVE_CHECK_RESULT
NO_PROGRAM_REGISTRATION
OTYPE_NOT_SUPPORTED
PLVAR_NOT_FOUND
PROGRAM_NOT_FOUND
STUDENT_LOCK_FAILED
STUDENT_NOT_FOUND
STUDY_NOT_FOUND
WRONG_INPUT_DATA

Function Group

HRPIQ00STBEN2

ROGBILLS - Synchronize billing plans   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 7454 Date: 20240523 Time: 113938     sap01-206 ( 102 ms )