ABAP

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 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 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 »

Five Important rules to improve the performance of Database access

Output results must be minimum. Please try to use where, having constraints in the query to reduce the data records read from the Database table. Use SELECT colum1, column2 instead of SELECT *From. The performance will be better as only the important columns are selected in the query. Use Joins instead of writing multiple select …

Five Important rules to improve the performance of Database access Read More »

How to find the code location to change the column heading of an ALV List

Determine the structure behind the ALV List by right clicking on the ALV List Determine the Table type for the structure using the Where used option in SAP ABAP Determin the corresponding Program for the Table type using the Where used option in SAP ABAP (Ctrl+Shift+F3) Click a particular program in the results list Click …

How to find the code location to change the column heading of an ALV List Read More »