Functionality This function module is used to search for injury/illness log entriesvia injury data for personsaffected>. The search is executed using the parameters entered by the user viaCCIHT_IP>. The function module has the following parameters:
- I_SEARCHMODE (CCIHS_FASEL-SEARCHMODE)
Search mode for the historical search, default value is 'w' = weak.
- I_SELCRIT_INJ (CCIHT_IPEVINJ)
Search parameters for the search via injuries. The search parametersare linked with AND. The search is possible using the followingparameters: Main injury (MAININJFLG) Old injury (OLDINJFLG) Body part (BODYPART) Description of body part (BODYPARTDESC) Injury type (INJURY) Description of injury type (INJURYDESC)
- I_VALDAT (RCGUADM-VALTO)
Only data valid on this date is read.
- I_DATERANGE (RCGDATERANGE)
If I_DATERANGE> is filled, the historical search is run.I_DATERANGE> contains the time period for the historical search.When searching with I_DATERANGE>, only the search mode 'w' = weakis permitted.
- I_FLG_FILL_EXTERROR (ESP1_BOOLEAN)
If this indicator has the value TRUE, the function module fills theextended error information table. The default setting for the indicatoris TRUE.
- I_RESTRICTION_TAB (RCGSTDRECN)
Restriction to the search by predefined record numbers. If no recordnumbers are passed, the search is run on all records of theinjury/illness log header.
- E_RESULT_TAB (RCGSTDRECN)
All record numbers found in the injury/illness log are written to thisresult table.
- E_RECORDS_FOUND (SY-TABIX)
Returns the number of record numbers found in E_RESULT_TAB>.Notes The search for a discrete "valid from" or "valid to" date within theheader record I_SELCRIT_INJ> is not supported. These values areused for selection in conjunction with the parameters I_VALDAT>and I_DATERANGE>. The function module does not support a search via the change number.Before you call the function, the "valid from" date of the changenumber must be set in the parameter I_VALDAT>.
|