Dynamic calculation of values at query runtime
Hello, Everybody,
I have situation in which I have calculate the value for characteristic at query runtime.
Query is based on Infoset SEMPLDATA. In Infoset I have fields u201CEmployee IDu201D, u201CBirth dateu201D, u201CAgeu201D dedicated as virtual variable, u201CNumber of Employeesu201D.
Then I execute query I enter a value for variable u201CDateu201D. After that query should calculate age for employee: for example ( variable u201CDateu201D u2013 u201CBirth dateu201D )/365. And query result is listed like this: u201CAgeu201D, u201CNumber of Employeesu201D.u201D Ageu201D is dynamic it depends on variable u201CDateu201D.
Iu2019m doubting will virtual characteristic help me. Could you give your suggestions?
Thanks in advance.
Best Regards,
Arunas Stonys
Hey. You can do this with a virtual characteristic. I'm not fond of them because of performance, but it should work. I am also assuming you have date of birth as an available field to do the calculation.
So, you could implement code in the variable user exit. After "Date" has been entered and the exit code is invoked you can pass that date to memory. Something like export "date" to memory ID xxxxx. I would create the memory ID object based on user ID running the query and date, or something like that. Then when you are processing in the virtual characteristic user exit, just do an import from memory, referencing the same memory ID as when you exported. Then you should be able to just do the date of birth - "date."
I have done this in the past to be able to retain user selection information for use in the virtual object calculations.
Just thought I would add a bit more here. You could also use formula variables based on your "Date" variable and "Date of birth" and do the calculation in a formula. Not completely sure about your situation, but that's another idea.
Hope this helps.
Thanks
Edited by: Siboda_Eric on May 12, 2010 4:21 PM
Similar Messages
-
Can we pass dynamic cell associated value [of scorecard] as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013 , so that we can pass those values to another page
How to get those cell associated values and set these dynamic value as query string parameter in custom hyperlink property of KPI of scorecard in performance point services in sharepoint 2013I could somehow link to the table name, but that can be changed... Any ideas?
Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
Example:
Insert a table (say Table1)
Go to Define a name and insert a name of choice (eg. ForMyTab1)
Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
=Table1[#All]
Now if a user changes the table name then Table1 will also automatically change.
Example code to to reference the table in VBA.
Sub Test()
Dim wsSht1 As Worksheet
Dim lstObj1 As ListObject
Set wsSht1 = Worksheets("Sheet1")
Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
MsgBox lstObj1.Name
End Sub
Regards, OssieMac -
RRI - Sending Dynamically calculated Variable Values to Receiving Report
Hello,
1st report requires that user enters 2 dates. User exit is calculating the "number of months" between these 2 dates and the value is being stored in a variable.
This calculated value "no of months" needs to be sent to the receiver report. Apparently it is not getting passed automatically.
Any ideas.?
Thx
Sri KamanaHi Srikanth Kamana,
Reimplement the customer exit "number of months" in the second query. Get the from and to dates from the 1st query.
I hope you got an idea for the issue.
Regards,
S P -
Join query in a dynamic list of values query
I have a join query in a dynamic list of values query. The value does not return a text value, but rather the id value.
Is it possible to use a join query in a dynamic list of values query?
For example...in the below query, I expect to see ename in the drop down list, but I see class_emp_id.
select b.ename d, a.class_emp_id r
from class_emp a, emp b
where a.class_cat_id = :CURR_CLASS_CAT_ID
and a.emp_id = b.emp_id
order by 1
Thanks,
Reid:CURR_CLASS_CAT_ID is a number datatype.
I think the problem is with the ARF. Whenever I change the dynamic LOV query to exclude the :CURR_CLASS_CAT_ID (a passed in session variable), the drop down shows all the text names I am looking for; albeit, too many since I am excluding the :CURR_CLASS_CAT_ID.
The page I am having the problem with is a popup that is called from a report link on another page. When I show the session variables on the popup page, it shows values for only 1 of the 3 session variables I am passing to this page.
I am using the javascript:popUp2 syntax when I call the popup page from the report link.
As I said previously, I am passing 3 parms and only the 1st parm is getting a value. Yes, there are values for all three parms in the record of the report.
Is there a limit to the number of variables (itemNames) that can be passed to the popup using this method? -
Get value of formula variable during query runtime into a text variable
Hi all,
I wanna get the value of the formula variables during the query runtime into a text variable.
My scenario is like this: First I defined a formula variable Z_DATE_3 which is processing by replacement. It will get the day of a characteristcs(Startdate).
Then I defined a text variable and in the function module related to this text variable, I used the parameter I_T_VAR_RANGE which can store the value of formula variable during the query runtime.So I can read the value from this table in my function module.
But I have a issue, when I run the query which used the defined text variable, it seems that it doesn't call the corresponding function module. Because I set a breadpoint in hte code and it never reach this breakpoint.
If I removed the parameter I_T_VAR_RANGE , it can enter the function module.
So could you please give some advice?
Is my solution correct or not?
And what's wrong with the parameter I_T_VAR_RANGE? Did I use it correctly?
And My code is:
DATA: l_s_range_v TYPE rrrangeexit,
l_day type sy-datum.
if i_step <> 2.
raise no_processing.
endif.
READ TABLE i_t_var_range INTO l_s_range_v
WITH KEY vnam = 'Z_DATE_3'.
if sy-subrc = 0.
l_day = l_s_range_v-low.
endif.
Thanks in advance!
Best regards
FanchestHi, Fanchest,
I'm having just the same issue. Did you find a solution?
I wrote a short routine in CMOD to derive the value of a formula variable to a text variable, but it's not working (I don't get any value). Can you share your solution?
Thanks in advance,
LL -
Dynamic calculation of prior 2 months
Hi all
Please help me out in solving this issue
In my quuery out put will be as follows
jun07 jul07 aug07 sep07
quantity 45 50 60 70
2m Offset quantity 45 50
Issue:
for 2m offset quantity we need to take quantity value two months prior.
Example For sep07 it should display value of Jul07.
I tried eith variable offset values. but they are taking current perid and substracting 2 months.
i need dynamic calculation for every month.
thanks
srteelathaHi,
By Using 2 structures in the query , that means you have to take a selection in the columns area and you need to take 6 selections under this structure, you will get a chance to use the cell editor concept.Here first 2 selections will be hidden.
that means first selection for APR.
2nd selection for MAY.
3 - June
4- July
5- Aug
6- Sep
In the cell editor concept ,you can overwriet the 2nd row values of the last 4 selections .That means 2nd row's 3rd(june) column value will be overwritten with 2nd row's 1st column value(APR) &
2nd row's 4th column value(July) will be overwritten with 2nd row's 2ndt column value(May) &
2nd row's 5th column value(aug) will be overwritten with 2nd row's 3rd column value(june) &
2nd row's 6th column value(Sep) will be overwritten with 2nd row's 4th column value(July) &
With rgds,
Anil Kumar Sharma .P -
How can we use C# to read dynamic parameter's value list from .rpt?
I'm using Cystal Report 2008. We know starting from CR XI we can create dynamic parameters, the list of items of this kind of parameter are fetching from database. So in general the SQLs to get the list of values for dynamic parameters are stored in the .rpt.
In Crystal Report Designer, if I preview a report with dynamic parameters, it will first query the database and then show the input dialog with list of values from database for user to choose. My question is can we implement the same thing by our C# code? I'm planning to use C# code to read this dynamic parameter's value list from .rpt and render them on the web page. Then pass back the user selected values to the .rpt to run the report after user make the choice. I didn't find any APIs can do this. Is it possible?
Thanks in advance!!Hi,
Can you explain a bit in detail, I have similar scenario. I am using the following code but not getting the Column name for dynamic parameter list.
foreach (ParameterFieldDefinition prm
in reportDocument.DataDefinition.ParameterFields)
try
string vParameterFieldName;
*vParameterFieldName = prm.ParameterFieldName.ToString();*
Shakeel -
Dynamic list of values in CR 2008 - request of login to database
I am using CR2008 with VB2005. I created simple application which generate report on different SQL Server 2005 databases.
Report uses OLE.DB connection to SQL Server, I pass logon information in VB using "SA" username and password. The same simple report works great on different databases with one exception: if parameter (dynamic list of values) is used in report it runs correctly only on database it was created (connection to this database is saved in report and can be seen in Database->Set Datasource Location). Changing connection to other databases in VB during runtime causes CR to ask for username and password (in standard parameter window). It looks, like Crystal have one connection for report and the other for dynamic list of values parameter. I pass connection information to report using ConnectionInfo(). I loop through alll tables in report and apply connection:
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
I tried to pass connection information also to parameter but I couldn't find such possibility.This is a known issue (Tracking number is ADAPT01333806.) and a note has been written, unfortunately it is not yet published. Below is the note content, including a work-around / resolution. You may also want to try FP 2.3, see that helps. (I'll break this post into two as I'll loose the formatting if I don't.
Reproducing the Issue
Use Crystal Reports 2008 SP2 to create a report with dynamic parameter(s)
Use the following code from the Crystal Reports SDK for VS .NET
Dim crDatabase As Database
Dim crTables As TablesDim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo
crReportDocument.Load("<path>")
crReportDocument.Refresh()
crConnectionInfo = New ConnectionInfo()
With crConnectionInfo
.ServerName = "<New Server Name>"
.Password = "<password>"
End With
crDatabase = crReportDocument,Database
crTables = crDatabase.Tables
For Each crTable In crTables
crTableLogOnInfo = crTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogOnInfo)
Next
CrystalReportViewer1.ReportSource = crReportDocument
The above code works with Crystal Reports 2008 SP 1 -
Dynamic SQL within a SQL Query ?
is there any possibility to do like this ?
SELECT table_name, XXXXXXXX('SELECT Count(*) FROM '||table_name) tot_rows
FROM dba_tables
WHERE owner = 'SCOTT';or any other trick to run dynamic SQL within the SQL Query?
Hoping....that it should be.
Regards,
OrapdevOne small disadvantage: it is executing 202 SQL statements: 3 "user SQL statements" (the one above and the 2 "select count(*)..."), and 199 internal ones ...How did you get to those numbers?
I just traced this statement and found completely different results:
TKPROF: Release 10.2.0.3.0 - Production on Tue Jul 10 12:12:10 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: diesl10r2_ora_5440.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
declare cursor NlsParamsCursor is SELECT * FROM
nls_session_parameters;begin SELECT Nvl(Lengthb(Chr(65536)),
Nvl(Lengthb(Chr(256)), 1)) INTO :CharLength FROM dual; for NlsRecord in
NlsParamsCursor loop if NlsRecord.parameter = 'NLS_DATE_LANGUAGE' then
:NlsDateLanguage := NlsRecord.value; elsif NlsRecord.parameter =
'NLS_DATE_FORMAT' then :NlsDateFormat := NlsRecord.value; elsif
NlsRecord.parameter = 'NLS_NUMERIC_CHARACTERS' then
:NlsNumericCharacters := NlsRecord.value; elsif NlsRecord.parameter =
'NLS_TIMESTAMP_FORMAT' then :NlsTimeStampFormat := NlsRecord.value;
elsif NlsRecord.parameter = 'NLS_TIMESTAMP_TZ_FORMAT' then
:NlsTimeStampTZFormat := NlsRecord.value; end if; end loop;end;
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50
SELECT NVL(LENGTHB(CHR(65536)), NVL(LENGTHB(CHR(256)), 1))
FROM
DUAL
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 1
total 3 0.01 0.00 0 0 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50 (recursive depth: 1)
Rows Row Source Operation
1 FAST DUAL (cr=0 pr=0 pw=0 time=7 us)
SELECT *
FROM
NLS_SESSION_PARAMETERS
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 17
total 3 0.00 0.00 0 0 0 17
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50 (recursive depth: 1)
Rows Row Source Operation
17 FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=124 us)
select PARAMETER,VALUE
from
nls_session_parameters where PARAMETER in('NLS_NUMERIC_CHARACTERS',
'NLS_DATE_FORMAT','NLS_CURRENCY')
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 3
total 3 0.00 0.00 0 0 0 3
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50
Rows Row Source Operation
3 FIXED TABLE FULL X$NLS_PARAMETERS (cr=0 pr=0 pw=0 time=57 us)
select to_char(9,'9C')
from
dual
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 0 0 1
total 3 0.00 0.00 0 0 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50
Rows Row Source Operation
1 FAST DUAL (cr=0 pr=0 pw=0 time=2 us)
SELECT table_name,
DBMS_XMLGEN.getxmltype ('select count(*) c from ' || table_name).EXTRACT
('//text').getstringval
() tot
FROM dba_tables
WHERE table_name IN ('EMP', 'DEPT') AND owner = 'SCOTT'
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.01 0.02 0 48 0 2
total 3 0.01 0.02 0 48 0 2
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50
Rows Row Source Operation
2 HASH JOIN (cr=42 pr=0 pw=0 time=2952 us)
2 MERGE JOIN CARTESIAN (cr=42 pr=0 pw=0 time=1206 us)
2 NESTED LOOPS OUTER (cr=42 pr=0 pw=0 time=478 us)
2 NESTED LOOPS OUTER (cr=36 pr=0 pw=0 time=421 us)
2 NESTED LOOPS OUTER (cr=30 pr=0 pw=0 time=379 us)
2 NESTED LOOPS OUTER (cr=30 pr=0 pw=0 time=365 us)
2 NESTED LOOPS (cr=22 pr=0 pw=0 time=312 us)
2 NESTED LOOPS (cr=16 pr=0 pw=0 time=272 us)
2 NESTED LOOPS (cr=8 pr=0 pw=0 time=172 us)
1 TABLE ACCESS BY INDEX ROWID USER$ (cr=2 pr=0 pw=0 time=56 us)
1 INDEX UNIQUE SCAN I_USER1 (cr=1 pr=0 pw=0 time=30 us)(object id 44)
2 INLIST ITERATOR (cr=6 pr=0 pw=0 time=111 us)
2 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=6 pr=0 pw=0 time=87 us)
2 INDEX RANGE SCAN I_OBJ2 (cr=4 pr=0 pw=0 time=54 us)(object id 37)
2 TABLE ACCESS CLUSTER TAB$ (cr=8 pr=0 pw=0 time=98 us)
2 INDEX UNIQUE SCAN I_OBJ# (cr=4 pr=0 pw=0 time=26 us)(object id 3)
2 TABLE ACCESS CLUSTER TS$ (cr=6 pr=0 pw=0 time=39 us)
2 INDEX UNIQUE SCAN I_TS# (cr=2 pr=0 pw=0 time=13 us)(object id 7)
2 TABLE ACCESS CLUSTER SEG$ (cr=8 pr=0 pw=0 time=37 us)
2 INDEX UNIQUE SCAN I_FILE#_BLOCK# (cr=4 pr=0 pw=0 time=21 us)(object id 9)
0 INDEX UNIQUE SCAN I_OBJ1 (cr=0 pr=0 pw=0 time=4 us)(object id 36)
2 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=6 pr=0 pw=0 time=33 us)
2 INDEX UNIQUE SCAN I_OBJ1 (cr=4 pr=0 pw=0 time=23 us)(object id 36)
2 TABLE ACCESS CLUSTER USER$ (cr=6 pr=0 pw=0 time=28 us)
2 INDEX UNIQUE SCAN I_USER# (cr=2 pr=0 pw=0 time=12 us)(object id 11)
2 BUFFER SORT (cr=0 pr=0 pw=0 time=716 us)
1 FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=661 us)
1436 FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=1449 us)
select count(*) c
from
EMP
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 1 0 1
total 4 0.00 0.00 0 1 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50 (recursive depth: 1)
Rows Row Source Operation
1 SORT AGGREGATE (cr=1 pr=0 pw=0 time=96 us)
14 INDEX FULL SCAN EMP_IDX (cr=1 pr=0 pw=0 time=46 us)(object id 61191)
select metadata
from
kopm$ where name='DB_FDO'
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.00 0 2 0 1
total 3 0.00 0.00 0 2 0 1
Misses in library cache during parse: 0
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=42 us)
1 INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=22 us)(object id 365)
select count(*) c
from
DEPT
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 0.00 0.00 0 1 0 1
total 4 0.00 0.00 0 1 0 1
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 50 (recursive depth: 1)
ALTER SESSION SET sql_trace=FALSE
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 0 0 0
Misses in library cache during parse: 0
Parsing user id: 50
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 5 0.00 0.00 0 0 0 0
Execute 5 0.00 0.00 0 0 0 1
Fetch 3 0.01 0.02 0 48 0 6
total 13 0.01 0.03 0 48 0 7
Misses in library cache during parse: 0
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 5 0.00 0.00 0 0 0 0
Execute 5 0.01 0.00 0 0 0 0
Fetch 7 0.00 0.00 0 4 0 21
total 17 0.01 0.00 0 4 0 21
Misses in library cache during parse: 0
9 user SQL statements in session.
1 internal SQL statements in session.
10 SQL statements in session.
Trace file: diesl10r2_ora_5440.trc
Trace file compatibility: 10.01.00
Sort options: default
1 session in tracefile.
9 user SQL statements in trace file.
1 internal SQL statements in trace file.
10 SQL statements in trace file.
10 unique SQL statements in trace file.
132 lines in trace file.
0 elapsed seconds in trace file.I only see a ratio of 1:9 for user- to internal SQL statements?
michaels> select * from v$version
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production -
Detailed Query Runtime Statistics - Substeps of Data manager Event
Dear All,
I am using the report for 0TCT_MC02_Q0200 to analyse the Detailed Query Runtime Statistics.
The report shows that the Event 9000 (Data manager Event) took a time of 109 seconds.
I would like to know as to what does the 9000 Data Manager Event that takes 109 seconds do for me.
What is it doing for 109 seconds ????
Can I have more details about the substeps of Data manager Event and time taken by them ??? Any Table or a report would suffice my requriement.
Thanks
Regards
ShalabhHi Jain,
Execute the query in RSRT or in RRMX. To Check how much time it is taking to execute this querry?? To get this information, Goto SE11> Give table name RSDDSTAT_DM in BI7.0 or RSDDSTAT in BW3.x> Display -> Contents-> Give from date and to date values as today, user name as Ur user name, and give the query name--> execute.
Now u'll get a list with fields like Object name(Report name), Time read, Infoprovider name(Multiprovider), Partprovider name (Cube), Aggregate name... etc. If the time read is less than 100,000,000 (100 sec) is acceptable. If the time read is more than 100 sec then it is recommended to create Aggregates for that query to increase performance.
Here in this table u'll find detailed Query Runtime Statistics.
Hope thsi helps you..
Regards,
Ramki. -
Format/Calculation Timestamp Keyfigure in Query (Web)
Hi All,
i have a timestamp keyfigure (DEC) in my query...it is coming as '20100705175113'... in my webreport it looks like this:
20.100.705.175.113
1.) Is there any possibility to show the keyfigure in this format '2010-07-05 17:15:13' ?
2.) Is it possible to calculate the difference (in minutes or...) between 2 timestamps at query runtime, and how??
3.) Is there a SAP standard variable, which gives me a timestamp (current date and time) at query execution (to use in exception reporting)?
One problem: I cant use customer exit (no developer key)... but would be nice, if there is no other option than customer exit, to explain it all the same...
Thanks in advance,<deleted by Moderator>
Sven
Edited by: Siegfried Szameitat on Jul 5, 2010 6:11 PM
Edited by: Sven Mler on Jul 5, 2010 6:14 PMHi, thank you for your answer!!! But I don't know, what to wirte it in my conversion routine...I would be very happy, if you could help me again...Please
Sven
My blank conversion routine right now:
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RSD, RSARC, RSARR.
TYPES: DE_ (000005) TYPE P.
Conversion rule for InfoObject
Data type = DEC
ABAP type = P
ABAP length = 000005
FORM CONVERT_
USING RECORD_NO LIKE SY-TABIX
SOURCE_SYSTEM TYPE RSA_LOGSYS
IOBJ_NAME TYPE RSIOBJNM
CHANGING RESULT TYPE DE_ " InfoObject value
RETURNCODE LIKE SY-SUBRC.
$$ begin of routine - insert your code only below this line -
RESULT = .
RETURNCODE = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
Edited by: Sven Mler on Jul 6, 2010 11:08 AM -
Error in BI Administration Cockpit for "Query Runtime Statistics"
Dear all,
after implementing the BI Administration Cockpit in BW and the EP I noticed, that whenever I try to modify my object selections under the node "Query Runtime Statistics", I get an error saying
"The Entered Value Is Not in the List of Valid Values"
This occurs under the following nodes:
BI Application Statistics -> BI Application Selection -> Web Templates / Workbooks
BI Application Object Statistics -> BI Application Object Selection -> Queries / Query Views / Planning Functions ....
InfoProvider Statistics -> InfoProvider Type Selection
Any ideas how to fix this issue???
Thanks,
AndreasAndreas,
Thank you for your response. I applied the note 1463442 to our Development system. It fixed the error, that is , now I don't get "entered value is not in list of valid value". But when I unselect objects and click on "SUBMIT" button, nothing happens. It should redraw the report based on the selection.
Is this working for you ? If so, please advise us.
Thanks again,
Ravi -
Can I create a multi-selection list using a dynamic list of values?
I'm reading section 19.7.3 from the dev guide - it explains how to create a selectOneListbox using a dynamic list of values. Is it possible to create a multi-select listbox from a dynamic list of values?
What I would like to do - I have a read-only view object with a hard-coded query - I would like to display the results of the query in a dropdown list box, or dropdown list box with boolean checkboxes, to allow the user to select multiple items from the list. How can I accomplish this?
thanksHi JavaX,
I don't know of any JSF components (at least not any ADF Faces components) that lets you do multiple selection in a drop-down. There is an af:selectManyListbox, but it does not render as a drop-down.
John -
Dynamic Table Input Field - Disabled in runtime
Hi,
I have dynamically created a node. The node as a string attribute X.
Then dynamically created a IWDTable to bind to the node.
In the table I have a column, then a tablecelleditor of inputfield.
The inputfield 'value' is binded to node->X attribute info.
inputField.bindValue(attributeInfo).
Then I created a few entries of the node, populating X with some dummy value.
In runtime, my inputfields are disabled, and the dummy values don't appear.
I believe it is something to do with my binding.
Then I replaced the inputfield with a textview. textview text is binded to the node->X
attribute info.
textview.bindText(attributeInfo)
(i.e. exact same attribute info I used for the inputfield)
In runtime I see my textview with the dummy values.
Can anyone point me in the right direction?
Cheers,
Michael.Hi Guys,
I think to be clear I better include my code here.
I did bind the table to the nodeInfo, and I did bind the textView/inputfield to the particular attribute.
As mentioned before, it does show for the textView, but not for the inputfield.
Create the new node:
IWDNodeInfo newNode = wdContext.getNodeInfo().getChild("nodeName");
newNode =
wdContext.getNodeInfo().addChild(
"nodeName",
null,
true,
true,
true,
false,
false,
true,
null,
null,
null);
Create the attribute:
IWDAttributeInfo detailAttribute =
newNode.addAttribute(
"xyz",
"ddic:com.sap.dictionary.string");
Get the node
IWDNode specificNode =
wdContext.getChildNode(
"nodeName",
0);
Create the element from the node
newElement =
specificNode.createElement();
Set the attribute value:
newElement.setAttributeValue(
"xyz",
"1234");
Add the new element:
specificNode.addElement(newElement);
Create the table now:
IWDTable someTable =
(IWDTable) view.createElement(
IWDTable.class,
"TAB_ArticleQty" + articleElement.getArticleId());
someTable.setEnabled(true);
someTable.setReadOnly(false);
someTable.setRowSelectable(true);
someTable.setFooterVisible(false);
someTable.setSelectionMode(WDTableSelectionMode.NONE);
someTable.setVisibleRowCount(-1);
someTable.bindDataSource(
specificNode.getNodeInfo());
TC.addChild(someTable);
Loop at all the attributes and create the column
The code for the textView has been commented out
The code is now for the input field
* LOOP AT ALL THE ATTRIBUTES IN THE NODE:
* CREATE ONE COLUMN FOR EACH ATTRIBUTE
Iterator allAttributes =
specificNode.getNodeInfo().iterateAttributes();
while (allAttributes.hasNext()) {
IWDAttributeInfo attrInfo =
(IWDAttributeInfo) allAttributes.next();
String attrName = attrInfo.getName();
// Text View
IWDTextView TV_info =
(IWDTextView) view.createElement(
IWDTextView.class,
"TV_AQ_"
+ counter
+ attrName);
TV_info.bindText(attrInfo);
COL_qty.setTableCellEditor(TV_info);
//input field for the user to enter the value
IWDInputField input_Qty =
(IWDInputField) view.createElement(
IWDInputField.class,
"input_Qty"
+ counter
+ attrName);
input_Qty.setEnabled(true);
input_Qty.bindValue(attrInfo);
input_Qty.setWidth("4");
COL_qty.setTableCellEditor(input_Qty);
someTab.addColumn(COL_qty); -
Precalculated Value Set - Query Designer - information Broadcasting NW2004
Hi Buddies,
Needs your help!
i have question regarding to the precalculated Value set distribution type for infomation Broadcasting NW2004.
According to my understanding, firstly i created a broadCasting setting Z_Test based on Query1 to calculated the value Set, for example , for company code.
And then in the Query Designer, New a Query2 which contains a Variable type precalculated value set and its default value point to the broadcasting setting created before.
but when i check the query, it present an error message : 'Default value for Variable 'PM_Comp' are not within permitted value range'.
could anyone can help me out with it?
Thanks a lot!!
B.R
ViviHi,
I am also getting the same error. Have you got any solution ??
Regards,
Sheetal
Maybe you are looking for
-
Not displaying in PC or Itunes but frozen on "Do Not Disconnect" message
When I tried to sync my year old 5th generation iPod this morning, nothing happened. iTunes is not showing it, neither is my computer but yet now there is a frozen "Do Not Disconnect" message on the iPod's. screen. Since iTunes won't recognize my iPo
-
Charging Battery - Possible Problem
Hi, I'm acutally asking on behalf of a friend. He gave his iPod to me to help figure out a whole bunch o' problems. I've figured out everything except for one thing. When I plug it into my laptop to charge, I get the "Do not disconnect" message with
-
Standard Program for Interactive Forms
Hi all, I want to see the Print Preview of any of a Standard Interactive Form. Please Give me Some Standard Programs which call the Interactive forms.. Thank you.
-
SAP NetWeaver Visual Composer Storyboard Error
Hi all, currently i new in Business Intelligence area.. when i try to create new model in Visual Composer. i just popup this error message "<b>Login Error com.sap.ds.core.project.Project.deleteResour(Ljava/lang/String;)V</b>" after that when i try to
-
I have one doubt that if I run one stroed procedure & compile it then its execution plan is generated that means every time u compile the procedure execution plan is generated or not??? if generated then again this type query fire then it's goes to &