How to select data in sap script itself

in

Hello guru,
Is there is any method for data selection or

write select statement in sap script itself.
thanx and regards amit.