Hard code a value in a characteristic of an Infoset
Dear BI Experts,
I need a view (virtual - no data loaded) to show only certain fields out of a Cube. I am trying to create an Infoset bringing in only the cube as a data source (no 2nd data source in the Infoset). In this Infoset I want to hard code a value for one of the fileds, so that I get data relevant for this value.
Best example would be country grouping. I have a cube which has data for all coutry grouping. I want to now create a view for only Coutry grouping = US.
How do I hard code in the view(Infoset) to say that show data only for US.
My ultimate aim is to enable Functional users to create a report in Query designer pulling data from the view created and they do not want to hard code the country grouping = US while crerating the report.
Could you also recommend any other way of doing this instead of by an Infoset.
Kindly keep it in mind that we do not want to store this data set in another cube or DSO because this will duplicate data in BI system. We want a virtual view.
Thank you in advance.
Sai
I agree with the other contributor that an Infoset is not the best fit for your requirements.
In addition to the aforementioned here are the two options I suggest:
1) You could handle this in BEX Query Designer and setup Pre-Queries (replacement path queries) for each "hard coded" value. http://help.sap.com/saphelp_sem40bw/helpdata/EN/2c/78a03c1178ad2ce10000000a114084/frameset.htm
2) You can set up Virtual Infocubes with Services (Virtual Provider). This involves setting up the Virtual Infocube directly with the original data source and creating custom restrictions for your data. There is however there is more involved in setting it up.
http://help.sap.com/saphelp_sem40bw/helpdata/en/62/d2e26b696b11d5b2f50050da4c74dc/frameset.htm
Similar Messages
-
How to hard code the values in XI for the synchronous scenario?
Hi All,
Actual Scenario : Webservice - XI - Any of the Receiver Adapter(RFC/JDBC) .
The receiver adapter setup will take some more days to complete. So, time being I would like to hard code the response values in XI according to the webservice request and send the response back to webservice. Is it possible?
If it is possible, could you please tell me how to go about for this?
Regards
SaraHey
>>So, time being I would like to hard code the response values in XI according to the webservice request
if ur response is based upon the request,then how can u hard code any value?when u hard code any element.it will always display the hard coded value irrespective of the request.
in case u want to hard code something which does not depends on response or which will always stay the same in ur scenario,then just use the constant function of message mapping to do that
thanx
ahmad
Message was edited by:
Ahmad -
To Hard Code a value in the BPEL
Hi,
First Let Me Explain My Situation:
I created a BPEL process which closes the WorkList in the BPM Worklist. I created a Schema that contains some mandatory fields. I deployed that process in the Oracle EM Console. The Tasks that has been created in the BPM Worklist will be closed when i enter data in the mandatory fields. These mandatory field data should be passed to the other systems, so i need to hardcode the values of the mandatory fields in the BPEL process itself.
Now My Question Is:
How i need to hardcode the values of the mandatory fields in the BPEL process. One my friend told that i can use the FILE ADAPTER, if that is the option how can I use it?
Jdeveloper Version: 11.1.1.3(11g Release 1)
BPM Worklist Version: 1.3
EM Console Version: 11g
Edited by: user12990031 on Jun 17, 2010 3:43 AMActually i have given the Mandatory fields as input. So when I test the process in the EM Console i need to fill the mandatory fields. Once i fill the mandatory fields and Test the Service i will invoke a WSDL file that will close the Tasks in the BPM Worklist. If I dont give the mandatory fields it will throw a error. Now what I need is that I Dont want to enter the values for some mandatory fields, instead i need to pass it as a hardcoded value. So that i need not to type the values of that fields during testing.
-
How to hard code values in drop down by index
Hi everyone
I hav a node containing 2 attributes ie value n key. I am using drop down by index. Value attribute is bound to my drop dwn box. In key I am providing key value for the value. I need to hard code 3 value..Can anyone help me how to do so.
Thanks
Jaspreet KaurHi,
Example for Data Binding of the DropDownByIndex UI Element:
Procedure at design time:
1. Create a view with the name TestView.
2. Insert the DropDownByIndex UI element as a container child of the TestView view. (Step 1)
3. Create the context structure, as described in step 2.
Create the context node X with the cardinality 0..n. Insert the value attribute y of the type String into this node. Then perform the data binding of the DropDownByIndex UI element in the Properties window of the View Designer. The texts property must be bound to the value attribute y with the context path description TestView.X.y (step 3).
The context path TestView.X.y describes the attribute y in the context node X of the view context of the TestView view.
You can fill the context with test data using the following controller implementation.
public void wdDoInit()
//@@begin wdDoInit()
String[] letters = new String []
{"A", "B", "C", "D"};
//Create context elements for the node "X"
List nodeElements = new ArrayList();
for (int i = 0; i <letters.length; ++i)
IPrivateTestView.IXElement xElement = wdContext.createXElement();
xElement.setY(letters<i>);
nodeElements.add(xElement);
//Bind node element list to the node
wdContext.nodeX().bind(nodeElements);
//Set nodes lead selection which determines the selected item
wdContext.nodeX().setLeadSelection(1);
//@@end
Regards
Ayyapparaj -
I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.
Hi ART,
You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
There should be an example of this in the Resource Library | TestStand
Regards
Ray Farmer
Regards
Ray Farmer -
Bold the hard code value in sap-script
Hi friends,
Could anyone tell me how to display 1st half of hard code text in bold and 2nd half in unbold of a line of hardcode text ?
Pls treat it urgent
I will reward for every useful responses.
Thx in Adv.
Bobbyhi,
Create a character format for bold using Se72.
let the charcter format is c1.
Then call the style as
/: Style <STYLE NAME>
then In the editor Write like this
<c1>Hi How</c1> r u
it will display Hi How as bold and r u as simple.
regards
Sandipan -
How to use model clause without hard coding the values in it?
Query
select acct_no,
gl_code,
CASE
WHEN entry_type_label IN ('Earned Revenue') THEN
'Earned Revenue'
ELSE
'Deferred Revenue Credit'
END AS entry_type_label,
CASE
WHEN entry_type_label IN ('Opening Balance') THEN
'Opening Balance'
WHEN entry_type_label IN ('Deferred Revenue Credit') THEN
'Invoice Amount'
WHEN entry_type_label IN ('Earned Revenue') THEN
'Earned Revenue'
WHEN entry_type_label IN ('Closing Balance') THEN
'Closing Balance'
ELSE
'Deferred Revenue Credit'
END AS label,
entry_type_no,
orig_chg_start_date,
period_no,
-amt as amt
from revrec_test
WHERE acct_no = 1788562
AND entry_type_no IN (2, 4) model dimension by(acct_no,
gl_code,
entry_type_label,
entry_type_no,
orig_chg_start_date,
period_no) measures(amt) rules upsert
all(amt 1788562,
'UNEARNED-10011561',
'Opening Balance',
2,
'02-OCT-17 08.30.00 AM',
190 = 0,
amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
190 = amt 1788562,
'UNEARNED-10011561',
'Deferred Revenue Credit',
2,
'02-OCT-17 08.30.00 AM',
190 - amt 1788562,
'EARNED-10011561',
'Earned Revenue',
4,
'02-OCT-17 08.30.00 AM',
190,
amt 1788562,
'UNEARNED-10011561',
'Opening Balance',
2,
'02-OCT-17 08.30.00 AM',
191 = amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
190,
amt 1788562,
'UNEARNED-10011561',
'Deferred Revenue Credit',
2,
'02-OCT-17 08.30.00 AM',
191 = 0,
amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
191 =
(amt 1788562, 'UNEARNED-10011561', 'Opening Balance', 2,
'02-OCT-17 08.30.00 AM', 191 + amt 1788562, 'UNEARNED-10011561',
'Deferred Revenue Credit', 2, '02-OCT-17 08.30.00 AM', 191) - amt
1788562,
'EARNED-10011561',
'Earned Revenue',
4,
'02-OCT-17 08.30.00 AM',
191,
amt 1788562,
'UNEARNED-10011561',
'Opening Balance',
2,
'02-OCT-17 08.30.00 AM',
192 = amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
191,
amt 1788562,
'UNEARNED-10011561',
'Deferred Revenue Credit',
2,
'02-OCT-17 08.30.00 AM',
192 = 0,
amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
192 =
(amt 1788562, 'UNEARNED-10011561', 'Opening Balance', 2,
'02-OCT-17 08.30.00 AM', 192 + amt 1788562, 'UNEARNED-10011561',
'Deferred Revenue Credit', 2, '02-OCT-17 08.30.00 AM', 192) - amt
1788562,
'EARNED-10011561',
'Earned Revenue',
4,
'02-OCT-17 08.30.00 AM',
192,
amt 1788562,
'UNEARNED-10011561',
'Opening Balance',
2,
'02-OCT-17 08.30.00 AM',
193 = amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
192,
amt 1788562,
'UNEARNED-10011561',
'Deferred Revenue Credit',
2,
'02-OCT-17 08.30.00 AM',
193 = 0,
amt 1788562,
'UNEARNED-10011561',
'Closing Balance',
2,
'02-OCT-17 08.30.00 AM',
193 =
(amt 1788562, 'UNEARNED-10011561', 'Opening Balance', 2,
'02-OCT-17 08.30.00 AM', 193 + amt 1788562, 'UNEARNED-10011561',
'Deferred Revenue Credit', 2, '02-OCT-17 08.30.00 AM', 193) - amt
1788562,
'EARNED-10011561',
'Earned Revenue',
4,
'02-OCT-17 08.30.00 AM',
193)
ORDER BY period_no, entry_type_no;
The above query works fine. But i have hard coded the values. I want to do the same operation for different account number which is going to have different periodic no. How can I achieve it?
Thanks in advance.Create Statement
CREATE TABLE table_one(
ACCT_NO NUMBER(38),
GL_CODE VARCHAR2(300),
ENTRY_TYPE_LABEL CHAR(50),
ENTRY_TYPE_NO NUMBER,
ORIG_CHG_START_DATE TIMESTAMP(0) WITH LOCAL TIME ZONE,
ORIG_CHG_END_DATE TIMESTAMP(0) WITH LOCAL TIME ZONE,
PERIOD_NO NUMBER(38),
AMT NUMBER(38,10)
Insert Statement
INSERT ALL
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'U-11561','Deferred Revenue Debit',3,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',100,13.87)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'E-11561','Earned Revenue',4,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',102,-14.83)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'E-11561','Earned Revenue',4,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',101,-14.35)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'E-11561','Earned Revenue',4,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',100,-13.87)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'U-11561','Deferred Revenue Debit',3,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',103,0.95)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'U-11561','Deferred Revenue Debit',3,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',102,14.83)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'U-11561','Deferred Revenue Debit',3,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',101,14.35)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'E-11561','Earned Revenue',4,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',103,-0.95)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1001,'U-11561','Deferred Revenue Credit',2,'02-OCT-17 08.30.00 AM','01-JAN-18 01.30.00 PM',100,-44)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,44.91)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Accounts Receivable',1,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',104,60)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,3.93)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,11.75)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,6.86)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,-7.82)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,-23.47)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,-13.69)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,-6.86)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,7.82)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,23.47)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,13.69)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',104,-9.13)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,-44.91)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,-44.91)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,-35.91)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,-3.93)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,44.91)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',104,9.13)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Earned Revenue',4,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',106,-11.75)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Credit',2,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,38.48)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Credit',2,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,-19.24)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Credit',2,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',104,-60)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Accounts Receivable',1,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,38.48)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Accounts Receivable',1,'20-DEC-13 09.30.00 AM','16-FEB-14 09.30.00 AM',105,19.24)
INTO table_one(acct_no, gl_code, entry_type_label, entry_type_no, orig_chg_start_date, orig_chg_end_date, period_no, amt) VALUES(1002,'Recurring Flat Fees COA Code','Deferred Revenue Debit',3,'17-NOV-13 09.30.00 AM','16-FEB-14 09.30.00 AM',107,35.91)
SELECT * FROM dual;
Expected Result
S.NO
ACCT_NO
GL_CODE
ENTRY_TYPE_LABEL
ENTRY_TYPE_NO
ORIG_CHG_START_DATE
PERIOD_NO
AMT
DESCRIPTION
1
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
100
0
Opening Account
2
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
100
44
Invoice
3
1001
E-11561
Earned Revenue
4
02-OCT-17 08.30.00 AM
100
13.87
Invoice Paid
4
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
100
30.13
Closing Account
5
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
101
30.13
Opening Account
6
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
101
0
Invoice
7
1001
E-11561
Earned Revenue
4
02-OCT-17 08.30.00 AM
101
14.35
Invoice Paid
8
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
101
15.78
Closing Account
9
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
102
15.78
Opening Account
10
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
102
0
Invoice
11
1001
E-11561
Earned Revenue
4
02-OCT-17 08.30.00 AM
102
14.83
Invoice Paid
12
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
102
0.95
Closing Account
13
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
103
0.95
Opening Account
14
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
103
0
Invoice
15
1001
E-11561
Earned Revenue
4
02-OCT-17 08.30.00 AM
103
0.95
Invoice Paid
16
1001
U-11561
Deferred Revenue Credit
2
02-OCT-17 08.30.00 AM
103
0
Closing Account
Description
We must start opening account as zero and end with closing account as zero by doing manipulation with invoice and invoice paid.
Process
Initial Stage
Subsequent stage
Opening Account
0
(=closing Account)
Invoice
max value of account no which has entry type no 2
0
Invoice Paid
taken from the field amount which has entry type no 4
taken from the field amount which has entry type no 4
Closing Account
(=[opening account + invoice] - invoice paid)
(=[opening account + invoice] - invoice paid)
Note
1) Each account may have different periodic no.
2) Some account may have more than 4 distinct period no and less than 4 distinct periodic no.
3) Description column from expected result is not an part of table. It is been added for easier understanding. -
Hard code a seed for a random number generator?
Hi, I need to randomly get either 1 or 0, but in the program I'm running I want to get the same distribution of 1's and 0's every time I run it. I know I need to hardcode the seed in so I use the same seed every time, but I'm not sure how to do this. I know how to use Math.random, and just do
double randomDouble = Math.random();
int rand = (int)(randomDouble + 0.5);but I dont know how to hard code a seed using this.
thanks.ryanj318 wrote:
I tried that, and the problem is that I get the same random number every time (in this case I get 1 every time).Then you must be creating a new Random every time.
To be more clear on what I want, I am generator 20 numbers, and I want a random distributions of 1's and 0's, but I want to get the same distribution every time I run the program. Like if I get 13 1's and 7 0's then I want to get that every time. Can I do this? Right now, I will end up with either 20 1's or 20 0's.
ThanksCreate a new Random once, probably as a static member variable, but possibly just at the start of that method. Seed that Random with the same value every time it's created, and you'll get the same sequence every time you use it.
BUT, if you create it, then use it, then create, then use, and repeat that 20 times, then you'll be getting the first number of the same sequence 20 times.
By the way, to you want 1/0 or true/false? If the latter, I believe Random has a nextBoolean method. -
Hard code accounts using the dynamic report templates?
Anyone ever been able to hard code accounts using the dynamic report templates?
How about getting the Property name/value fields to work?Hi,
No, this is not possible.
In Dynamic Report templates (which are not based on EVDRE function in version 7 and below), the only thing you can do is to not use any expansion at all and to list your specific accounts on the layout itself. Or to expand your accounts based on a dimension property.
In version 7.5, all Dynamic Templates for Report and Input Schedules will use EVDRE function.
Hope this helps.
Kind Regards,
Patrick -
Do not hard code the connection
I trying to seperate the web container and ejb container into two machines
for an existing application.
It works in one machine, and it works on two machinese if I hard code the
JNDI factory, the provider_URL.
My question " Is it possible to do this without hardcoding the URL".
I am running two windows NT boxes for this.
thanks.To use 2 different WL servers, one as EJB container and one as web
container, you have to create or edit your jndi.properties file (in your
jre/lib directory) and add two lines to it that specify
t3://<servername>:<port> ... unfortunately I don't have the information here
at home but I think that I have posted it before on one of these WL
newsgroups.
Cameron Purdy, LiveWater
"Dave Read" <[email protected]> wrote in message
news:[email protected]...
I may be missing it, but in this and another thread, I don't see where the
host is specified (where the EJB has been bound to a JNDI name)? I'vebeen
able to do this standalone using the -Djavax.naming.provider.url property.
However, I don't see how to tell an instance of a WL server that's just
running web-apps, where (on what machine) to find the JNDI tree that
contains the EJB Homes?
The code in this post seems to help when an EJB wants a simple way to get
it's own properties. I need to deploy the web-app and EJBs on separate
(non-clustered) systems.
Bottom line ... how to externalize the provider URL.
Thanks!
Cameron Purdy <[email protected]> wrote in message
news:[email protected]...
Beautiful.
Cameron Purdy, LiveWater
"Tom Preston" <[email protected]> wrote in message
news:[email protected]...
Here is an example:
Using 5.1.0 xml dd's, you can specify an <env-entry> which is
associated
with
your ejb:
<env-entry>
<env-entry-name>poolName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>myPool</env-entry-value>
</env-entry>
file://now put this code into your Bean class
private String getPoolName( ) {
try {
// Obtain this enterprise bean's environment naming context.
Context initCtx = new InitialContext();
m_envCtx = (Context)initCtx.lookup("java:comp/env");
String poolName = (String) m_envCtx.lookup("poolName");
return poolName;
catch (Exception e) {}
return null;
Alexandre POLOZOFF wrote:
Is there an example of how to do this somewhere?
-Alex
"Tom Preston" <[email protected]> wrote in message
news:[email protected]...
You can put this info into your EJB deployment descriptors (xml if
5.1.0)
and
access them as environment variables.
xinguang sheng wrote:
I trying to seperate the web container and ejb container into
two
machines
for an existing application.
It works in one machine, and it works on two machinese if I hard
code
the
JNDI factory, the provider_URL.
My question " Is it possible to do this without hardcoding the
URL".
I am running two windows NT boxes for this.
thanks. -
Rebecca:
This is the standard call for a Portal-built form:
PORTAL.wwa_app_module.link (
p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:loc_code'),
p_arg_values => PORTAL.wwv_standard_util.string_to_table2('2728668008:BHM'));
The 1st parm is required, it id's the form to call; the 2nd parm, LOC_CODE, I'm having to hard-code. It relates to the specific page from where this form is called; therefore, I've several places throughout the site where I call this form and the LOC_CODE value is different. I've a field on on this form that gets populated with this value when the form comes-up, but I have it hidden. I can also use this value to drive the contents of a combo-box on the form. That's what I really needed to do; restrict the selection there based on where the form was being called from.
Hope that helps...
Ed in TampaHi,
I like the docReady event, as it is the last event to fire as the form is being rendered and does not fire again. Note, if the form is Reader Enabled, then the docReady event will fire twice. See discussion here: http://forums.adobe.com/message/3040556#3040556 and example form here: http://assure.ly/gW3RNr.
I have an example here that uses the docReady event and didn't notice a performance issue (but then it is a small form): http://assure.ly/frjYW5.
Niall -
In SAP Script how to hard code my Company address in footer window
Hi All ,
In SAP Script how to hard code my Company address in footer window .
Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
Please give me step by step.
Thanks
SridharHi,
You can make use of standard text...
create a standard text in SO10 with your company address
and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
In the text editor... goto insert > text> standard
You get popup give the name of the text name id and language
regards
padma -
Characteristic value '5000000000 ' of characteristic 0MATERIAL is not MATN1
Dear Experts,
I am getting one error message while extraction,when executing the DTP .the messge is :
"Characteristic value '5000000000 ' of characteristic 0MATERIAL is not MATN1 -converted" BRAIN 68 @3R@
what is the meaning of this messege ,Request you to plese suggest me reagarding the same .thanks in advance .Hi Bhullar,
Have you maintained material length as 18 at ECC and BW sides.
at bw side info object 0material conversion routine as MATN1. seems like you may be maintained as ALPHA. if your using as ALPHA conversion routine then at transfer rules for MATERIAL you can pass output data by suing FM - CONVERSION_EXIT_ALPHA_INPUT.
or if possible then change conversion routine to MATN1 for material(info obj) at data source level or info object maintenance(RSD1) level.
Thanks -
No SID found for value 'GB' of characteristic 0CURRENCY
Dear Experts,
When i do the BW data load. I got the error. Seems the error related to no master data is available for SID creation. I got the below error message. Please help me to resolve. Points will be awarded. Your help is much appreciated. Thanks.
No SID found for value 'GB' of characteristic 0CURRENCY
Message no. BRAIN070
Diagnosis
Characteristic value GB does not exist in the master data table of characteristic 0CURRENCY. Therefore, this value could not be transformed into the internal SID.
Procedure
Check whether the value is correct or not. If it is correct, you need to generate the associated master data. Note: For characteristics 0FISCVARNT, 0FISCPER and 0FISCYEAR, there must be a corresponding fiscal year variant (see table T009). In addition, there must be units in table The value for 0FISCPER must be valid according to the fiscal year variants. This means that only the periods 0 to (no. of normal periods + special periods) are allowed. If the fiscal year variant is year-dependent, then only the periods defined for the corresponding year are valid. You can make these settings in Customizing in theactivity Maintain Fiscal Year Variant. T006 and currencies in table TCURC. Also note that the units must be of
Units that refer to 0UNIT must be available in table T006, and currencies that refer to 0CURRENCY in table TCURC. Note that the units must be available in internal format. Owing to the presence of a conversion exit in field MSEHI of table T006, you are only able to see the internal format if you deactivate this exit. ( Settings> User Parameters> Tab DataBrowser > Consider Conversion exit must not be set). Also take a look at note no. 619987.
Regards,
RR.Hi Reddy/Ajeet,
Thanks for your prompt reply.
I followed the steps:
Goto to RSA1-> Source systems--> Transfer Globle settings and Select Currencie, Ubits and Fiscal year, Factor...etc and select Update
Just would like to check with you, currently we are extracting data from SRM & SAP R/3 system.
I got the error while doing the data loading for SRM system. I did the above steps for both systems.
Is that anything else, i need to do....
Currently i am going to do the master data load, then i will do the transaction data & check with the currency error.
could you please elaborate the steps
1)How to check 0currency is getting updated in our system.
2) how to verify custom z program used
3) How to maintain the currency manually in BW.
Advance. Thanks.
Regards,
RR -
No SID found for value '000 ' of characteristic 0UNIT
Hi All,
iam loading to ODS from flat file and iam getting the error"No SID found for value '000 ' of characteristic 0UNIT ". to be more clear the load is taking place and the activation of ods is not taking place .
we added a new key figure to ods and when we add the data of the new field to the flat file we are getting this error . but when we load with the files which does not contain data to the new key figure its successfull .
can some one guide me how to resolve it.
regards,
jayHi All,
the data which i entered for the new key figure is 000 . is it because of it ? so , if i enter some value instead of 000 i may not get this error ....... am i rite? so checking the values means is it for the new key figure or there is an info object 0unit also in my case ?
kindly explain clearly with an example
regards,
jay
Maybe you are looking for
-
Multiple Convert/Dump and Load tasks in a single SSIS package?
I'd appreciate some input. We have a single data file that has about 1,000,000 rows of data spanning 28 time periods in the columns across each row. The file is too large to import at one time, and so we have created 9 different transformation files
-
My iPod got wet, I put it in a bag of rice for 4 days now the Ipod Works in my music player dock, but wont connect to pc and wont work on its own.
-
Hi, i want to import by DTW No. of Instalments and Day of payment terms ( CTG1 table) where can i find this dtw template? thanks
-
Hi all, We have done the data migration of DFM fault History from the database to Crsytal Report 2008. The data migration is also including a column of date and time. Migration process completed and we noticed on crystal report, the date and time for
-
I bought the 27" iMac i7 and had bad backlight bleed in the bottom right corner. This issue isn't new, but now I'm wondering if any imacs work properly. I returned it for another and opened it up to find the same issue and a nasty dead pixel dead c