Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9262

Is there any bug in my grouper code?

$
0
0

Hi, sap experts

 

I'm using the following code to group my crosstab.

 

whilereadingrecords;
numbervar c1; numbervar c2;
numbervar nPreviewPeriod;
numbervar nGrouper ;
numbervar nCounter;
if{DataTable_SHUIPING.周期} <> nPreviewPeriod then
(    nGrouper := nGrouper +1;    nCounter:=0;
)
else    nCounter:=nCounter+1;
nPreviewPeriod := {DataTable_SHUIPING.周期};
if remainder(nGrouper,3)=0 and nCounter=0 then
    c1:=c1+1
else    c1

QQ截图20140822163956.png

 

 

And I when meeting some null combinations in my crosstab, it breaks down.

 

QQ截图20140822164120.png

 

Can somebody tell me why. thanks.


Viewing all articles
Browse latest Browse all 9262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>