2009 Aug 28 5:29 AM
Hi! experts.
Please check belows.
<before>
DATA: buffer(30000) OCCURS 10 WITH HEADER LINE.
SELECT * FROM (query_table) INTO buffer WHERE (options).
endselect.
(query_table), (options) are Dynamic Sql.
-->
I also changed like this
Data : buffer type string occurs 10 with header line.
but it isn't work.
How can i change buffer declare of data type?
please help me.
Thanks.
2009 Aug 28 5:39 AM
Change this way
DATA: buffer(30000) OCCURS 10 WITH HEADER LINE.
SELECT * FROM (query_table) WHERE (options).
write : (query_table) to buffer.
append buffer.
endselect.
a®
Hi! experts.
Please check belows.
<before>
DATA: buffer(30000) OCCURS 10 WITH HEADER LINE.
SELECT * FROM (query_table) INTO buffer WHERE (options).
endselect.
(query_table), (options) are Dynamic Sql.
-->
I also changed like this
Data : buffer type string occurs 10 with header line.
but it isn't work.
How can i change buffer declare of data type?
please help me.
Thanks.
2009 Aug 28 5:37 AM
Hi,
The occurs 10 with header line clause can only be used with internal tables and not with string variables.
Try declaring something like this.
Data: begin of it_buffer occurs 10,
field1(300) type c,
field2(300) type c,
end of it_buffer.
SELECT * FROM (query_table) INTO CORRESPONDING FIELDS OF table it_buffer WHERE (options).
Regards,
Vik
2009 Aug 28 5:39 AM
Change this way
DATA: buffer(30000) OCCURS 10 WITH HEADER LINE.
SELECT * FROM (query_table) WHERE (options).
write : (query_table) to buffer.
append buffer.
endselect.
a®
2009 Aug 28 5:51 AM
Or
data: dref type ref to data.
field-symbols: <wa> type any.
create data dref type (query_table).
assign dref->* to <wa>.
select * from (query_table) into <wa> where (options).
write : <wa> to buffer.
append buffer.
endselect.
a®
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |