2009 Jan 12 4:28 PM
Hi Friends,
I am hitting table CDHDR and getting a huge data based on date range and the problem is the internal table is not able to hold the entire data selected and hence it is going for run time error. Could you please suggest an idea to overcome this?
Thanks in advance,
Ram
Hi Friends,
I am hitting table CDHDR and getting a huge data based on date range and the problem is the internal table is not able to hold the entire data selected and hence it is going for run time error. Could you please suggest an idea to overcome this?
Thanks in advance,
Ram
2009 Jan 12 4:30 PM
Better to use Objectclass field in where clause or run for user and small date range
2009 Jan 12 4:35 PM
Hi,
I have the class and the date range only. I do not have any more data to restrict. I am using the class as 'MATERIAL' and the date range given in selection screen.
Regards,
Ram
2009 Jan 12 4:30 PM
2009 Jan 12 4:34 PM
Post ur SQL Query and we can see if we can help.
Thanks,
Sobhan.
2009 Jan 12 4:37 PM
Hi,
here is the code i have written...
Get all changes to materials in the given date range
SELECT objectclas " Object Class
objectid " Object Value
changenr " Change Document Number
udate " Changed Date
utime " Changed Time
FROM cdhdr
INTO TABLE gt_cdhdr
WHERE objectclas EQ c_clas_material
AND udate IN s_date.
Regards,
Ram
2009 Jan 12 4:41 PM
Please try and convince the Functional consultant to track the changes by Material or material group..
Changes in Material will be too large in number.. even if you get data, processing would take a lot of time on such huge data..
Add any other fields that can restrict the number of materials and from that you can create another key field for CDHDR
2009 Jan 12 5:45 PM
Can you run with just one day instead of one week or one month and see if the run time error goes away?
Thanks,
Sobhan.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |