Hi everyone,
I am running a report to rename some Items in the database...The report is based on the Item table and the request filter fields Gen. Prod. Posting Group.
When I run the report after selecting a particular Gen. Prod. Posting Group and then look at the Item table, I find that there are modified items that do not belong to the selected group...
Before running the report in the customer test database (a huge one), I tried it in the Cronus database and it worked just fine...The issue appears with the customer database...
Can someone explain ????
0
Comments
show your report code perhaps the answer lies in there.
maybe your not clearing some variable....
maybe your filter is being cleared somewhere....
http://www.BiloBeauty.com
http://www.autismspeaks.org
IF (COPYSTR("No.",1,2) = 'Y_') THEN CurrReport.BREAK;
CurrentItem.RESET;
IF CurrentItem.GET("No.") THEN
BEGIN
num:=CurrentItem."No.";
IF (COPYSTR(num,1,2) = 'Y_') THEN CurrReport.BREAK;
CurrentItem.RENAME('Y_'+num);
CurrentItem.Blocked := TRUE;
CurrentItem.MODIFY;
END;
Chn