The following SELECT won't compile. The compiler gives the message "'V_5UBI_B" is not defined in the ABAP Dictionary as a table, projection view or database view". I can run SE11 and enter it as the name of a view and pull it up so I'm obviously missing something.
SELECT SINGLE ercst INTO (p_covered_rate_out) FROM V_5UBI_B WHERE barea = '01' AND bplan = p_bplan_in AND bcost = '0001'.