What is the diffrence between select single * and Select
upto 1 row?

Answer Posted / chittidi

select single f1 f2 f3 ... into <wa> from <dbtab> where
<condition>. this where condition is important to fetch
exact record from database . for thsi purpose we provide
entire primary key combination in whrere conditon.
by using this statement to read exact information .

select f1 f2 f3 .... into <wa> from <dbtab> up to 1 rows
where <condition>
endselect.
it reads the first record found which may not be exact .
the where condition can be part of primary key combination.
it is mainly used to validate the INPUT.

IF WE ARE NOT PASSING ENTIRE COMBINATION OF PRIMARY KEY
IN SELET * SINGLE IT SIMPLY ACTS AS SELECT * UP TO 1 ROWS.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi my dear friends,Please give the answers for the following link http://www.saptechnical.com/InterviewQ/interviewQ.htm

1668


What is the project you are currently working and work that you are doing

1026


What is the difference between internal tables and extract datasets? : abap modularization

672


What are the different abap editors? What is the used of different editors in abap?

572


How will you link form with the event driven in sap scripts?

535






What is the t-code to display batch input sessions? : abap bdc

639


What is gui status? How to create /edit gui status?

622


What are the field and chain statements?

586


How to creat transactions? : abap data dictionary

652


What is meant by payscale structure? How did you configure pay scale structure? : sap abap hr

538


Different types of luws. What are they?

624


What is singleton pattern in OOPS?

970


What are the functional areas? User groups?

606


What is bdc programming in sap?

616


What functions does a data dictionary perform ?

565