cancel
Showing results for 
Search instead for 
Did you mean: 

Read statement..

Former Member
0 Kudos

Hi frnds,

I have a ITAB having many columns.. And i want to read one of the column (itab_adrnr) of the first row ( index = 1).

When i use the READ statement it reads the entire row.. So.. Friends .. plz help me....

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do like this.

Read Table <itab> into <wa> index 1.

Pass wa-field1 into a variable.

Reward if this helps,

Satish

Answers (1)

Answers (1)

amit_khare
Active Contributor
0 Kudos

READ always read the entire row therefor use this.

READ itab into wa_itab index 1.

if sy-subrc = 0.

v_var = wa_itab-ardnr.

endif.

Regards,

Amit

Reward all helpful replies.