0% found this document useful (0 votes)
33 views3 pages

Types Begin OF Type Type Type Type End of Types Type Standard OF

This document contains an ABAP report that defines data types and tables to store sales order data. It selects sales order data from the VBAP table based on a selection screen criteria and writes the order details and subtotals to the screen.

Uploaded by

vamsi0
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

Types Begin OF Type Type Type Type End of Types Type Standard OF

This document contains an ABAP report that defines data types and tables to store sales order data. It selects sales order data from the VBAP table based on a selection screen criteria and writes the order details and subtotals to the screen.

Uploaded by

vamsi0
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

*&------------------------------------------------------

---------------*
*& Report  ZTEST1111
*&
*&------------------------------------------------------
---------------*
*&
*&
*&------------------------------------------------------
---------------*

REPORT  ZTEST1111.
types: BEGIN OF ts_vbap,
         vbeln TYPE vbeln,
         posnr TYPE posnr,
         matnr TYPE matnr,
         netwr TYPE netwr,
       end of ts_vbap.
types: tt_vbap TYPE STANDARD TABLE OF 
ts_vbap.
data: gs_vbap TYPE ts_vbap,
      gt_vbap TYPE tt_vbap,
      gt_vbap1 type tt_vbap.

SELECT-OPTIONS: s_vbeln for gs_vbap-
vbeln.

SELECT vbeln posnr matnr netwr
  FROM vbap
  into TABLE gt_vbap
  WHERE vbeln in s_vbeln.

  LOOP AT gt_vbap INTO gs_vbap.
    at FIRST.
      write:/20 text-001.
    ENDAT.
    write:/ gs_vbap-vbeln,gs_vbap-posnr,
            gs_vbap-matnr,gs_vbap-netwr.
    at END OF vbeln.
      sum.
      write:/25 'sub-total:', gs_vbap-netwr.
      new-page.
    ENDAT.

    at LAST.
      sum.
      write:/20 'total:', gs_vbap-netwr.
    endat.
  ENDLOOP.

You might also like