Call usual ABAP class in report (select options).

Call class in report program.

Create class refer - Select options 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_so.

    TABLESekko.
    DATAit_final TYPE zab_tt_eeko_ekpo.
    SELECT-OPTIONSs_ebeln FOR ekko-ebeln.

    START-OF-SELECTION.
      DATAobj TYPE REF TO zab_cl_so_ekko_ekpo.
      CREATE OBJECT obj.
      CALL METHOD obj->get_data
        EXPORTING
          sebeln       s_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+ ).