Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

String manipulation

Former Member
0 Likes
403

Hi,

i have to pass to select statement for bukrs field as tw**, Why means the company code may be tw01 or tw02....twnn. can anybody advise me how can do this.

Moderator message - Please look at the help for SELECT before asking basic questions like this - Post locked

Edited by: Rob Burbank on Apr 24, 2009 10:00 AM

2 REPLIES 2
Read only

Former Member
0 Likes
381

Hi,


Pass it as' TW%'  to select query it will work..

Select bukrs from table where bukrs = 'TW%'.    "Try withEQ or LIke i am not sure but one will work

Select bukrs from table where bukrs like 'TW%'.

it iwll fetch all tw01,tw01 it will acts as a TW*

regards,

Prabhudas

Read only

Former Member
0 Likes
381

SELECT abc
  FROM  xyz
WHERE bukrs LIKE 'tw%'.