2006 Jun 28 10:36 PM
Hello I need to do something like this:
select single bukrs
from ce1xx00
into v_bukrs
where prctr+2(2) = 'ab'.
but is telling me prctr+2(2) is not valid.
How can I do that? I'm doing this in an RFC call and is not affordable to bring all the data from the table
Any ideas?
TIA
2006 Jun 28 10:48 PM
Scott, you can try to use a wildcard. Check this sample program. It will retrieve all program names that the 2nd and 3rd positions = 'RI'. I believe this is the type of functionality that you require.
data: itab type table of trdir with header line.
select * into table itab from trdir
<b>where name like '_RI%'.</b>
check sy-subrc = 0.
REgards,
Rich Heilman
Hello I need to do something like this:
select single bukrs
from ce1xx00
into v_bukrs
where prctr+2(2) = 'ab'.
but is telling me prctr+2(2) is not valid.
How can I do that? I'm doing this in an RFC call and is not affordable to bring all the data from the table
Any ideas?
TIA
2006 Jun 28 10:48 PM
Scott, you can try to use a wildcard. Check this sample program. It will retrieve all program names that the 2nd and 3rd positions = 'RI'. I believe this is the type of functionality that you require.
data: itab type table of trdir with header line.
select * into table itab from trdir
<b>where name like '_RI%'.</b>
check sy-subrc = 0.
REgards,
Rich Heilman
2006 Jun 28 11:08 PM
I appollogize for not document all the case from the begining. Table xxx have two fields yyy and zzz. yyy always have 4 letters and zzz have 6. the chars 2 to 6 must be equals to field yyyy. Because of a bug, there are some items that are not consistent. So I need to ask
Where zzz+2(4) ne yyy
2006 Jun 28 11:13 PM
2006 Jun 28 11:07 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |