Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Allocation logic with FOR/NEXT Loop

$
0
0

Hi Experts,

I am currently having trouble with my script logic. I am on BPC10 NW and I want to write a script that will copy the data from one fiscal period to the next. but My script validates and also Data Package also works but for some reason the wrong data gets copied. I want to copy budget data from 2015 ( the first 3 months) to actual data in 2014(the first 3months).

Here is my script and data package information

 

*XDIM_MEMBERSET FPERIOD as %Q1%=BAS(2016.Q1)

*XDIM_MEMBERSET FPERIOD as %Q2%=BAS(2014.Q1)

 

*FOR %Q1% = 2016.001, 2016.002, 2016.003

*FOR %Q2% = 2014.001, 2014.002, 2014.003

 

*RUNALLOCATION

*FACTOR = 1

*DIM FISCALPERIOD     WHAT = %Q1%;     WHERE = %Q2%;

*DIM VERSION          WHAT = BUDGET;        WHERE =ACTUAL;

*ENDALLOCATION

*NEXT

*NEXT

 

 

The name of my script is EXAMPLE.LGF

 

TASK(/CPMB/ALLOCATION_LOGIC,SUSER,%USER%)

TASK(/CPMB/ALLOCATION_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/ALLOCATION_LOGIC,SAPP,%APP%)

TASK(/CPMB/ALLOCATION_LOGIC,LOGICFILENAME,COPY_DATA_NO_NONAGGR.LGF)


Viewing all articles
Browse latest Browse all 5414

Trending Articles