Useful SAP function modules and BAPI's for training and events management - SAP TEM
When working with training and events management you can get the course/event details directly from the HRP1001, HRP1000 etc tables or
you can use a number of function modules from function group RHVI. Below is a list and description of a some of these function modules!
RH_READ_OBJECT
CALL FUNCTION 'RH_READ_OBJECT'
EXPORTING
plvar = wa_hrv1002a-plvar
otype = wa_hrv1002a-otype
objid = wa_hrv1002a-objid
begda = wa_hrv1002a-begda
endda = wa_hrv1002a-endda
IMPORTING
obeg = wa_etype-etbeg
oend = wa_etype-etend
short = wa_etype-etsht
stext = wa_etype-etstx
EXCEPTIONS
not_found = 1
OTHERS = 2.
BAPI_BUS_EVENT_LIST
CALL FUNCTION 'BAPI_BUS_EVENT_LIST'
EXPORTING
plvar = '01'
objid = gd_objid
begin_date = gd_begda "'20040101'
end_date = gd_endda "'99991231'
TABLES
event_list = it_elist
EXCEPTIONS
NO_EVENTS = 1
NO_ACTIVE_PLVAR = 2
UNKNOWN_EXCEPTION = 3
OTHERS = 4.
BAPI_BUS_EVENTTYPE_INFO
CALL FUNCTION 'BAPI_BUS_EVENTTYPE_INFO'
EXPORTING
plvar = '01'
objid = gd_etyid
begin_date = gd_begda "'20040101'
end_date = gd_endda "'99991231'
TABLES
eventtype_desc = it_evttypedesc
EXCEPTIONS
root_not_found = 1
no_active_plvar = 2
unknown_exception = 3
OTHERS = 4.
BAPI_BUS_EVENT_INFO
CALL FUNCTION 'BAPI_BUS_EVENT_INFO'
EXPORTING
plvar = '01'
objid = objid
begin_date = gd_begda "'20040101'
end_date = gd_endda "'99991231'
language = 'E'
TABLES
event_desc = it_evtdesc
event_resou = it_evtresou
event_quali = it_evtquali
EXCEPTIONS
no_root_found = 1
no_active_plvar = 2
unknown_exception = 3
OTHERS = 4.
RH_READ_EVENT_SCHEDULE
CALL FUNCTION 'RH_READ_EVENT_SCHEDULE'
TABLES
eventlist = it_eventlist
schedule_tab = it_schedule
EXCEPTIONS
nothing_found = 1
OTHERS = 2.
Website Navigation to related information
|
||||||||||