‎2008 Feb 27 7:03 AM
Hi Gurus,
Can anybody explain me the below query. what does it actually do.
SELECT SINGLE INCPO INTO TVLK-INCPO
FROM TVLK
WHERE LFART = 'EL'.
thanks,
Ram.
‎2008 Feb 27 7:07 AM
Hi Ram,
The following query is fetching INCPO(Field) into TVLK-INCPO ( internal table field) from table TVLK where LFART = 'EL'.
Regards
Sourabh
‎2008 Feb 27 7:10 AM
‎2008 Feb 27 7:10 AM
Hi
SELECT SINGLE INCPO INTO TVLK-INCPO
FROM TVLK
WHERE LFART = 'EL'.
this will select single record of INCPO from TVLK table by checking the condition LFART = 'EL'.
‎2008 Feb 27 7:11 AM
hi,
this 'single' will fetch one record depending upon the where condition
it is updating the incpo field with the value where LFART = 'EL'
regards,
pavan t.
‎2008 Feb 27 7:14 AM
Ram,
SELECT SINGLE INCPO INTO TVLK-INCPO
FROM TVLK
WHERE LFART = 'EL'.
When you declare the TAbles statement it will allocate some memory(work area) to that table
TABLES :TVLK--database table.
selecting the data based on condition and putting into work area of table TVLK.
‎2008 Feb 27 9:04 AM
Hi Ram,
If you define a statement TABLES followed by TVLK ..
It will create a WorkArea with the Structure of TVLK.
If this is your SELECT query..
SELECT SINGLE INCPO INTO TVLK-INCPO
FROM TVLK
WHERE LFART = 'EL'.
It will Fetch INCPO Value from the database table TVLK Where LFART equals to EL.
Regards.
Prabhu.
‎2008 Feb 27 9:16 AM
Hi,
SELECT SINGLE INCPO INTO TVLK-INCPO
FROM TVLK
WHERE LFART = 'EL'.
In the above query , INCPO value which is related to LFART = 'EL', will be replaced in the internal table field TVLK_INCPO.
REgards,
kavitha