2007 Aug 08 12:01 PM
Hi,
Iam getting a Runtime Error when iam execuating the below select statement.iam calling IT_WHERE dynamically.
DATA : IT_WHERE like RFC_DB_OPT OCCURS 0 WITH HEADER LINE.
SELECT SINGLE KNUMH INTO <FS4>-KNUMH FROM (GLOBAL-KOTABNR)
WHERE KSCHL = <FS4>-KSCHL
AND KAPPL = 'V '
AND ( DATBI GE SY-DATUM
AND DATAB LE SY-DATUM )
<b>AND (IT_WHERE).</b>Thanks
Vikranth Khimavath
Hi,
Iam getting a Runtime Error when iam execuating the below select statement.iam calling IT_WHERE dynamically.
DATA : IT_WHERE like RFC_DB_OPT OCCURS 0 WITH HEADER LINE.
SELECT SINGLE KNUMH INTO <FS4>-KNUMH FROM (GLOBAL-KOTABNR)
WHERE KSCHL = <FS4>-KSCHL
AND KAPPL = 'V '
AND ( DATBI GE SY-DATUM
AND DATAB LE SY-DATUM )
<b>AND (IT_WHERE).</b>Thanks
Vikranth Khimavath
2007 Aug 08 12:12 PM
Hi.
in the IT_WHERE you need to write the correct conditions, like
IT_WHERE-FIELD1 = 'DATE1 = Sy-DATUM and'.
Append IT_WHERE.
IT_WHERE-FIELD1 = 'DATE2 = Sy-DATUM'.
Append IT_WHERE.
Regards
Sudheer
2007 Aug 08 12:15 PM
Hi Vikranth
You cannot give a individual field as the dynamic where clause. You have to append all the records into that internal table "IT_WHERE" and then pass that. I mean the first 4 lines of your Where clause. SO finally your where clause should look like Where (IT_WHERE).
~Ranganath
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |