F How to call Projection View from ABAP Report | CodeTheta

How to call Projection View from ABAP Report


Projection View name - ZVP_PRO_VIEW

Fields available in above view -
VBELN
ERDAT
ERZET
ERNAM
VKGRP


Code :
REPORT ZVP_PROJECTION_VIEW_CALL.

DATA: ZVIEW_IT TYPE TABLE OF ZVP_PRO_VIEW,
      ZVIEW_WA TYPE ZVP_PRO_VIEW.

START-OF-SELECTION.
SELECT * FROM ZVP_PRO_VIEW INTO TABLE ZVIEW_IT UP TO 50 ROWS.

LOOP AT ZVIEW_IT INTO ZVIEW_WA.
WRITE:/
ZVIEW_WA-VBELN,
ZVIEW_WA-ERDAT,
ZVIEW_WA-ERZET,
ZVIEW_WA-ERNAM,
ZVIEW_WA-VKGRP.
ENDLOOP.

Output :


IDE Used To Test This Code : ABAP Editor.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment