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

How to handle different scope in script logic?

$
0
0

Hi Experts!

 

I faced the following problem in script logic:

I have to multiplication two different dimension section ()

 

The example:

Factor1:

REPSCENTER: BAS(TOTAL)

MATERIAL: DUMMY_MATERIAL

PRODUCT: BAS(TOTAL)

 

Factor2:

REPSCENTER: DUMMY_REPSCENTER

MATERIAL: BAS(TOTAL)

PRODUCT: BAS(TOTAL)

 

Outcome:

REPSCENTER: BAS(TOTAL)

MATERIAL: BAS(TOTAL)

PRODUCT: BAS(TOTAL)

AMOUNT: Factor1*Factor2

 

I tried this script, but after 15 minutes I got ABAP program error (insufficient memory)

*SELECT(%RESPCENTER_MA%),”[ID]”,REPSCENTER,”[SECTOR]=’TA’”) //select the relevant 30 respcenter

 

*XDIM_MEMBERSET RESPCENTER = “DUMMY_RESPCENTER”

*XDIM_MEMBERSET MATERIAL = BAS(TOTAL)

*XDIM_MEMBERSET PRODUCT = BAS(TOTAL)

 

*FOR %LOOP_TA_RESPCENTER% = %RESPCENTER_MA%

 

*WHEN RESPCENTER

*IS *

*REC(EXPRESSION=%VALUE%*([RESPCENTER].[ %LOOP_TA_RESPCENTER%],RESPCENTER=%LOOP_TA_RESPCENTER%))

*ENDWHEN

 

*COMMIT

 

*NEXT

 

The modell contain about 3 000 materials and 1 200 products. Sorry about the short example and the missing log, I only curious about there is a better way to handle this calculation in script logic.

 

Any ideas are welcome.

 

Thanks

Norbert


Viewing all articles
Browse latest Browse all 5414

Trending Articles