Skip to Content

Limiting Default Script to Specific Entity

Limiting Default Script to Specific Entity
Hi Experts
I created a manual task (copy of Default) that executes the default script. I would like to limit to a specific ENTITY. However, it runs for all entities.
Below is the DM script I used and part of the default script (it runs 2 separate ABC to calculate Net Income and the variation F15 flow).
The script does not limit to entity – even when I hard code the entity value and run in UJKT.
Any way to limit?


1) Added ENTITY_DIM
DM Script:
PROMPT(SELECTINPUT,,,,"%CATEGORY_DIM%,%ENTITY_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_AUTOMATIC.LGF )


// DEFAULT_AUTOMATIC.LGF 23/3/15 SETUP TO RUN BY DM TASK

*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
ENTITY = %ENTITY_SET%
CURRENCY = %CURRENCY_SET%
TID_RA = %TIME_SET%
SCOPE = S_NONE

CALC=NETINCOMESPLIT2
*ENDRUN_PROGRAM

*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
ENTITY = %ENTITY_SET%
CURRENCY = %CURRENCY_SET%
TID_RA = %TIME_SET%
SCOPE = S_NONE

CALC = TBS
*ENDRUN_PROGRAM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Mar 26, 2015 at 04:19 AM

    Hi Eyal,

    Change your logic to:

    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY = %CATEGORY_SET%

    TID_RA = %TIME_SET%
    GROUPS = S_NONE

    CALC=NETINCOMESPLIT2

    OTHER=[ENTITY = %ENTITY_SET%;CURRENCY = %CURRENCY_SET%]
    *ENDRUN_PROGRAM

    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY = %CATEGORY_SET%
    TID_RA = %TIME_SET%
    GROUPS = S_NONE

    CALC = TBS

    OTHER=[ENTITY = %ENTITY_SET%;CURRENCY = %CURRENCY_SET%]
    *ENDRUN_PROGRAM

    Let me know how it goes

    BR,

    Hendry

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2015 at 05:49 AM

    Hi Eyal,

    Can you please elaborate in detail.

    1. What is the use of DM Script, though you r passing hard coded values.

    2. if you used DM package, you need to run through RUN package and passed the values from there

    3. If you wanna go with the DM package and want to check your values, please implement UJ_CUSTOM_LOGIC BADI

    and write the below code in logic script.

    *START_BADI XYZ (your BADI Filter name)

    QUERY = ON

    WRITE = ON

    VERSION = %VERSION_SET%

    ENTITY = %COMPANY_CODE_SET%

    TIME = %YEAR%

    *END_BADI

    Regards

    Rohit

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 26, 2015 at 10:18 AM

    Hi Eyal,

    Please provide the REAL name of the ENTITY type dim!

    Then use the real name in

    OTHER=[ENTITY = %ENTITY_SET%]


    CURRENCY = %CURRENCY_SET% - correct!


    Anyway, look on the syntax here:Account-based Calculations as Script Logic - SAP Business Planning and Consolidation, version for SAP NetWeaver - SAP Li…

    Vadim

    Add a comment
    10|10000 characters needed characters exceeded

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.