Ansicht
Dokumentation

RH_SELECT_OBJECTS_FOR_OTYPE - Select Objects of Specified Object Type

RH_SELECT_OBJECTS_FOR_OTYPE - Select Objects of Specified Object Type

ROGBILLS - Synchronize billing plans   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module delivers all available object keys to a plan version and an object type. The module can also return complete object data, if required.

You can limit the selection by entering a status or a search period.

Example

DATA: OBJECT_LIST LIKE HROBJECT OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'RH_SELECT_OBJECTS_FOR_OTYPE'

EXPORTING

PLVAR = PLANVERSION OTYPE = OBJECTTYPE

TABLES

OBJID_TAB = OBJECT_LIST

EXCEPTIONS

INVALID_PLVAR = 1 INVALID_OTYPE = 2 INVALID_DATE_RANGE = 3 NOTHING_FOUND = 4 INTERNAL_ERROR = 5 OTHERS = 6.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Notes

The module carries out a complete authorization check (Basis and structure authorization).

Do not make any changes using BEGDA; ENDDA or ISTAT. There are faster methods of selection.

If you only require object keys, do not transfer parameter OBJEC_TAB. This omits the additional definition of the object.

If the object is read (parameter OBJEC_TAB is transferred), the text buffer remains untouched. The objects selected are not included in the buffer. This allows you to read single objects from the application quickly.

Technical information

Subsequently, calls, regarding performance, are displayed in order. Those that are more reasonable yet have faster access are displayed at the top of the list. Those that are more expensive and are slower are placed towards the end.

  1. Call with transfer of PLVAR, OTYPE and OBJID_TAB
  2. Call with transfer of PLVAR, OTYPE, ISTAT and OBJID_TAB
  3. Call with transfer of PLVAR, OTYPE, BEGDA and/or ENDDA as well as OBJID_TAB
  4. Call with transfer of PLAVR, OTYPE, ISTAT, BEGDA and/or ENDDA as well as OBJID_TAB
  5. Call with transfer of PLVAR, OTYPE as wel as OBJEC_TAB with or without OBJID_TAB
  6. Call with transfer of PLVAR, OTYPE, ISTAT as well as OBJEC_TAB with or without OBJID_TAB
  7. Call with transfer of PLVAR, OTYPE, BEGDA and/or ENDDA as well as OBJEC_TAB with or without OBJID_TAB
  8. Call with transfer of PLAVR, OTYPE, ISTAT, BEGDA and/or ENDDA as well as OBJEC_TAB with or without OBJID_TAB





Parameters

BEGDA
ENDDA
ISTAT
OBJEC_TAB
OBJID_TAB
OTYPE
PLVAR

Exceptions

INTERNAL_ERROR
INVALID_DATE_RANGE
INVALID_OTYPE
INVALID_PLVAR
NOTHING_FOUND

Function Group

HRBAS00SEARCH

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3965 Date: 20240523 Time: 183713     sap01-206 ( 44 ms )