Below you can find coding snippets which can be used when the search of an object doesn´t contain the expected results.
Search helps are defined in customizing for each object type in:
Spro > SAP Portfolio and Project Management > Common Functions > Search > Define Search Help for Project Management
Execution of Search
SAPLSDSD
LSDSDF05
FORM CALL_SHLP_EXIT
CALL FUNCTION fuba
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp_curr
callcontrol = callcontrol
EXCEPTIONS
OTHERS = 1.
The parameter "fuba" is filled with the exit which is assigned in search help.
For example search help DPR_ORG_UNIT_OBJID is using search help exit DPR_ORG_UNIT_SHLP_EXIT. In the Exit (function module) a breakpoint can be set for analyze.
BAdI: BADI_DPR_SEARCH