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

What are Tickets in Realtime ?

1671


What will you code in start-of-selection & end-of-selection ?

587


How do you validate the selection criteria of a report? And how do you display initialvalues in a selection screen?

610


What is output determination?

676


What is the difference between collect and sum?

570






Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc

520


How do you execute the payroll

1828


How table control cn be generated using bdc? : abap bdc

568


What are the buffering types?

599


What are the organizational related Infotypes

1563


How did you test the form you developed? How did you taken print?

606


Events that can be used in both the classical and interactive reports

1117


What is a modification assistant?

586


What are spa/gpa parameters (sap memory)?

715


How to transfer data into line items using batch input session method? : abap bdc

586