‎2012 Oct 11 10:14 AM
Hi,
here's a seemingly very simple question - but then, the "egg of Columbus" was easy and everyone could do it - afterwards 😉
So - I simply need to enter a WHERE condition into a SELECT command which queries the first character in a string (in my case, in the field TABNAME in DD02T, I don't want any tables beginning with '/').
Everywhere I look I read the correct syntax is [fieldname]+(length) - so I would write >> WHERE TABNAME+0(1) <> '/' << - right? Well, probably not, for that does not work. Neither does it when I use the proper OpenSQL syntax > DD02T~TABNAME <
Can anybody help me here?
Thanks a lot!
Best regards,
Sapperdapper
‎2012 Oct 11 10:23 AM
‎2012 Oct 11 10:23 AM
‎2012 Oct 11 10:25 AM
Hi Shambu,
for the >cond< in your example, would I write TABNAME (the actual fieldname)?
To answer, no I haven't tried because I didn't know ABAP could use the % as a wildcard.
Thanks a lot!
Regards,
Sapperdapper
‎2012 Oct 11 10:28 AM
‎2012 Oct 11 12:16 PM
Perfect!
The limitation on texts in just one language brings me much more of a reduction as it seems - the limitation on DDLANGUAGE = 'DE' reduces from 1,8mio to approx. 124k and this from 124k to 123k, but that is just as well.
I guess that way or in a similar way I could also exclude tabnames that have an _ somewhere? I doubt that these tables would ever be used by the average SAP user...
Thanks a lot!
Best regards,
Sapperdapper