2007 Jul 09 9:28 PM
can we apply select statement on internal table.if yes thrn let me know how to do.
can we apply select statement on internal table.if yes thrn let me know how to do.
2007 Jul 09 9:29 PM
2007 Jul 09 9:37 PM
Hello,
No you cant....but you can do it as Rob said, or try looping under the table with a were restriction.
loop at it_case where key eq = 'xxx'
endloop.
or
Read table it_case where key eq 'xxx'.
bye
Gabriel
2007 Jul 10 4:10 AM
Dear Sachin,
You cannot use SELECT statement on internal table.
If you want to select some rows from internal table you can LOOP the table or you can READ the table.
<u>Please check the following links for your kind reference:</u>
<b>http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
http://www.sap-img.com/ab009.htm
http://www.itsmarc.com/crs/Clas0302.htm
http://www.sapdevelopment.co.uk/tips/tips_itab.htm
http://searchsap.techtarget.com/search/1,293876,sid21,00.html?query=whatisinternaltable&bucket=ALL</b>
Cheers !
Moqeeth.
2007 Jul 10 4:13 AM
Hi Sachin,
The select statement is to get the data from DB table. So you can't use it with internal tables.
Regards,
Atish
2007 Jul 10 5:07 AM
Hi,
The select statement will not use in internal table, if you want to see the internal table value use loop statement.
EXAMPLE:
**************
LOOP AT ITAB.
WRITE: 'MATERIAL NO', ITAB-MATNR.
ENDLOOP.
IF USEFULL REWARD
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |