on 06-01-2022 9:11 PM
Hello Sap Community,
When trying to export or go to the end of the last page, I am getting the SAP Crystal Reports error :
"An Array's dimension must be an integer between 1 and 1000"
After clicking "OK" an existing following formula pops up:
WhilePrintingRecords;
stringvar array plant;
redim preserve plant[GroupNumber];
plant[GroupNumber] := GroupName ({Command.EVSTRNAME});
Please advise how to address the error. Would appreciate. Thanks
I would tweak your formula to initialize the array to have at least one entry. This is how I've done it in the past using Crystal syntax:
WhilePrintingRecords;
stringvar array plant;
If OnFirstRecord then
plant := makeArray(GroupNumber); //I don't remember whether you need the ; here...
else
redim preserve plant[GroupNumber];
plant[GroupNumber] := GroupName ({Command.EVSTRNAME});
''
The final empty string sets this up so that the formula doesn't display anything if you need to put it in a section that has other data - you don't need it if you want to display the name.
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.