Usual ABAP class with example using instance method.

 Usual ABAP class with example using instance method.

1. Goto SE24.

2. Give class name and click on create and give short description and click on save.


3. Give method name and level and visibility and short description and click on save.


4. Click on parameters tab and give parameters.



5. Save and activate.

6. Click on source code.

    method DISPLAY.

    SELECT SINGLE
        BUKRS
        BSTYP
        BSART
        SPRAS
      FROM EKKO
      INTO (PBUKRSPBSTYPPBSART,PSPRAS)
      WHERE EBELN PEBELN.
  endmethod.

7. Save and activate and execute.

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+ ).