Script Logic - Check Work Status
Hi,
I am using the standard process chain "/CPMB/DEFAULT_FORMULAS_LOGIC" to trigger Script logic file.
I have created some logic to clear and copy data to a targer category. I want to check the workstatus of the target category and if it is locked i want to clear/copy to fail.
I am not sure how to go about this? I was thinking of adding the following but that is just a guess!
TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)
any advice would be helpful.
Thanks,
Hi,
Ideally did want an option for the user to select option to check whether the copy should happen if the data had been locked. Have done this via the standard COPY package.
Can this be done with the script logic e.g. using paramters in the package?
Or if you create a script logic file does it always check the workstatus?
thanks
Similar Messages
-
Dear ALL,
I'm working on SAP BPC 10.0 NW version.
So, I'm launching a script logic for a particular company, actually working on the currency translation but unfortunately I got an error "Error checking work status".
I did enable the Work Status in my model, and I did also put 2 Controls in it. But, I'm very sure the 2 Controls are all pass which I could also see the same from Control Monitor.
Any part which I could have missed out or any steps I have to work on in order to skip the error?
BR,
AntonyHi Antony
Finally the problem was bigger than I thought; the user uploaded data from previous period and it’s affected the currency conversion, because it is configured at periodic way
The access member profile for each group was configured wrongly, too
We fix this point and the currency conversion and the work status pass OK
Thank for your time answer its
Regards
Ariel -
I'm trying to write a script to check the status of a package on aur; ie, to see if its been updated since I've installed it.
Here's what I have so far:
#!/bin/sh
PACK=$1 #package name
PACKID=$2 #package ID on AUR
#grab last updated of package on AUR
LUPD=`elinks -source http://aur.archlinux.org/packages.php?ID=$PACKID | grep "Last Updated" | awk -F : '{print $2}'`
LAST=`grep -c $PACK /var/log/pacman.log` #number of instances of package
INST=`grep $PACK /var/log/pacman.log | sed -n ${LAST}p` #get last instance
echo -e "Package: $PACK \n $INST \n Last Update: $LUPD"
This basically works fine for manually inputting a package name and AUR ID (though it needs to be prettied up):
[mike@esme abs]$ aurcheck rxvt-unicode-256color 13060
Package: rxvt-unicode-256color
[2008-04-18 20:01] installed rxvt-unicode-256color (9.02-1)
Last Update: Sun, 04 May 2008 14
but what I envision is having a two column file with the first column the package name and the second the ID but I can't figure out how to make this loop around for each line of such a file. If anyone can provide some help/pointers I'd greatly appreciate it.
PS Perhaps yaourt can do this for you, but I don't use yaourt and would like to learn how to do this even just to improve my scripting abilities
Thanks!Daenyth wrote:Oh wow, I had no idea such a thing existed... Very cool!
Expanding on my suggestion, here's the bash/js-script I use to find packages in AUR:
wget="/usr/bin/wget -q -O-"
aurrepo="http://aur.archlinux.org/rpc.php?type=search&arg="
js="/usr/bin/js"
aur() {
local iam="${FUNCNAME[0]}:"
local cmd="${1}"
local what="${2}"
local aurresult=""
[[ -z "${cmd}" ]] && {
echo "${iam}: use ${iam} (cmd) searchstring"
return 1
aurresult="$(${wget} ${aurrepo}${what})"
${js} -e "
var out = ${aurresult};
var res = out.results;
var i, j, len;
var tabs = ' ';
var tabstop1 = 13;
var oneline1 = {
'ID':true, 'CategoryID':true, 'NumVotes':true,
'OutOfDate':true, 'License':true
var oneline2 = {'Name':true, 'Version':true};
var line1='', line2='';
var others = {};
function tabto(string) {
return tabs.substring(1, tabstop1 - string.length);
if (out.type === 'error') {
print(res);
quit(1);
for (i in res) {
others = {};
line1 = '';
line2 = '';
for (j in res[i]) {
if ((typeof oneline1[j] !== 'undefined')
&& (typeof res[i][j] === 'string')) {
if (line1.length > 0) line1 = line1 + '; ';
line1 = line1 + j + ': ' + res[i][j];
} else if ((typeof oneline2[j] !== 'undefined')
&& (typeof res[i][j] === 'string')) {
if (line2.length > 0) line2 = line2 + '; ';
line2 = line2 + j + ': ' + res[i][j];
} else {
others[j] = res[i][j];
print(line2);
print(line1);
for (k in others) {
print(k + ':' + tabto(others[k]) + others[k]);
print('---');
quit(0);
return $?
Note that js(1), which has no man-page or other documentation, is part of "spidermonkey", which in turn is part of "firefox". It makes sense to assume that people have this browser installed. If at all possible, the javascript shell should have the file-methods compiled in to be able to use it like many other scripting languages, especially with JSON code. The scriptlet above works with an unmodified standard install. -
Hi all,
we have been using this logic in versions 4.2 and 5.1. just brought our apps over to new 7.5 sql environment and the logic did not work. Nothing changed in logic or in dimensionality. System seems to be ignoring any *WHEN IGNEDDATA checks.
It appears that evaluation of signeddata doesn't work in version 7.5 in SQL. loaded multiple data templates and also run countless default logic packages. Always fails to calculate the required accounts only when involving logic . Other script logic packages work fine.
Regards,
SriniHi Srini,
Can you please share the script, you are using? -
Need a bat script to check Server status remotly.
Hi,
I need bat script to check server status remotly (Ping) for multiple servers. It should generate a txt file for result.
Thanks.Hi Ravi,
To ping multiple computers and generate report cia cmd, please refer to the script below, the "fnm" is computer name list and the "lnm" is the result, and you can save the script below as .bat file:
@echo off
set fnm=d:\test1\computers.txt
set lnm=d:\test1\ping.txt
if exist %fnm% goto Label1
echo.
echo Cannot find %fnm%
echo.
Pause
goto :eof
:Label1
echo PingTest STARTED on %date% at %time% > %lnm%
echo ================================================= >> %lnm%
echo.
for /f %%i in (%fnm%) do call :Sub %%i
echo.
echo ================================================= >> %lnm%
echo PingTest ENDED on %date% at %time% >> %lnm%
echo ... now exiting
goto :eof
:Sub
echo Testing %1
set state=alive
ping -n 1 %1
if errorlevel 1 set state=dead
echo %1 is %state% >> %lnm%
Refer to:
Explain the Batch script to ping multiple computers
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Package Log - Error checking work status
Hi, Experts,
We are using SAP BPC 10 NW.
When we run a package manually it is ok. But when we include it at package link (with the same prompt) and run it, we received error message (Error checking work status). Look at the log below:
++++++++++++++++++++++++++++++++++++++++++++++
/CPMB/MODIFY finished in 0 seconds
/CPMB/ALLOCATION_LOGIC finished in 449 seconds
/CPMB/CLEAR finished in 0 seconds
[Selection]
SELECTION = /CEREAL/EXPENSE/PRIVATEPUBLICATIONS/BPCADMINBIP/TempFiles/FROM.TMP@@@SAVE@@@@@@EXPAND@@@|DIMENSION:CATEGORY|PROJETADO,REVISAO|DIMENSION:ENTITY|CC_11
[Message]
RUN_LOGIC:
Error checking work status
+++++++++++++++++++++++++++++++++++++++++++++++
There is no work status activity at REVISAO and PROJETADO category members at this model.
Would anybody help us to understand what is happening?
Best Regards,
Ana TeresaHi Ana
I found a related note.
1945016 - "Error checking work status" when executing package
Symptom
There is "Error checking work status" in the status log after executing clear package:/CPMB/CLEAR.
Environment
SAP BusinessObjects Planning and Consolidation, version 10 for SAP NetWeaver
Reproducing the Issue
Run clear package:/CPMB/CLEAR
Set check work status when clearing as YES. ("CHECKLCK"=YES)
Check detail status log
CauseWork status is not set or not found for the "to be cleared" data.
Resolution
Try to change the work status of the data in EPM and check if system pops up with "work status not found".
If yes, check in work status table (you can get the table name by running program UJ0_GET_GEN_TABNAME) if there is default work status assigned.
If yes, check UJW_STATCODE table in SE16, incase the line which contain field ORDERN=0 is missing, run program: UJW_UP_INSERT_0_STATE to insert this line.
See Also
1862768 - EPMWorkStatus function displays wrong status
Hope this helps.
Regards
Juan Pablo -
Bash script for checking link status
So I'm doing some SEO work I've been tasked with checking a couple hundred thousand back links for quality. I found myself spending a lot of time navigating to sites that no longer existed. I figured I would make a bash script that checks if the links are active first. The problem is my script is slower than evolution. I'm no bash guru or anything so I figured maybe I would see if there are some optimizations you folks can think of. Here is what I am working with:
#!/bin/bash
while read line
do
#pull page source and grep for domain
curl -s "$line" | grep "example.com"
if [[ $? -eq 0 ]]
then
echo \"$line\",\"link active\" >> csv.csv else
echo \"$line\",\"REMOVED\" >> csv.csv
fi
done < <(cat links.txt)
Can you guys think of another way of doing this that might be quicker? I realize the bottleneck is curl (as well as the speed of the remote server/dns servers) and that there isn't really a way around that. Is there another tool or technique I could use within my script to speed up this process?
I will still have to go through the active links one by one and analyze by hand but I don't think there is a good way of doing this programmatically that wouldn't consume more time than doing it by hand (if it's even possible).
ThanksI know it's been awhile but I've found myself in need of this yet again. I've modified Xyne's script a little to work a little more consistently with my data. The problem I'm running into now is that urllib doesn't accept IRIs. No surprise there I suppose as it's urllib and not irilib. Does anyone know of any libraries that will convert an IRI to a URI? Here is the code I am working with:
#!/usr/bin/env python3
from threading import Thread
from queue import Queue
from urllib.request import Request, urlopen
from urllib.error import URLError
import csv
import sys
import argparse
parser = argparse.ArgumentParser(description='Check list of URLs for existence of link in html')
parser.add_argument('-d','--domain', help='The domain you would like to search for a link to', required=True)
parser.add_argument('-i','--input', help='Text file with list of URLs to check', required=True)
parser.add_argument('-o','--output', help='Named of csv to output results to', required=True)
parser.add_argument('-v','--verbose', help='Display URLs and statuses in the terminal', required=False, action='store_true')
ARGS = vars(parser.parse_args())
INFILE = ARGS['input']
OUTFILE = ARGS['output']
DOMAIN = ARGS['domain']
REMOVED = 'REMOVED'
EXISTS = 'EXISTS'
NUMBER_OF_WORKERS = 50
#Workers
def worker(input_queue, output_queue):
while True:
url = input_queue.get()
if url is None:
input_queue.task_done()
input_queue.put(None)
break
request = Request(url)
try:
response = urlopen(request)
html = str(response.read())
if DOMAIN in html:
status = EXISTS
else:
status = REMOVED
except URLError:
status = REMOVED
output_queue.put((url, status))
input_queue.task_done()
#Queues
input_queue = Queue()
output_queue = Queue()
#Create threads
for i in range(NUMBER_OF_WORKERS):
t = Thread(target=worker, args=(input_queue, output_queue))
t.daemon = True
t.start()
#Populate input queue
number_of_urls = 0
with open(INFILE, 'r') as f:
for line in f:
input_queue.put(line.strip())
number_of_urls += 1
input_queue.put(None)
#Write URL and Status to csv file
with open(OUTFILE, 'a') as f:
c = csv.writer(f, delimiter=',', quotechar='"')
for i in range(number_of_urls):
url, status = output_queue.get()
if ARGS['verbose']:
print('{}\n {}'.format(url, status))
c.writerow((url, status))
output_queue.task_done()
input_queue.get()
input_queue.task_done()
input_queue.join()
output_queue.join()
The problem seems to be when I use urlopen
response = urlopen(request)
with a URL like http://www.rafo.co.il/בר-פאלי-p1
urlopen fails with an error like this:
Exception in thread Thread-19:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 639, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/threading.py", line 596, in run
self._target(*self._args, **self._kwargs)
File "./linkcheck.py", line 35, in worker
response = urlopen(request)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 160, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 473, in open
response = self._open(req, data)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 491, in _open
'_open', req)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 451, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1272, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 1252, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 1049, in request
self._send_request(method, url, body, headers)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 1077, in _send_request
self.putrequest(method, url, **skips)
File "/usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework/Versions/3.3/lib/python3.3/http/client.py", line 941, in putrequest
self._output(request.encode('ascii'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-8: ordinal not in range(128)
I'm not too familiar with how character encoding works so I'm not sure where to start. What would be a quick and dirty way (if one exists) to get URLs like this to play nicely with python's urlopen? -
Script logic not working for GL account with Zero balance
Dear Experts,
I have a scenario where the GL account balance in ECC is 0 and when a script logic runs in BPC the same should capture a closing balance as "1".
Though I have written the below logic, this is not getting executed and writing back the value as "1".
Kindly help me on the same.
*WHEN ENTITY
*IS "ABC"
*WHEN ACCOUNT
*IS "20300000"
*REC(EXPRESSION = 11, ACCOUNT = 20300000,FLOW = F99, ENTITY = ABC, PROFITCENTER = 130010 , INTERCO = I_NONE , CONSOSCOPE = G_NONE, CURRENCY = LC ,CATEGORY = ACTUAL, AUDITID = INPUT)
*ENDWHEN
*ENDWHEN
*COMMIT
Regards,
ShilpaHello Vadim Kalinin,
Thanks for the very swift help.
Merger of the client happened in 2007. ECC is using the " 20300000- change in fair value " account to record both pre-acquisition and post-acquisition values.
Since the treatment of pre-consolidation and post consolidation reserves is different the split of the amount between pre and post-acquisition values has to be done. For the same post acquisition value is reduced from this account using a script logic as below.
WHEN FLOW
*IS "F99"
*WHEN ENTITY
*IS "ABC"
*REC(EXPRESSION = ([ACCOUNT].[20300000] -3258603),ACCOUNT = 20300000,FLOW = F99, INTERCO = I_NONE , CONSOSCOPE = G_NONE ,CURRENCY = LC ,CATEGORY = ACTUAL )
This logic worked when the account has a figure, but in July 2014 in ECC the account had a transaction and the balance has become Zero. Until this account has a figure this pre acquisition logic is not working.
For making this work, I am trying to write a new logic to make the balance of this account as "1" in BPC through the script logic.
Kindly suggest me on the same.
Regards,
Shilpa -
Hello, gurus!
Explain please situation with a script logic and work status of data.
I have the script logic file, with code, for example:
*XDIM_MEMBERSET UNIT = 19
*XDIM_MEMBERSET AP_TR_SA = COMMON
*XDIM_MEMBERSET C_DATASRC = MANUAL
*XDIM_MEMBERSET RPTCURRENCY = USD
*XDIM_MEMBERSET CATEGORY = PLAN,ACTUAL
*XDIM_MEMBERSET ENTITY = C1113,C1111
*XDIM_MEMBERSET TIME = 201007
[#CF0700]=([AP_TR_ACCOUNT].[CF0612])-([AP_TR_ACCOUNT].[CF0611])
*COMMIT
Work status is established for (ENTITY=C1113; CATEGORY=ACTUAL,PLAN;TIME=201007) as Approved (data is locked).
Will execute this logic for (ENTITY=C1111;CATEGORY=ACTUAL,PLAN;TIME=201007)? Should I divide this script logic for C1111 and C1113?I have 2 entities (companies) - C1111 and C1113.
I have the script logic for calculation keyfigures for this entities (it is automatic chain).
C1113 has entered the data and has locked it. When the C1113 will enter the data, the script logic will not been executed.
I have tested it and I have received that:
the script logic has broke when system has tried to write data into database after "Error Work Status check".
If I change the line of script logic as
*XDIM_MEMBERSET ENTITY = C1111,C1113
calculation for C1111 is executed.
Best Regards,
Svetlana.
Edited by: Svetlana Kazaneva on Sep 6, 2010 1:17 PM -
Unix script for checking the user account status
Hi All,
i have created one unix script to check the status of the user in diff databases.
#!/bin/ksh
useracctreport.txt if [ ! -f hh ];
then
echo "Database file does not exist"
fi
echo "Enter Username"
read USER
echo "Enter the password"
stty -echo
read PASS
stty echo
for j in `cat users`
do
j="`echo $j| tr '[a-z]' '[A-Z]'`"
for i in `cat hh`
do
sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txt
column USERNAME format a8
column ACCOUNT_STATUS format a5
!echo "*****User $j Status in $i DB*****"
select USERNAME,ACCOUNT_STATUS from dba_users where username=('$j');
select OBJECT_TYPE,count(*) from dba_objects where owner='$j' group by object_type;
EOF
done
done
In log file ,i get the below error when its unable to connect to the DB.
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
SP2-0306: Invalid option.
Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}] | [INTERNAL]
where <logon> ::= <username>[<password>][@<connect_string>] | /
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
ERROR:
ORA-01017: invalid username/password; logon denied
Is there any way i can supress this error?
and is there any other way i can make this script faster.Thanks a lot for your helpHi,
The failing line is
sqlplus -s $USER/$PASS\@$i <<EOF >> useracctreport.txtYou should test the connect statement you provide to sqlplus. For example:
CONSTRING=$USER/$PASS\@$i
echo Connect string used: $CONSTRING
sqlplus -s $CONSTRING <<EOF >> useracctreport.txtCheck the echoed value. It's malformed. Correct it appropriately.
Yoann. -
How to copy applications using script logic with conditions
Hi,
I have two copy data between application A to application B, but only i want to copy the March's Data of Application A. Dimensions are the same in both applications
I'm going to use this script logic, ¿this script will work?
*WHEN TIME
*IS "2009.MAR"
*DESTINATION_APP=B
Thanks in advance
Regards,
JuanHi all,
Finally I solved the issue, the problem was that i haven't add this line in the script logic:
TASK(Execute formulas,USER,%USER%)
But now i need to pass in the script logic as an input: entity and time. Below is the code I prepare, it has no error but it doesn't work. ¿any idea?
Thanks in advance
Regards,
Juan
*SSIS PACKAGE *
'DEBUG(ON)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,,,"Please select entity and time to copy data from LegalAppNceu to LegalApp",%ENTITY_DIM%%TIME_DIM%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,LOGICFILE,%APPPATH%..AdminApp%APP%CopyApplication.lgx)TASKTASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
TASK(Execute formulas,CHECKLCK,%CHEKCLCK%)
SCRIPTLOGIC
*DESTINATION_APP=LEGALAPP
*SKIP_DIM= COSTCENTER
*WHEN ENTITY
*IS "%ENTITY_DIM%"
*WHEN TIME_DIM
*IS "%TIME_DIM%"
*REC(FACTOR=1)
*ENDWHEN
*ENDWHEN
*COMMIT -
Script Logic (with Package) passing fixed parameter
Hi!!!!
I am creating a dynamic script that will be executed by a package.
To create my dynamic script, I copied the "FX Restatemente.dtsx" and I will alter the code.
I want to promp the %TIME_DIM% parameter, but the %CATEGORY_DIM% I want to set a fixed value, like "BUDGET".
How can I do that???
Bellow, the "FX Restatemente.dtsx":
'DEBUG(ON)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,,,"Please select category, entity and time for restatement",%TIME_DIM%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\CalculaMetricas.LGX)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
Where and how I can set the %CATEGORY_DIM% with the fixed value of "Budget"??Hi,
Some changes you need to make for that to work.
You need to have the below statement in the script.
*XDIM_MEMBERSET TIME= %TIME_SET%
*XDIM_MEMBERSET CATEGORY= BUDGET
And your DTSX file will look like
'DEBUG(ON)
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,,,"Please select the time for restatement",%TIME_DIM%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\CalculaMetricas.LGX)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
TASK(Execute formulas,CHECKLCK,%CHECKLCK%)
Hope it helps
Raman -
Hi,
We are using script logic in the package.
We would like to prevent the packed from running on u201Clockedu201D data.
Below is the code of the script. The statuscode of locked data is 3. The maxstatus parameter in stored procedure is set to 1 (unlocked).
*SysLib Stored_Procedure_Wrapper.lgl
//=============================================
// Currency translation logic
//=============================================
*RUN_STORED_PROCEDURE=SPRUNCONVERSION('%APP%','%CATEGORY_SET%','','GLOBAL','%SCOPETABLE%','%LOGTABLE%','' ,'' ,'', 1)
Unfortunately we still can write to the locked intersection.
We are using BPC MS 5.1.
Could you give us some advise how to solve this problem?Mariusz,
If you define a business rule in a script logic file and call the script
logic file from data manager, the data generated by the business rule
will be posted to a locked data region since the business rule engine
cannot check Work Status. BPC has the limitation of the business rule. It has been earlier requested as an enhancement.
Regards -
Run Script Logic/Package from a different Application
Hi Experts,
I have a scenario here that I need to run a package from a different application. For example, I'm in Finance application and I need to run a package which is in the LegalApp application, is it possible to call that package or perhaps run the logic it was calling without having switch back to LegalApp.
Thanks,
MarvinTo run a package that runs logic on another application, you could copy a package such as "Default Formulas" and put the name of the target application in the new package's name. Then go to Modify Package --> Advanced. Edit the package to set the application as below. The LegalApp (for example) is set on the third Task command. Default logic is called on fifth.
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})
PROMPT(SELECTINPUT,,,,%CATEGORY_DIM%%ENTITY_DIM%%TIME_DIM%)
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,LegalApp)
TASK(Execute formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute formulas,LOGICFILE,)
TASK(Execute formulas,CHECKLCK,%CHECKLCK%) -
Hi,
Assuming category, entity, time are my work status dimension, and i have decided to give a work status of 'approved' to category=budget, entity=sales, time=2015.total, hence category and entity are both base members while time is a parent member. However i DID NOT click on "include children in the data region". But later when i checked the work status of 'category=budget, entity=sales, time=2015.aug", it has turned into "approved". Don't i have to click on "include children in the data region" in order to flow this down to the children?
Regarding the work status checking in data packages, what does the following mean:
- Select whether to check work status settings when deleting comments?
- Select whether to check work status settings when importing data?
- Select whether to check work status settings when running logic?
Thanks and regardsHi,
You are absolutely right. Ideally, if "Should children of this data region be included?" is not selected, the children should not be included. However, I am not sure why this has happened in your case. Will definitely check on this and get back to you.
For your second query regarding the DM packages.
If you select Yes, work status settings will be copied with the data. If you select No, work status settings are not copied with the data.
Hope this helps.
Maybe you are looking for
-
What is the best voice to text app for iPad Air?
I had the app Dragon (a voice to text app), on my iPhone and downloaded it to my iPad Air, but it's not working. Reading the "help" area it says something about ATT iPads don't support it. I have ATT. But, I can open the app and it reads "Tap and dic
-
Having upgraded from iPhoto 07 to 09, I found myself without N-up. A quick search pointed me to workarounds described in threads such as http://discussions.apple.com/thread.jspa?threadID=1178557 and http://discussions.apple.com/thread.jspa?threadID=1
-
Mail for exchange storage location
Hi All Does anyone know if I can change the location of the store for either or all (contacts,calendar and email) when I sync with M4E (Mail for Exchange) I am afraid that I will run out of memory. Regards
-
Hi, We upgraded our system recently from BW 3.1 to BI 7.0(Only Technical). As of now still we are using old Bex Toolset( New Bex suite yet to upgrade). So we have Portal in place where in users create their own bookmarks and favourites.So After upgra
-
How do I remove Messages from Mission Control?
I double clicked the top near the resize arrow mistakenly and it made its own screen in Mission Control. I've been looking online but I can't find out how to remove it. I've tried the control+click but it doesn't show the x. I don't want my messages