Skip to Content

Executing Script Logic File with Data Manager package

Hello all,

I have a script logic file that I want to execute using Data Manager package. As I know, while creating a package, I need to modify the data manager dynamic script. Could someone explain me what I need to add to the data manager dynamic script? And possibly write here the dynamic script for script logic that I write below?

I was reading the book for BPC420, and it was mentioned very briefly what needed to be added to it, so I didn't quite understand it.

Here is my script logic file called testlogic.lgf .

*SELECT(%EH%,"[ID]","D34_ENTITY","[LEVEL]='BU_INP'")

*XDIM_MEMBERSET D34_ENTITY=%EH%

*XDIM_MEMBERSET D63_FLOW = D63.03.2,D63.03.2.1,D63.03.3,D63.03.3.1,D63.03.4.1

*FOR %Q1%=%EH%

*RUNALLOCATION

*FACTOR=1

*DIM D34_ENTITY WHAT=%Q1%; WHERE=[BU]="%Q1%" AND [FINDATA] = "Y";

*DIM D63_FLOW WHAT= D63.03.2,D63.03.2.1,D63.03.3,D63.03.3.1,D63.03.4.1; WHERE=<<<;

*ENDALLOCATION

*COMMIT

*NEXT

Thank you,

Jake Alexander

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 09, 2014 at 08:47 AM

    Hi Jake,

    You need to modify the data manager dynamic script if you want to pass some parameters to the script (for example to define scope of the script etc.). If you use DEFAULT_FORMULAS process chain the standard dynamic script will be generated:

    PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")

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

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

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

    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)

    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,DEFAULT.LGF)

    In the first line you can select dimensions to be presented to user to select members.

    In the last line you have to put the name of your lgf file instead of DEFAULT.LGF.

    Vadim

    P.S. And don't use COMMIT - useless here!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 10:15 AM

    Hi,

    I believe you are using ALLOCATION_LOGIC as process chain that generates standard dynamic script as below.

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

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

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

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

    In the last line you have to put the name of your lgf file i.e.testlogic.LGF.

    Hope this will help you.

    Regards,

    Devi

    Add a comment
    10|10000 characters needed characters exceeded

    • There is no difference between the chains: /CPMB/DEFAULT_FORMULAS_LOGIC and /CPMB/ALLOCATION_LOGIC. Actually the different chains are inherited from BPC 7.0 were it was required to create an individual chain for each DM package (even absolutely same inside).


      When you select a chain some default dynamic script is created. For DEFAULT_LOGIC some dimensions are available for user to define scope. For ALLOCATION_LOGIC the selection lines are missing (but can be added).


      Vadim

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.