Skip to Content
0
Former Member
Jun 30, 2009 at 07:02 AM

How to use select statement for one field

65 Views

I want to fetch the data from table and only one field , the below code i written is correct or not , because only for one field i used endselct if i am not giving endselect it is showing error. Please suggest me.

DATA : SBELN TYPE VBAK-VBELN.

parameters : s_vbeln type vbak-vbeln.

select vbeln from vbak into sbeln

where vbeln = P_VBELN.

endselect.