Line numbers in Script Logic editor
Hi everybody,
when using the default Script Logic editor in BPC NW I can not see any Line Numbers (or Column Numbers) in the edited script.
When an error is detected by the system after validating the script, the error message sometimes refers to a certain Line Number where the error occured.
Is there a better way than manually counting the lines from the top (which can be quite a task when editing, say 500 lines) ?
Do I miss something here or are you all using alternative editors ?
Please give me some input.
Regards.
Wolfgang
Hi Nilanjan,
thanks for the quick answer.
That would mean that I always need to switch from BPC frontend Script Editor into BW and start a transacion and program there. I would have hoped, that simole line numbers would be a standard feature in the BPC frontend editor itself. Nevertheless...
Best regards.
Wolfgang
Similar Messages
-
hi gurus,
how can i print line numbers in serial in vertical in a SAP Script.
thanx in advance,
santosh.Hi
There is no system field for writing the Numbers in Scripts like Reports.
check the table TTSXY and TTDTG if needed..
So you define some variable using DEFINE statement and based on some Item condition you have to pass varaible
/: define &VAR&
/: if &itab-posnr& eq '00010'
/ var = 1.
elseif &itab-posnr& eq '00020'
/ var = 2.
/: elseif &itab-posnr& eq '00030'
/ var = 3.
endif.
try like above and pass the numbers
or from the driver program itself keep a variable in the items internmal table and fill that field and use it in script.
<b>
Reward points for useful Answers</b>
Regards
Anji -
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 -
Rounding in NW BPC Script Logic
Hi,
BPC MS version has a keyword "ROUND" to round the numbers through script logic.
What is the replacement to Round the amounts in NW BPC Script Logic.
I tried using the same keyword "Round" but it did not work.
Appreciate your help.
Thanks
AnjaliThere is a HowTo guide showing how to implement this functionality as a BADI - [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50daa919-5b80-2c10-babd-b75c6c64feed]
Please make sure to search SCN and look through the HowTo guides before asking questions in the forums. HowTo guides can be found here: [http://wiki.sdn.sap.com/wiki/display/BPX/EnterprisePerformanceManagement(EPM)How-to+Guides]
Ethan -
SAP Script - Logical expression in multi lines
Hi Friends,
How can I write logical expression in more than one lines in SAP script editor?
Case:
I have to write:
IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '
I am writing in first line
/: IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
and &J_1BPRNFHD-SHPUNT& = ' ' is not coming in the same line. How to write it in more than one line?
What I mean is that:
Can I write like:
/: IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND
/: &J_1BPRNFHD-SHPUNT& = ' '
In fact, above is not working. Please help.
Regards,
Surya
but the rest of the things, that is, &J_1BPRNFHD-SHPUNT& = ' 'I'm not an SAP script expert but this is just a suggestion.
Write 2 seperate conditions.
You can replace this:
IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X' AND &J_1BPRNFHD-SHPUNT& = ' '.
ENDIF.
by this:
IF &J_1BPRNFHD-DIRECT& = '1' AND &J_1BPRNFHD-MANUAL& = 'X'.
IF &J_1BPRNFHD-SHPUNT& = ' '.
ENDIF.
ENDIF. -
Hi experts,
We are migrating from BPC 5.1 MS to 7.5 MS SP5 and there have some scripts that are using GET function that retrieve wrong numbers. Particularly, it does not record the decimals figures.
Example1 (multiply): when A=2,3 and B=4,4, then AB=10,12. But doing this in script logic GET(A)GET(B)=10. It does not write the decimal figures.
Example2 (addition): when A=2,3 and B=4,4, then AB=6,7. But doing this in script logic GET(A)GET(B)=6. It does not write the decimal figures.
Particularly, the script we are executing is the following. This script worked ok at 5.1 but not at 7.5:
*XDIM_MEMBERSET ACCOUNTL= INFLA_AUX,INFLA_ACUM
*XDIM_NOSCAN ACCOUNTL = INFLA_ACUM
*XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSET CURRENCY=LC
*XDIM_MEMBERSET TECHNOLOGY = %TECHNOLOGY_SET%
*XDIM_MEMBERSET PEM=DESCENDANTS([PEM].[PEMTOT],999,LEAVES)
*XDIM_MEMBERSET TIME=DESCENDANTS([TIME].[XXXX.TOT],999,LEAVES)
*CALC_EACH_PERIOD
*WHEN ACCOUNTL
*IS INFLA_AUX
*WHEN TIME.YEAR
*IS = PEM.YEAR
*REC(EXPRESSION=1,NOADD,ACCOUNTL=INFLA_ACUM)
*IS < PEM.YEAR
*REC(EXPRESSION=0,NOADD,ACCOUNTL=INFLA_ACUM)
*IS > PEM.YEAR
*REC(ACCOUNTL=INFLA_ACUM,NOADD,EXPRESSION=GET(ACCOUNTL="INFLA_ACUM",TIME=PRIOR) * GET(ACCOUNTL="INFLA_AUX",TIME=PRIOR)) //in this sentence!!!!!!
*ENDWHEN
*ENDWHEN
*COMMIT
We have SIGNED_DATA_FORMAT (25,10) in the application parameters.
Many thanks for your attention.
Best regards,
Arkaitz
Edited by: arkaitz_orozko81 on Apr 28, 2011 4:31 PM
Edited by: arkaitz_orozko81 on Apr 28, 2011 4:33 PMHello,
We have solved this issue.
First, we have change the script:
*SELECT(%PEM_APLICA%,[ID],PEM,"APLICA='Y'")
*XDIM_MEMBERSET ACCOUNTL=PROD_AUX,DISP_INP,HORA_AUX,CAPAC_AUX
*XDIM_NOSCAN ACCOUNTL= PROD_AUX
*XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSET CURRENCY=LC
*XDIM_MEMBERSET TECHNOLOGY=DESCENDANTS([TECHNOLOGY].[RENOVABLES],999,LEAVES)
*XDIM_MEMBERSET PEM=%PEM_APLICA%
*XDIM_MEMBERSET TIME=<ALL>
*WHEN ACCOUNTL
*IS CAPAC_AUX
//*IS *
*WHEN SIGNEDDATA
*IS <> 0
REC(ACCOUNTL="PROD_AUX",NOADD,EXPRESSION=GET(ACCOUNTL="CAPAC_AUX")* GET(ACCOUNTL="DISP_INP")* GET(ACCOUNTL="HORA_AUX"))
*ELSE
*REC(ACCOUNTL="PROD_AUX",NOADD,EXPRESSION=0)
*ENDWHEN
*ENDWHEN
*COMMIT
And we have change the regional settings to "English (United States)".
Many thanks for your answer. -
Hi all,
I have write a script logic.
I have got this values like transactional data.
First data: how many vehicle that we need to produce in jan, feb?
ACCOUNT--VEHICLE NOMATERIAL NOTIME--
VALUE
1)D003--142NAJAN--
4
2)D003--142NAFEB--
10
3)D003--940NAJAN--
3
4)D003--940NAFEB--
5
Secod data: which material and how many that we need for to form one vehicle.
ACCOUNT--VEHICLE NOMATERIAL NOTIME--
VALUE
5)E001--142142OTONA--
100
6)E001--940142OTONA--
100
7)E001--14258RSNA--
60
8)E001--94058RSNA--
60
9)E001--94054RSNA--
40
Third, to calculate data: how many material that we need in Jan or Feb.
ACCOUNT--VEHICLE NOMATERIAL NOTIME--
VALUE
10)F001--NA142OTOJAN--
700
11)F001--NA58RSJAN--
420
12)F001--NA54RSJAN--
120
For example 142OTO: 700(10)=100(5)4(1)+100(6)3(3)
(The numbers in parenthesis are line numbers.)
How can i write this logic?
Thanks in advance.
Edited by: boguner on Jun 22, 2010 10:49 AMHi Rohit,
This is not a problem.
If the resultant number of records is more than 300,000, then the records are not logged.
This can be controlled by the UNLIMIT_PRINT_LOG appset parameter. By default, this is set as NO. This will allow only 300k records to be logged.
You can set the above parameter as YES to log all the records for the execution of all logics across the appset in all applications.
Warning:
Of course, it will add slow down the logic execution. Logging the records will always slow down the execution. The system has to open the file and keep writing all the records in the flatfile, which is a slow process. You can increase the speed of your logics by disabling this logging completely by using the CALCULATE_DIFFERENCE statement in your script logic for each commit section. You can reduce the logic execution time by disabling this logging.
Karthik AJ -
Script Logic: Using a property in MDX *REC statement (BPC NW)
Hi,
Is it possible to use a Property in an MDX statement without using *LOOKUP() function? I have script successfully working but it takes 15 minutes to execute and would like to speed it up.
I understand that [DIMENSION].[MEMBER].Property is not valid syntax, and do not believe NW has any other functions to resolve the issue, except *LOOKUP which takes a long time.
Specific Example is below:
I have a piece of script that successfully splits JV Expense by customers. A Profit Share planning driver determines the percentage that each customer is entitled to. Typically this will be 100%, but could be 50% between two customers.
The PROFIT SHARE planning drivers records, and PARTNER_INCOME transactional records are below:
ACCOUNT
ENTITY
PARTNER
SIGNED DATA
PROFIT_SHARE
UK_001
PARTNER_A
0.5
PROFIT_SHARE
UK_001
PARTNER_B
0.5
PROFIT_SHARE
UK_002_PLANNING_DRIVERS
PARTNER_B
1.00
PARTNER_INCOME
UK_001
NO_PARTNER
$5,000
PARTNER_INCOME
UK_002
NO_PARTNER
$5,000
UK_001 has two partners that are each entitled to 50% of the $5,000 NET PROFIT.
For UK_002, one one single Partner is entitled to 100% of the $5,000 NET PROFIT.
Using script logic, you can scope the Profit Share account (PROFIT_SHARE) - , and use a *REC statement to multiply this by the driver. It would look like:
*XDIM_MEMBERSET ACCOUNT = PROFIT_SHARE
*WHEN ACCOUNT
IS *
*REC (EXPRESSION = %VALUE% * ([ACCOUNT].[PROFIT_SHARE],[PARTNER].[NO_PARTNER]), ACCOUNT = PARTNER_PROFIT_SHARE)
*ENDWHEN
This wouldn't be a problem if the Planning Driver is always stored on the same Entity that the Income is stored on, but for UK_002, the planning driver is stored on another Entity - which is stored in a the PLAN_DRIVER_REF property of the entity. It should use UK_002_PLAN_DRIVERS
ID (Entity)
PLAN_DRIVER_REF
UK_001
UK_002
UK_002_PLAN_DRIVERS
UK_002_PLANNING_DRIVERS
In this scenario, we need to switch out the Entity used in the MDX, however I do not believe you can use a property in MDX - can anyone confirm?
I have currently implemented the *LOOKUP functionality to loop through, changing each *LOOKUP partner for each loop.
Lookup:
*LOOKUP PLANNING_JV_US
*FOR %LOOP_ASLS% = %ASL_LOOKUP_LOOP_VARIABLE%
*DIM LOOK_%LOOP_PARTNERS%:ACCOUNT = "PROFIT_SHARE"
*DIM LOOK_%LOOP_PARTNERS%:PARTNER= %LOOP_PARTNERS%
*NEXT
*DIM ENTITY = ENTITY.PLAN_DRIVER_REF // Use PLAN_DRIVER_REF Property of Entity
*ENDLOOKUP
Scope and *REC:
*XDIM_MEMBERSET ACCOUNT = PROFIT_SHARE
*WHEN ACCOUNT
IS *
*FOR %LOOP_PARTNERS% = %PARTNER_LOOKUP_LOOP_VARIABLE% // 1000 Partners
*REC(EXPRESSION = %VALUE% * LOOKUP(LOOK_%LOOP_PARTNERS%), PARTNER= %LOOP_PARTNERS%, ACCOUNT = TCOJVSHAR_CALC, AUDIT_ID = PP_EXPENSE_BY_PARTNER)
*NEXT
*ENDWHEN
The problem with the above, is that because the Lookup is being generated for every single Partner, there are significant numbers of loops.
Does anyone know of another way this can be implemented in Script Logic? Otherwise we'll need to explore BAdI route.
Thanks,
NickHi Nick,
Use property in LOOKUP - will dramatically speed up the calculation without FOR/NEXT.
Vadim -
Greater Than Function in Script Logic File
BPC Experts,
I've got a pretty simple script logic file to calculate salary amounts, overtime, etc. The purpose of this logic is for forecasting. I have two referenced dimensions, TIME and SCENARIO, where TIME.MONTHNUM is equal to its relative month number (eg: Jan monthnum = 1), and SCENARIO.CURRMONTH is equal to the relative amount of actual months data, (eg Jan currmonth = 0, Feb = 1) because if you are completing a February forecast, you have one month of actual.
The ACTUAL scenario is never touched, but after a month closes, we copy the ACTUAL data to, for example, FEB_FCST. So, after January closes, its actuals are copied to the FEB_FCST scenario so we can complete an actual/forecast (one month actual, 11 months forecast).
Currently, the default logic skips anything in the ACTUAL scenario, by stating "*WHEN SCENARIO, *IS <> "ACTUAL" yada yada yada.
However, when the default logic runs on the forecast scenarios, it takes the same inputs from the months that are copied over from the ACTUAL scenario and adds to the original amount, essentially doubling the value--ultimately causing an incorrect actuals number in the forecast scenario.
My script right now looks like this:
*XDIM_MEMBERSET DATASRC=INPUT
*XDIM_MEMBERSET PRODUCT=NO_PRODUCT
*XDIM_MEMBERSET SHIFT=NO_SHIFTS
*XDIM_MEMBERSET MEASURES=PERIODIC
*WHEN SCENARIO
*IS <> "ACTUAL"
*WHEN TIME.MONTHNUM
*IS > SCENARIO.CURRENTMNTH
*WHEN ACCOUNT
*IS "SALARIED_MANPOWER"
*REC(EXPRESSION=((([ACCOUNT].[SALARIED_AVG_WAGE] * (1 + [ACCOUNT].[SALARY_TIMEAHALF]))* [ACCOUNT].[SALARIED_MANPOWER])),ACCOUNT="01100")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
When it hits line 9 (*IS > SCENARIO.CURRENTMNTH) during validation, it errors. How can I use a "greater than" function to dictate whether or not a given scenario should run default logic on a specific month?
If not, is there a different/better way to do it?
Thank you!
ABFHi Alex
Take this sample logic, check the properties in your Time dimension to trouble shoot your issue.
*SELECT(%CAT_VAR%, "ID", CATEGORY, ID= PLAN_APRIL)
*XDIM_MEMBERSET CATEGORY = ACTUAL, PLAN, %CAT_VAR%
*SELECT(%CATMTH%, "STARTMTH", CATEGORY, ID= %CAT_VAR%)
*SELECT(%ACT_PERIOD%, "ID", TIME, MONTHNUM < %CATMTH% AND LEVEL = MONTH AND YEAR = 2010)
*SELECT(%PLAN_PERIOD%, "ID", TIME, MONTHNUM >= %CATMTH% AND LEVEL = MONTH AND YEAR = 2010)
*XDIM_MEMBERSET TIME= %ACT_PERIOD%
*XDIM_MEMBERSET CATEGORY=ACTUAL
*WHEN CATEGORY
*IS ACTUAL
*REC(EXPRESSION=%VALUE%, CATEGORY = %CAT_VAR%)
*ENDWHEN
*XDIM_MEMBERSET TIME= %PLAN_PERIOD%
*XDIM_MEMBERSET CATEGORY=PLAN
*WHEN CATEGORY
*IS PLAN
*REC(EXPRESSION=%VALUE%, CATEGORY = %CAT_VAR%)
*ENDWHEN
Thanks -
How to insert line numbers in InDesign CS5
I am creating a document that needs to have line numbers appear every for every 5 lines of text. Using the list function, I can get a number for every line, but can't find a way to just number line 5, 10, 15, 20, etc.
All help appreciated,
CathyThanks for the prompt reply, Bob, but from what I read in the comments on the script is that it inserts line numbers for every line and has no options for customizing to show numbers for only lines 5, 10, 15, etc. Also, using the list function in InDesign on selected text I can get the same result (including multi page if I select all text) and then convert the auto list numbers to text, which would allow me to remove unwanted numbers and leave just the ones I need (although that would be a painful manual process for a longer document.).
Am I missing something about the script?
I must admit that I'm shocked that this isn't a built in capability in InDesign! -
JSP compiler obfuscates generated servlet debug line numbers
Here's something that's been baffling me for a couple of days now.
When WebLogic parses a JSP into servlet Java source, and then compiles the Java
source into a class, it seems to perform a further step to obfuscate debug line
numbers in the _jspService method. This converts the debug line numbers from Java
source code line numbers into JSP line numbers.
At first sight, this may appear to be useful- it means that when an exception
is thrown then it references a line number in the original JSP rather than one
in the generated servlet. However, it actually makes life more difficult when
you consider included JSPs.
Suppose you have a file loginresult.jsp, which uses @include to include a header.jsp
and footer.jsp, both of which contain dynamic content. When WebLogic converts
line numbers, it ignores the JSP that the code came from, so this causes a many-to-one
mapping of line numbers. When an error occurs, the exception will tell you the
line number that it came from, but it won't tell you which JSP caused it. The
many-to-one mapping ensures a loss of information- and no way of retrieving the
real line numbers.
This is an even bigger nuisance when trying to debug JSPs- the debugger hops around
in the generated servlet file without giving any clue as to whereabouts it really
is in the code.
My question is: is there any way of switching off this post-processor behaviour?
One obvious way would be to locate the WebLogic class that does this post-processing,
stub it out and run WebLogic with this class higher up in the classpath. But that's
a last resort.
Secondly, would there be any other impact in turning off this behaviour? Do other
parts of WebLogic rely on this?
Thanks in advance,
Kevin.
Actually, this option turns line-number table replacement on and off, for example,
with jsp like this:
test.jsp
<%
throw new Exception();
%>
and weblogic.xml:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA
Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
the stacktrace looks like this (note line number 2 - this is JSP line number):
java.lang.Exception
at jsp_servlet.__test._jspService(test.jsp:2)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
and with debug option turned off:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA
Systems, Inc.//DTD Web Application 7.0//EN"
"http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>debug</param-name>
<param-value>false</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
exception stacktrace looks like this (note that line number now is from generated .java file):
java.lang.Exception
at jsp_servlet.__test._jspService(__test.java:87)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Kevin Thomas <[email protected]> wrote:
> But this isn't useful, as you don't know which JSP the line number is referring
> to! (did it come from the main JSP, or one of the files that it included?)
> Turning debug off is not an answer- because that will lose other useful information
> that is useful to the debugger.
> Kevin.
> "Dimitri I. Rakitine" <[email protected]> wrote:
>>Actually, this is useful when you want to debug .jsp's and not generated
>>..java files. Did you try setting 'debug' jsp-param in the weblogic.xml
>>to
>>false? I think it turns class postprocessing on and off.
>>
>>Kevin Thomas <[email protected]> wrote:
>>
>>> Here's something that's been baffling me for a couple of days now.
>>
>>> When WebLogic parses a JSP into servlet Java source, and then compiles
>>the Java
>>> source into a class, it seems to perform a further step to obfuscate
>>debug line
>>> numbers in the _jspService method. This converts the debug line numbers
>>from Java
>>> source code line numbers into JSP line numbers.
>>
>>> At first sight, this may appear to be useful- it means that when an
>>exception
>>> is thrown then it references a line number in the original JSP rather
>>than one
>>> in the generated servlet. However, it actually makes life more difficult
>>when
>>> you consider included JSPs.
>>
>>> Suppose you have a file loginresult.jsp, which uses @include to include
>>a header.jsp
>>> and footer.jsp, both of which contain dynamic content. When WebLogic
>>converts
>>> line numbers, it ignores the JSP that the code came from, so this causes
>>a many-to-one
>>> mapping of line numbers. When an error occurs, the exception will tell
>>you the
>>> line number that it came from, but it won't tell you which JSP caused
>>it. The
>>> many-to-one mapping ensures a loss of information- and no way of retrieving
>>the
>>> real line numbers.
>>
>>> This is an even bigger nuisance when trying to debug JSPs- the debugger
>>hops around
>>> in the generated servlet file without giving any clue as to whereabouts
>>it really
>>> is in the code.
>>
>>> My question is: is there any way of switching off this post-processor
>>behaviour?
>>> One obvious way would be to locate the WebLogic class that does this
>>post-processing,
>>> stub it out and run WebLogic with this class higher up in the classpath.
>>But that's
>>> a last resort.
>>
>>> Secondly, would there be any other impact in turning off this behaviour?
>>Do other
>>> parts of WebLogic rely on this?
>>
>>> Thanks in advance,
>>
>>> Kevin.
>>
>>--
>>Dimitri
>>
Dimitri
-
Hi Experts,
We are using SAP BPC 7.5 NW Version SP08. We are using a script logic that calculates the opening value of inventory(ASSTCAINVAMO) for each month except the 1st month of financial year for which the value is entered from an input schedule. The opening value of inventory of each subsequent months are calculated when the parameters for production(e.g. OSDA) are entered from a separate input schedule. The following script logic is written for the calculation:
*FOR %TIM_MEM%=%TIME_SET%
*XDIM_MEMBERSET TIME =%TIM_MEM%
*WHEN P_ACCT2
*IS "OSDA",
REC(EXPRESSION=[P_ACCT2].[ASSTCAINVAMO]+[P_ACCT2].[RDPA][P_ACCT2].[EFFA][P_ACCT2].[OSDA]-[P_ACCT2].[CONVAMUR][P_ACCT2].[RDPU][P_ACCT2].[EFFU][P_ACCT2].[OSDU]-([P_ACCT2].[SALQAMBC]+[P_ACCT2].[SALQAMM]),P_ACCT2="ASSTCAINVAMO",TIME=TIME.NEXT)
*ENDWHEN
*COMMIT
*NEXT
The loop works fine, but it seems the list of time values are not coming in proper sequence. For example, the loop is running for 2011.NOV before it iterates for 2011.OCT. So when it iterates for 2011.NOV, it is not getting the opening value for the month and consequently 2011.DEC's opening value is calculated assuming 2011.NOV's opening value to be 0. In the input schedule the months are in proper sequence.
Is there any way out so that the months come in proper sequence in the logic as well?
Thanks in advance for any help.We had similar issue . we changed TIME members from Monthnames to numbers . i.e changed 2011.JAN to 2011.01 . Then you get correct result as you are expecting . Issue when using month names in combination of TMVL is that , instead of getting 2011. MAY for TMVL(1,2011.APR) , it gets 2011.FEB . TMVL function some how takes alphabetical order instead of taking month order . Not sure if this behavior is with service pack . But never saw any thread reporting this issue .
Anyways ,you can wait for other responses as i am too curious to know if any one faced this issue and how did they resolve. -
Revision: 13535
Revision: 13535
Author: [email protected]
Date: 2010-01-15 14:45:38 -0800 (Fri, 15 Jan 2010)
Log Message:
Part 1 of fixing line endings in AS and MXML files so that line numbers are correct while debugging.
We've got a widespread problem with line-endings (\r\n vs \n vs \r) because not all our files have svn:eol-style set to "native". (With this setting, the line endings are adjusted for the platform that you check out code onto. Without it, you can end up with all-Mac line endings on a Windows machine, WindowsMacUnix line endings on a Mac, etc. The goal is all-Win on Win, all-Mac on Mac, etc.)
For schedule reasons, we've decided to minimize risk by fixing only AS and MXML files in frameworks/projects that contribute to our SWCs, because here line-ending problems can throw off line numbers and the debugger doesn't step through the right lines of code.
You can't set svn:eol-style to "native" unless the line endings are already correct for your platform. Since I'm on Windows, I wrote a script to find a fix the files that had any \n or \n line endings. The files now have \r\n.
QE notes: None
Doc notes: None
Bugs: SDK-24966
Reviewer: Pete
Tests run: checkintests
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24966
Modified Paths:
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/core/IDeferredContentOwner.a s
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/core/ISelectableList.as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/core/LayoutElementUIComponen tUtils.as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/geom/CompoundTransform.as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/geom/TransformOffsets.as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/skins/halo/WindowBackground. as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/utils/MatrixUtil.as
flex/sdk/branches/4.0.0/frameworks/projects/framework/src/mx/utils/OnDemandEventDispatche r.as
flex/sdk/branches/4.0.0/frameworks/projects/osmf/src/org/osmf/media/MediaFactory.as
flex/sdk/branches/4.0.0/frameworks/projects/rpc/src/mx/rpc/http/HTTPMultiService.as
flex/sdk/branches/4.0.0/frameworks/projects/rpc/src/mx/rpc/http/Operation.as
flex/sdk/branches/4.0.0/frameworks/projects/rpc/src/mx/rpc/http/mxml/HTTPMultiService.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/ButtonBar.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/DropDownList.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/HSlider.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/Panel.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/PopUpAnchor.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/Scroller.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/mediaClasses/Volum eBar.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/supportClasses/Dro pDownController.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/supportClasses/Dro pDownListBase.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/supportClasses/Scr ollerLayout.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/components/supportClasses/Sli derBase.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/effects/AnimateTransform.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/effects/supportClasses/Animat eTransformInstance.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/effects/supportClasses/MoveIn stance.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/events/SkinPartEvent.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/skins/spark/HighlightBitmapCa ptureSkin.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/skins/spark/ScrollerSkin.mxml
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/styles/metadata/AdvancedInher itingTextStyles.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/styles/metadata/AdvancedNonIn heritingTextStyles.as
flex/sdk/branches/4.0.0/frameworks/projects/spark/src/spark/utils/LabelUtil.as
flex/sdk/branches/4.0.0/frameworks/projects/wireframe/src/spark/skins/wireframe/NumericSt epperTextInputSkin.mxmlHi there,
I follow the help from this post
How to handle line break embeded inside CSV column
Not a perfect way, but it is accepted in my case.
Cheers, -
Display entire log in script logic?
When users run a script logic, eg to push data from one model to another, they get errors like:
Invalid Members [ACCOUNT_DTL]=61500270
Invalid Members [ACCOUNT_DTL]=51301500
However these errors are at the very end of the log and the user cannot see them, because they exceed the maximum log length to be displayed in data manager package status.
The script logic executes successfully and does not throw an error, but records do not post. It causes large errors because they're unaware of the issue as no error is thrown and the log does not display all lines.
I have to go into UJFS, download the zip file with their full log in it and send the errors to them.
Is there a setting either:
1. Flag the log as 'error' and do not allow it to post?
2. Display the entire log in the data manager package "View Status" - all lines? Or at least all errors?
Thx, AaronVadim,
We have a logic that pushes from model1 to model 2.
Due to supporting some existing/legacy code, logic is as follows:
*RENAME_DIM ACCOUNT_C=ACCOUNT_DTL
ACCOUNT_C is in Model1. ACCOUNT_DTL is in Model2.
Value for some GL account "32100000" for example has been created in account_c but not in account_dtl, so when the logic creates *REC's it fails.
If no solution is available on the error log I will probably create BPC master data package to update both account_c and account_dtl at once from BI. Will be the only way to keep them in synch.
Thanks for checking, Aaron -
Displaying line numbers in oracle Sql developer
hi guys, can someone tell me how to display line numbers in oracle sql developer Version 2.1.1.64?.
I absolutely didn't know where it was, so I had to look for it, and it appears easy to find.
Hit Tools
Hit Preferences
Expand Code Editor
Navigate to line gutter
Now click 'Show line numbers'
And, oh yes, there is a separate sql developer forum. Please keep sql developer issues in that forum.
Sybrand Bakker
Senior Oracle DBA
Maybe you are looking for
-
I have a dialogue box that will not go away and it seems to have started when I upgraded to Mt. Lion. the box says, "To open JavaApplication, you need to install a Java 6 SE runtime. Would you like to check for and install one? (smaller print) No
-
How can I purchase products from the app store while travelling outside my country of residence? We are from Canada, travelling in the USA and wish to buy a TV series but get a message to buy it from the Canadian store. When we tried to do this we go
-
Why cant i open it?!
I have Photoshop open and when i try to open a picture or start a new project it wont let me. I have the picture i want already but when i click it nothing happens it stays the same, will someone please help? =TW=
-
How to re-autoscale a XY Graph after manual zooming?
Hello, i have a dialog-window that shows an XY-graph. Using the "Graph Palette" i can zoom into the displayed graph. But how can i return to the original displayed graph after using the zoom/move functions? Thx Solved! Go to Solution.
-
Keyword add/remove performance
I've been a huge critic of Aperture and with good reason, but once you start using Aperture 1.1 it's hard to go back to iPhoto. Managing keywords is all messed up but once you figure out how to remove a keyword from a bunch of images, it becomes poss