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 SINGLEBUKRS
BSTYP
BSART
SPRAS
FROM EKKO
INTO (PBUKRS, PBSTYP, PBSART,PSPRAS)
WHERE EBELN = PEBELN.
endmethod.
7. Save and activate and execute.
Input
Output
********************************Thank You***************************
Comments
Post a Comment