Академический Документы
Профессиональный Документы
Культура Документы
Physical Database
Logical Database
REPORT: ZRACER01. TABLES: LFA1, LFB1, LFC3. GET LFA1. GET LFB1.
Authorisation Checking
No Authorisation Checking
GET LFB3.
SQL (SELECT)
ABAP Programs
REPORT: YNEWAPPL. TABLES...
Database TABNA
LFA1
ENDSELECT.
LFC1
Data
ABAP Reports
August-2003 SELECT Statement | Document 2.09 2
The SELECT SINGLE* statement where country eq D requires the full primary key of and id eq 00000002. the table in the WHERE clause.
if sy-subrc = 0. write: tabna-country, tabna-id, tabna-name1. endif. August-2003 SELECT Statement | Document
2.09
ENDSELECT.
August-2003
EQ GE LE NE GT LT
Relational Operators
4
August-2003
The _ is an any character positional parameter. for any string of any length.
write: / tabna-country, tabna-id, tabna-name1. endselect. if sy-subrc ne 0. write: / The conditions cannot be satisfied. endif. August-2003 SELECT Statement | Document 2.09 8
* *& Report Y170DM71 ORDER * BY <table field 1> *& * <table field 2> *&----------------------------------------------------------------------------------------------- * <table field 3> *& * : & * * : *&----------------------------------------------------------------------------------------------- * <table field n>. report y170dm71.
PRIMARY KEY.
tables: lfa1.
ENDSELECT.
* Notice the order by clause below.---------------------------------------------- * select * from lfa1 order by name1. write: / lfa1-lifnr, lfa1-name1. endselect. August-2003 SELECT Statement | Document 2.09 10
BYPASSING BUFFER
SELECT * FROM <table>
BYPASSING BUFFER WHERE <condition>. : : : ENDSELECT.
August-2003 SELECT Statement | Document 2.09 11