Ansicht
Dokumentation

REUSE_HR_OBJID_CHECK - HR Reuse: Validity Check for Objects

REUSE_HR_OBJID_CHECK - HR Reuse: Validity Check for Objects

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Input Check for Personnel Planning Objects

The system checks the validity of the search term entered in the SEARK parameter.

If the search term is an eight-digit numeric, the system tries to read the object with that ID. If the object is found and fulfils the relevant conditions (RESTRICT_FB, CALLBACK_PROG and BASE_OBJECTS), it is displayed; if not, the exception NOTHING_FOUND is triggered.

If the search term is alphanumeric, the system searches for all objects which contain the search term as an abbreviation or a name (regardless of whether upper or lower case). If several matching objects are found, a dialog box appears showing the objects. You can select an object to be displayed.

Example

CALL FUNCTION 'RH_MACO'

EXPORTING

SEARK = OBJECT_TO_SEARCH_FOR PLVAR = PLANVERSION OTYPE = OBJECTTYPE

IMPORTING

SEL_OBJECT = OBJECT_FOUND

EXCEPTIONS

F15 = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 OTHERS = 4.

IF SY-SUBRC = 0.

"this object is valid

ENDIF.

Notes

This function module carries out a complete object check for each search term. If it does not return an exception, then the object is valid.

In releases before 99a, however, this is not the case. Here, in addition to the return code (SY-SUBRC), you must check whether one of the fields SHORT, BEGDA or ENDDA is empty. If so, the returned object is not valid.

The selection logic with regard to language is set in customizing (table T77S0, Switch SPEARK LMODE). The procedure is described in the documentation to the parameter LANGU_MODE. Nonetheless, this parameter must not be set, so that the default setting may be used.





Parameters

MULTIPLE_SELECTION
NO_DIALOG
OTYPE
PLVAR
RESTRICT_DATA
RESTRICT_FB
SEARK
SEL_OBJECT
SEL_OBJECTS

Exceptions

CANCELLED
NOTHING_FOUND

Function Group

HRBAS00SEARCH

TXBHW - Original Tax Base Amount in Local Currency   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3301 Date: 20240523 Time: 174027     sap01-206 ( 45 ms )