Ansicht
Dokumentation
RH_MACO - Entry Check
CL_GUI_FRONTEND_SERVICES - Frontend Services Vendor Master (General Section)This documentation is copyright by SAP AG.
Functionality
Entry check for Personnel Planning objects
The validity of the search term transferred in the SEARK parameter is checked.
If the search term has eight digits, the system tries to read the object with the corresponding ID. If the object is found, and corresponds to the relevant conditions (RESTRICT_FB, CALLBACK_PROG und BASE_OBJECTS), it is returned; if not, the exception NOTHING_FOUND is triggered.
If the search term is alphanumeric, all objects which include the search term in their abbreviations or names are found (regardless of capitalization). If several suitable objects are found, a dialog box appears, displaying the objects. The object you select is returned.
Example
CALL FUNCTION 'RH_MACO'
EXPORTING
SEARK = OBJECT_TO_SEARCH_FOR PLVAR = PLANVERSION OTYPE = OBJECTTYPEIMPORTING
SEL_OBJECT = OBJECT_FOUNDEXCEPTIONS
F15 = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 OTHERS = 4.IF SY-SUBRC = 0.
"this object is valid
ENDIF.
Notes
This module carries out a complete object check for all search terms. If no exception is generated, the object is valid.
This is not the case for released prior to 4.6A. In previous releases, the return code (SY-SUBRC) was checked to see whether one of the fields SHORT, BEGDA or ENDDA was empty. If it was, the returned object was not valid. This selection logic, regarding language is set in Customizing (Table T77S0, Switch SEARK LMODE). The behaviour is described in the documentation for parameter LANGU_MODE. Nevertheless, this parameter can not be set so that the settings in Customizing are used.
Parameters
BASE_OBJECTSCALLBACK_FORM
CALLBACK_PROG
CONDITION
ENABLE_NEW_SHELP
F4_LIST
FORGET_BASE_OBJECTS
LANGU
LANGU_MODE
LIST_HEADER
MARKED_OBJECTS
NO_DIALOG
NO_GENERIC_WARNING
NO_NEW_ENTRIES
ORGBEG
ORGEND
OTYPE
OTYPE_TAB
PFKEY
PLVAR
RESTRICT_DATA
RESTRICT_FB
SEARK
SEARK_TEXT
SELECT_MESSAGE
SEL_OBJECT
SEL_OBJECTS
SET_MODE
USED_FCODE
WIN_TITLE
Exceptions
F15NOTHING_FOUND
WRONG_CONDITION
Function Group
HRBAS00SEARCHCL_GUI_FRONTEND_SERVICES - Frontend Services SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 5433 Date: 20240523 Time: 155647 sap01-206 ( 65 ms )