Comments

ABAP read command to read line of internal table in SAP




In-order to read a specific line of an internal table you need to use the abap READ command.

READů TRANSPORTING NO FIELDS.
READ HASHED Table
READ into FIELD-SYMBOL

There was a new command for 4.6 which should be used when you are reading the itab with its full table key.
READ WITH TABLE KEY


Here are a few examples how to use the READ statement


	READ TABLE it_itab into wa_itab with TABLE KEY city = pa_city
        				               Country = pa_country.

	READ TABLE I_spfli index 3 ASSIGNING <fs_spfli>
	" fs_spfli contains values read from I_spfli, same as using WA.





sapdev logo background
sapdev logo sapdev logo


Can't find something on ERPWorkbench? A quick search should fix that: