SAP StackFICOHRMMSDPMPSABAPNetWeaverTablesTcodes ☰MENU

ABAP INSERT into Table statement

INSERT statement is used for inserting items in Database Tables, Index tables, Internal Tables, Field Groups etc in our ABAP programs. Here we are going to refer about the INSERT statement with tables. For tables INSERT statement will insert new lines in the specified data base tables or internal tables. Now let us check for the syntax and variations.

Insert into DATABASE Tables

Syntax

INSERT <dbtab> FROM <wa>.

INSERT <dbtab> FROM TABLE <itab> [ACCEPTING DUPLICATE KEYS].

Insert into Internal tables

Syntax

INSERT <line>|LINES OF <jtab> [FROM <n1>] [TO <n 2>]

INTO TABLE <itab>

[ASSIGNING <FS> | REFERENCE INTO <dref>].

Here is a sample ABAP program structure with INSERT statement

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes

SAP ALECRMSCMSRMSAP Solutions SAP ReferencesSAP BasicsPP ModuleWMSAP Partners
HomeContact & Privacy PolicyTwitter
All of the product names here are trademarks of their respective companies. The site sapstack.com is not affiliated with SAP AG.
©2024 sapstack.com