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

Script Logic - Writing to Base members

$
0
0

Hi Experts,


I really need help.

I need to create a script that looks at a customer parent, then write to each customer in that parent.

 

My code looks like this:

 

*XDIM_MEMBERSET TIME = 2015.JAN

*XDIM_MEMBERSET SCENARIO = SC_DUMMY

*XDIM_MEMBERSET ACCOUNT = PROD_LIST

*XDIM_MEMBERSET ACTIVITY = NO_ACT

*XDIM_MEMBERSET CHANNEL = CH_DUMMY

*XDIM_MEMBERSET CURRENCY = LC

*XDIM_MEMBERSET ORGANIZATION = PL_D

*XDIM_MEMBERSET DATASRC = TECH

*SELECT(%PRO%,"[ID]",PRODUCT,"[CALC]='N' AND [IS_DUMMY]='' AND [PR_FORMAT]='A' AND [PR_FORMAT]='B'")

*XDIM_MEMBERSET PRODUCT = %PRO%

 

 

*WHEN CUSTOMER

*IS PL0095001706_D

        *XDIM_MEMBERSET CUSTOMER = BAS(PL0095001706)

        *REC(EXPRESSION=%VALUE%)

*ENDWHEN

 

My problems are:

1. It does not write to the base members of PL0095001706, it finds them, but doesn't do anything to them.

2. We would prefer if the code could be more dynamic, thus not saying when the customer is PL0095001706_D then write to the base members of PL0095001706. Instead we want something in the line of:

 

*XDIM_MEMBERSET TIME = 2015.JAN

*XDIM_MEMBERSET SCENARIO = SC_DUMMY

*XDIM_MEMBERSET ACCOUNT = PROD_LIST

*XDIM_MEMBERSET ACTIVITY = NO_ACT

*XDIM_MEMBERSET CHANNEL = CH_DUMMY

*XDIM_MEMBERSET CURRENCY = LC

*XDIM_MEMBERSET ORGANIZATION = PL_D

*XDIM_MEMBERSET DATASRC = TECH

*SELECT(%PRO%,"[ID]",PRODUCT,"[CALC]='N' AND [IS_DUMMY]='' AND [PR_FORMAT]='A' AND [PR_FORMAT]='B'")

*XDIM_MEMBERSET PRODUCT = %PRO%

 

 

*WHEN CUSTOMER

*IS <> ""   

        *XDIM_MEMBERSET CUSTOMER = BAS([CUSTOMER])

        *SELECT(%CUST%,"[ID]",CUSTOMER,"[CALC]='N' AND [IS_DUMMY]=''")

        *XDIM_MEMBERSET CUSTOMER = %CUST%

        *REC(EXPRESSION=%VALUE%, CUSTOMER= %CUST%)

*ENDWHEN

*COMMIT

 

Unfortunately, this does not work, I want to look at all customers, get the base of the parent, and write to the children.

 

I should also mention that PL0095001706_D is a dummy customer, we created it purely to be able to post data to it (as you cannot post to a parent).

PL0095001706 is the customer parent of 5 customers.

 

We want the script to look at the customer, and write the exact same info from PL0095001706_D to the base members.

 

I hope this makes sense, I would be delighted with your response.

I have been busy with this for more than a week, and I can't seem to get it right.

 

Thanks,

Jaco de Kock


Viewing all articles
Browse latest Browse all 5414

Trending Articles



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