‎2007 Aug 15 4:25 PM
Hi,
Is there any select statement <b>to select all the fields from a table xyz, except one field ???</b>
Thanks!!
Kode
‎2007 Aug 15 4:32 PM
Get all the fields into an internal table and then do a modify blanking out just that one field that you don't want. Something like this.
select * from dbtab into itab where <...>.
clear itab-dontwantthisfield.
modify itab transporting dontwantthisfield where dontwantthisfield is not initial.
‎2007 Aug 15 4:28 PM
‎2007 Aug 15 4:32 PM
Get all the fields into an internal table and then do a modify blanking out just that one field that you don't want. Something like this.
select * from dbtab into itab where <...>.
clear itab-dontwantthisfield.
modify itab transporting dontwantthisfield where dontwantthisfield is not initial.
‎2007 Aug 15 4:33 PM
HI Priya,
No it is not possible.
either u have to use select * or u use select field1 field2 .. to select the data from a table.
use the second option<b> select field1 field2 ..</b> if you really want to exclue one field
Thanks
Mahesh
‎2007 Aug 15 7:39 PM
Hi Priya,
You can do this..
Create an internal table with all the fields required.
Write select * from dbtab into CORRESPONDING FIELDS OF TABLE ITAB
WHERE...
This avoid writing every field in the query.
Hope this solves your problem.
-Kriss
‎2007 Aug 16 9:03 PM
‎2007 Aug 16 9:06 PM
Please let me know how is it resolved. Award the points please..
-Kriss
‎2007 Aug 16 9:17 PM
Hi Kriss,
Actually they changed the requirement a bit. So I didn't get a chance to use any of these solutions. But I got a very good information.
Anyways I will reward points..
‎2007 Aug 16 9:28 PM