Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Re: Script logic division function

$
0
0

Sorry for delayed reply...

 

We have very complex calculation for allocation, i will explain as below.


First Delivery Management allocation.


1. Get the total Revenue based on controlling area and BL (Business Line. from PCA_A dimension i need to get controlling area,

 

Key dimensions for this are Account,PCA_A and Costobject , where i have WBS and Costcenter both in costobject dimension,


My revenue data will be as below, i should get totalRev


ACCOUNT_ABPCOSTOBJECTCUSTACCTEMPACTIVITYENTITYEXECLOCATIONCURRENCYINTCOPCA_ADATASRCSITETIMEVERSIONAMT
511001BP_NONE01-00391-01C_20008301EACT_NONE10INXXINRI_NONE1000_20008301INPUT10012016.FEBV1001500
      



2. Get the total cost based on controlling area and Business Line.

We have 9 Cost.

 

1. Employment cost

2.Space cost

3. Special

4. Recruitment

5. Training

6. Depreciation

7. Travel

8. TravelReccovery

9.Space Depreciation

 

1. Get the Total Employment cost based on controlling area and BL. BL we will get parenth2 of PCA_A

 

611000BP_NONE1000_5002030000CUST_NONEEACT_NONE10INEXECLOC_NONEINRI_NONE1000_50020300INPUT10012016.FEBV100550
611001BP_NONE1000_5002030001CUST_NONEEACT_NONE10INEXECLOC_NONEINRI_NONE1000_50020300INPUT10012016.FEBV100300

                   

After getting TotalEmpcost =

 

3. Get rate = TotalEmpCost\totalRev

 

4. Multiply rate with each WBS to allocate the cost particular WBS

 

 

ACCOUNT_ABPCOSTOBJECTCUSTACCTEMPACTIVITYENTITYEXECLOCATIONCURRENCYINTCOPCA_ADATASRCSITETIMEVERSIONAMT
511001BP_NONE01-00391-01C_20008301EACT_NONE10INXXINRI_NONE1000_20008301INPUT10012016.FEBV1001500

 

Rate * 1500 this will be my allocated cost

 

511001BP_NONE01-00391-02C_20008301EACT_NONE10INXXINRI_NONE1000_20008301INPUT10012016.FEBV1003200

 

Rate * 3200

 

 

 

this is my requirement, i just trying to  simplify using script.

 

Logic already working in ABAP BADI. it's taking too much time to run.

 

so any suggestion, can we go head with BADI are , script logic will be more help full.

 

i am not worried about   

 

EMPACTIVITY

EXECLOCATION

 

only my worried is about, ACCOUNT_A, COSTOBJECT, PCA_A   

 

Regards,

Devi


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

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