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

3-month report for CCtrs in Report Painter

$
0
0

Dears

 

I am trying to create a Report Painter report using GRR1 transaction.

 

Selection criteria: (example)

 

Fiscal Year : 2015

Period : 11

Cost Centre Group = GA0001

 

The report needs to display the figures of period 11/2015, 12/2015 & 01/2016.

Similarly for any other period xx, the report shall display the results of xx, xx+1, xx+2.

 

I created variables for period and fiscal year to formulate the the three periods and corresponding fiscal year for data derivation and display.

The results are coming OK for first two periods, but the third period is coming blank.

I think there is some error in the formula I have created.

 

Please see the formula:

 

1. Periods

 

Znper1 is for period xx+1

znper2 is for period xx+2.

 

 

znper1IF '&1PERIK' < 12 THEN '&1PERIK' +1 ELSE 1
nzper2IF '&1PERIK' < 11 THEN '&1PERIK' +2 ELSE '&ZNPER5'
znper4IF '&1PERIK'=11 THEN '&1PERIK'=1
znper5IF'&1PERIK'> 11 THEN '&1PERIK'= 2 ELSE 'ZNPER4'

 

2. Fiscal years

 

 

zfyr1IF '&1PERIK'<12 THEN '&1GJAHLJ' ELSE '&1GJAHLJ' +1
zfyr2IF '&1PERIK'<11 THEN '&1GJAHLJ' ELSE '&1GJAHLJ' +1

 

My programming code logic is very limited and I dont know what is the problem and how to correct it.

Could you please help me ?


Viewing all articles
Browse latest Browse all 3523

Trending Articles