Monday, September 26, 2011

Inserting multiple entries in a database table

REPORT INSERTMULTIPLEENTRIES.
* Work area
TABLES CUSTOMERS.
* Internal table for new entries
DATA ALL_CUSTOMERS LIKE CUSTOMERS OCCURS 100
             WITH HEADER LINE.
* Filling the internal table
ALL_CUSTOMERS-ID            = '12345678'.
ALL_CUSTOMERS-NAME = 'Brown'.
APPEND ALL_CUSTOMERS.
ALL_CUSTOMERS-ID          = '11111111'.
ALL_CUSTOMERS-NAME = 'Green'.
APPEND ALL_CUSTOMERS.
ALL_CUSTOMERS-ID          = '12121212'.
ALL_CUSTOMERS-NAME = 'White'.
APPEND ALL_CUSTOMERS.
* Inserting the internal table
INSERT CUSTOMERS FROM TABLE ALL_CUSTOMERS.

2 comments:

  1. Nice blog....For a long time I was looking for SAP ABAP training in Chennai and got the link


    THE CREATING EXPERTS is providing SAP BASIS training in real time

    http://thecreatingexperts.com/sap-abap-training-in-chennai/

    Contact 8122241286

    ReplyDelete