For acquiring processes which are connected to objects, the API Class /PCH/CL_BPF_API_OBJ_RPRC_ASSGN exists. With this API one can read processes for a passed set of objects with the following criteria:
Process Definition ID (external),
Technical or logical (active, running, erroneous, finished) process status,
Whether the object must be the main object or in the object list.
The API returns the connections between the objects and the processes including:
Runtime ID,
Customizing ID (external),
Process Status,
If the object is the main object of the process,
If the Object is in the object list of the process,
In which object group(s) (external ID) the object appears.