After migration SAP BW 7.52 to BW4HANA there might be a dumps when trying to retrieve Queries from infosets, so you should apply the SAP Note 2404023. If it didn’t work, you must check whether implementation RSRTS_CDS_VAR_F4_BADI is active and has
implementing class CL_RSRTS_CDS_VAR_F4_BADI.
SAP Security Blog