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.

    DATA: it_final TYPE zab_tt_eeko_ekpo.
    PARAMETERS: p_ebeln TYPE ebeln.

    START-OF-SELECTION.
      DATA: obj 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=>display( it_final ).


Input

Output



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


Comments

Popular posts from this blog

Custom entity/Action dialog in RAP using Unmanaged scenario

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

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