To display purchase details (Ekko, Ekpo) in Report using usual ABAP class .

 

Call class in report program.

Create class refer - Display purchasing document details (EKKO + EKPO) in usual ABAP class. (abappractice.blogspot.com)

1. Goto SE38.

2. Give program name and click on create.

3. Give title and click on save.

4. Write code.

    REPORT zab_rp_ekko_ekpo.

    DATAit_final TYPE zab_tt_eeko_ekpo.
    PARAMETERSp_ebeln TYPE ebeln.

    START-OF-SELECTION.
      DATAobj TYPE REF TO zcl_ekko_ekpo.
      CREATE OBJECT obj.
      CALL METHOD obj->display
        EXPORTING
          pebeln       p_ebeln
        IMPORTING
          gt_ekko_ekpo it_final.

      cl_demo_output=>displayit_final ).


Input

Output



**********************Thank You**********************


Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Concatenation new syntax( 7.4+ ).