I know one can create Database Views in DDIC, but is it possible to define a Database View directly with ABAP?
Asked
Active
Viewed 740 times
3
-
...why? What are you trying to achieve? – vwegert Apr 06 '16 at 07:06
2 Answers
2
Use function modules DDIF_VIEW_PUT
for creation and DDIF_VIEW_ACTIVATE
for activation of view. But you should specify all table parameters carefully, as incorrect parameters could result in failure of creation.

Suncatcher
- 10,355
- 10
- 52
- 90
1
Nothing is impossible with ABAP. You would have to debug what is under the hood in the SAP ABAP Code when you create your view in SE11
.
I know there is a possibility of creating a transparent table on the fly in ABAP, so I believe there is a possibility of creating a view as well. Of course such an object would have to be assigned to $TMP
package and not be transportable.

Jagger
- 10,350
- 9
- 51
- 93