21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To verify, go to VBAK table (SE16) and check whether the data is stored or not.<br />

Now we will create a program using the above class for inserting the data into the database<br />

table.<br />

Go to SE38 and create a program.<br />

Select create button.<br />

After that provide the following logic.<br />

*&---------------------------------------------------------------------*<br />

*& Report ZPG_INSERTINTODB *<br />

*& *<br />

*&---------------------------------------------------------------------*<br />

*& *<br />

*& *<br />

*&---------------------------------------------------------------------*<br />

REPORT ZPG_INSERTINTODB.<br />

*provide the object for the class<br />

DATA: OBJ_INSERT TYPE REF TO ZCL_INSERTDB.<br />

*provide parameters<br />

PARAMETERS: V_VBELN TYPE VBELN,<br />

V_ERDAT TYPE ERDAT,<br />

V_ERZET TYPE ERZET.<br />

*provide work area<br />

DATA: WA TYPE VBAK.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!