on 06-01-2011 5:53 AM
Hi BPC Gurus,
I am trying to calculate 30% of tax on profit after depreciation and then transfer the amount to Tax account . I have drafted the following script, but it is not working. I have PAD = Profit after depreciation and 489100 = Corporate Income Tax.
*WHEN P_ACCT
*IS PAD
REC(EXPRESSION=%VALUE%0.3, P_ACCT=489100)
*ENDWHEN
*COMMIT
Can you help and explain whats wrong in it and why its not working.
Regards,
KumarMG
Hi,
Are you getting any error?
How are you executing this script?
Try to validate and execute it in UJKT and let me know the result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilanjan,
I have tested in UJKT, the result is as follows.
APPSET:BPC_Planning
APPLICATION:PLANNING
[INFO] GET_DIM_LIST(): I_APPL_ID="PLANNING", #dimensions=10
CATEGORY,ENTITY,MEASURES,PCHARKF,PFLOW,P_ACCT,P_ACTIVITY,P_DATASRC,RPTCURRENCY,TIME
#dim_memberset=0
SCRIPT RUNNING TIME IN TOTAL:0.06 s.
Regards
KumarMG
Hi Nilanjan,
For example if my company has a profit of Rs.1000000 after depreciation, I want 30% of PAD to be calculated automatically and then the amount to be transferred to Corporate Tax (489100).
Now as script is working in UJKT, but it is not calculating the tax amount at all i.e. Rs. 300000 and transfered to corporate tax.
Regards,
KumarMG
Hi Nilanjan,
I have gone thru SAP note. I have written script and got validet in UJKT. Even then also the tax is not calculated. May be my script colud be not appropriate or can I use dim ension formula also. If so pls give me link for the script logics and dimension formula. I am pasting the script and its validation in UJKT.
*XDIM_MEMBERSET TIME = 2012.TOTAL
*WHEN_REF_DATA = MASTER_DATA
*WHEN P_ACCT
*IS PAD
REC(EXPRESSION=%VALUE%1.30, P_ACCT=489100)
*ENDWHEN
*COMMIT
UJKT Validation:
APPSET:BPC_Planning
APPLICATION:PLANNING
[INFO] GET_DIM_LIST(): I_APPL_ID="PLANNING", #dimensions=10
CATEGORY,ENTITY,MEASURES,PCHARKF,PFLOW,P_ACCT,P_ACTIVITY,P_DATASRC,RPTCURRENCY,TIME
#dim_memberset=1
TIME:2012.TOTAL,1 in total.
SCRIPT RUNNING TIME IN TOTAL:0.07 s.
Regards
KumarMG
Hi Kumar,
You said "PAD" is a calculated member .If it is a Dimension member formula, you know that values are calculated on fly (when we run the report) they are not saved in the data base. When you are running the script on data region where there is no data, I don't think it will bring any values.
In your case, better you go with Dimension member formula.
FORMULA for 489100= [PAD]*0.3
Thanks
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.