ABAP

How to delete records from a Database table in SAP ABAP

Using the DELETE statement, you can delete one or more records from a Database table. It can be deleted in the following three different ways. Through ‘WHERE’ clause. Through structure (work area). Through Internal table. Through ‘WHERE’ clause. The data records from the Database table are deleted based on the condition mentioned in the ‘WHERE’

How to delete records from a Database table in SAP ABAP Read More »

How to insert Data records in to Database table in SAP ABAP

With the help of ‘INSERT’ keyword, we can insert one or more records in to an internal table. Data records can be inserted in the following two different ways: Through structure. Through Internal table. Through structure. DATA ls_contact TYPE ztt_db_table2. ls_contact – contact_id = 104. ls_contact – contact_name = ‘Bala’. ls_contact – contact_address = ‘Street

How to insert Data records in to Database table in SAP ABAP Read More »

How to update Data records in a Database table in SAP ABAP

Using the ‘UPDATE’ keyword, we can modify one or more Data records in an internal table. The data records can be modified in the following different ways. Through Structure. Through Internal table. Through ‚WHERE‘ Clause. Through Structure: Single line of record can be modified using structure. Therefore define a structure with reference to the Database

How to update Data records in a Database table in SAP ABAP Read More »

How to create Secondary Database connections in SAP ABAP

In addition to the primary database, other databases can be accessed using secondary database connections. Using Open-SQL: The keyword ‚CONNECTION’ and the database connection name is specified in the query. The connections are maintained in the Transaction ‘DBA COCKPIT’. Syntax: SELECT ….. FROM db_table CONNECTION connection_name INTO …. Example: The Secondary Database name is secondary_db

How to create Secondary Database connections in SAP ABAP Read More »

How to use events of class CL_SALV_EVENTS_TABLE in SAP ABAP ALV Display

The new ALV Display provides different events based on the class CL_SALV_EVENTS_TABLE. It is much lesser compared to the old ALV Display. The Events can be found in the ‘Events’ tab of the class. Let us discuss about the following important Events of the class CL_SALV_EVENTS_TABLE. Events Description DOUBLE_CLICK This event will be triggered, when

How to use events of class CL_SALV_EVENTS_TABLE in SAP ABAP ALV Display Read More »