Can anyone provide the BADI code the run allocation logic based on below script logic ?
// Allocate equal values from Product to SKU for Account = VOLUME (AF)
// apr to dec
*SELECT(%VARI2%,"[ID]",U_ENTITY,"[CONTROL_LEVEL]='1'")
*FOR %VARI% = 04,05,06,07,08,09,10,11,12
*FOR %VARI3% = %VARI2%
*XDIM_MEMBERSET TIME = BAS(2014.TOTAL)
*XDIM_MEMBERSET U_CATEGORY = Plan
*XDIM_MEMBERSET U_ENTITY = BAS(INDIA)
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET U_ACCOUNT = BAS(STAT_ACCT)
*XDIM_MEMBERSET U_PRODUCT = F000000000_INP
*XDIM_MEMBERSET U_DISTCH = 10
*RUNALLOCATION
*FACTOR=USING/TOTAL
*DIM U_DISTCH WHAT=10; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_ACCOUNT WHAT=VOLUME; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM TIME WHAT=2014.%VARI%; WHERE=<<<; USING=2013.%VARI%; TOTAL=<<<
*DIM U_CATEGORY WHAT=Plan; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_ENTITY WHAT=%VARI3%; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM RPTCURRENCY WHAT=LC; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_PRODUCT WHAT=F000000000_INP; WHERE=BAS(F000000000); USING=<<<; TOTAL=<<<
*ENDALLOCATION
*NEXT
*NEXT
// jan to mar
*SELECT(%VARI4%,"[ID]",U_ENTITY,"[CONTROL_LEVEL]='1'")
*FOR %VARI6% = 01,02,03
*FOR %VARI5% = %VARI4%
*XDIM_MEMBERSET TIME = BAS(2014.TOTAL)
*XDIM_MEMBERSET U_CATEGORY = Plan
*XDIM_MEMBERSET U_ENTITY = BAS(INDIA)
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET U_ACCOUNT = BAS(STAT_ACCT)
*XDIM_MEMBERSET U_PRODUCT = F000000000_INP
*XDIM_MEMBERSET U_DISTCH = 10
*RUNALLOCATION
*FACTOR=USING/TOTAL
*DIM U_DISTCH WHAT=10; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_ACCOUNT WHAT=VOLUME; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM TIME WHAT=2015.%VARI6%; WHERE=<<<; USING=2014.%VARI6%; TOTAL=<<<
*DIM U_CATEGORY WHAT=Plan; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_ENTITY WHAT=%VARI5%; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM RPTCURRENCY WHAT=LC; WHERE=<<<; USING=<<<; TOTAL=<<<
*DIM U_PRODUCT WHAT=F000000000_INP; WHERE=BAS(F000000000); USING=<<<; TOTAL=<<<
*ENDALLOCATION
*NEXT
*NEXT