Decode the values (Re-group Dimension Values) without ETL
Hello guys, i have a question which is partly triggered by me not wanting to modify the default ETLs.
I have values in a dimension table coming as:
Region A
Region B
Region C
Region D
Region E
However, i am hoping to re-org the hierarchy as below:
Region New A
Region New D
I know this can be done in ETL but is there any place else that this can be done? Possibly in the business layer? Is there a place in the business layer where we can decode the values and re-group them?
Essentially, there is a new org structure in our company where we are grouping (consolidating) old regions into new and renaming the values.
Thanks in advance for your help,
In the logical column in the BMM you have two options to write expression:
1. In general tab/use existing logical columns as the source
2. In data type tab/logical table source/edit/logical column and write expression using physical tables and columns
In both cases you can write your mapping expression whether it is a case statement or something else.
Regards
Goran
http://108obiee.blogspot.com
Similar Messages
-
Decode the values without ETL (Re-group Dimension Values)
Hello guys, i have a question which is partly triggered by me not wanting to modify the default ETLs.
I have values in a dimension table coming as:
Region A
Region B
Region C
Region D
Region E
However, i am hoping to re-org the hierarchy as below:
Region New A
Region New D
Essentially, there is a new org structure where we are grouping (consolidating) old regions into new and renaming the values.
I know this can be done in ETL but is there any place else that this can be done? Possibly in the business layer? Is there a place in the business layer where we can decode the values and re-group them?
Regards and thanks in advance for your help,Hi,
You could do this at the RPD layer with a case statement on a logical column. However I wouldn't really suggest this as it means if the grouping ever changes you have to release a new RPD to get the change.
Why not build a custom ETL task which you can set to run after the vanilla ones which just takes these values, consolidates them as required (perhaps using a lookup table to find the mappings from old -> new) and then loads the new value into an extension column on the dimension or on the related dimension extension i.e. W_ORG_DX. Then you can just expose this column in the presentation layer for users. Unless the table in question has many millions off columns, just let it do this mapping for every row in the table for each ETL.
I would think that would be a very simple task, and would mean that you could change the mappings easily through the lookup table if needed. It also means that you don't need to touch the vanilla ETL mappings, and aren't changing the values in the vanilla columns, as you mentioned you didn't want to do this.
Regards,
Matt -
FieTo IDoc Scenario.. Any option to filter the values without delimiter (-)
For File To IDoc scenario.
In Message Mapping:
Source value for a field will be in this format...
<u>Source Field value:</u>
234-890
345-789
322-099
But my requirement is to filter the <b>hyphen</b> from the values and map it to IDoc field like this..
<u>Target field value:</u>
234890
345789
322099
Can anyone clarify this ?
regards
SaravananHi Saravanan,
try this code:
String deleteSth = "-";
String nothing = "";
String stringWithout = a.replaceAll(deleteSth,nothing);
return stringWithout;
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a> -
I have an itunes gift card that I want to check the value so I know which card I am giving to whom. Is there a I can find the value without removing the security strip?
Hi,
sorry, i got no idea how to get the datatype of a variant, but there are properties "ActualSize" and "Type" of the ADO Field-Object. In case of an empty field the ActualSize is zero. Maybe you can use that. See VI below.
best regards
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"
Attachments:
DB_Test.vi 67 KB -
Getting the values of a form (JSP, JavaScript involved)
Hi, basically I want to read the values from one page to another one, but I have found that when call the jsp from a javascript function it does not work!!! ... if I call the page "getValues.jsp" directly from the <form action>, everything works perfectly ...
... does anyone know how to read the values without putting the jsp directly into the <form action>?
In asp i used to get the values from the form with a "Request.Form('fieldName')" method, and i could call the asp from any javascript function. Does jsp has anything similar to that?
----- fillValues.jsp ----
<script language="JavaScript">
function doSomething(){
// do something else
window.document.location="getValues.jsp";
</script>
<html>
<body>
<form method="post" action="javascript:doSomething()" name="x">
<input name="fldSubject" type="text">
</form>
</body>
</html>
------- getValues.jsp ---
<%@ page import="java.lang.*" %>
<%@ page import="java.util.*" %>
<jsp:useBean id="_mb" class="MyBean" scope="session"/>
<%
_mb.setSubject(request.getParameter("fldSubject"));
%>
<html>
Subject <%= _pr.getSubject() %><br>
</html>I dont know what the problem in your code is but the following works:
<script>
function foo()
document.myForm.action="getValues.jsp";
</script>
<form name="myForm>
<input type="submit" name="submit" onClick="foo()">
</form> -
GR Value without Delivery costs
Hi experts,
We loaded data through 2lis_02_Scl into the standard cube 0pur_c01.
Through some update routine in the update rules the data loaded into the cube for the field " Value of
goods received in local currency ".
When checked in the cube we are getting the value with the "Delivery Costs".
But we want the value without Delivery Costs.
The update routine in the update rules for this field is as follows:
========================
IF ( COMM_STRUCTURE-PROCESSKEY = '002' or "WE-Wert
COMM_STRUCTURE-PROCESSKEY = '012' or
COMM_STRUCTURE-PROCESSKEY = '022' )
AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
AND COMM_STRUCTURE-CPPVLC <> 0.
RESULT = COMM_STRUCTURE-CPPVLC.
========================
How to get the value without delivery costs ? What the code i need to write for this ?
Regards,
Bhadri M.Please ask your functional consultant,
about the condition to differentiate the GR Value and the Delivery Costs the Source System.
Check the movement types or the conditions.
Identify the tables and the field names.
ensure those fields were being populated through our extractor, if not go ahead with enhancing the structure and make a look up on the tables. After populating in the DSO, write a routine to negate the delivery costs. -
Currency and Groups Dimensions in Legal Consolidation, BPC 7.5
Dear BPC Experts:
I am using BPC 7.5 NW SP03, and building Legal Consolidation now. According to the SAP Library,http://help.sap.com/saphelp_bpc75_nw/helpdata/en/bpc_nw_index.htm, it says in 7.5, the currency and groups dimension are required and should hold currency members and consolidation members seperately. I have couple of questions about this design.
1. Are GROUPS and CURRENCY dimensions both included in Legal Consolidation Application at the same time?
2. How to move data in currency diemnsion into corresponding members in GROUPS dimension?
For example: THe GROUPS member, CG1(its currency is USD). How to let data in currency USD move to CG1.
3. In Legal Consolidation data package, should I modify the prompt dimension from CURRENCY_DIM into GROUP_Dim?? cause 7.5 has CURRENCY dim in its package setting at default. However, the consolidation package is based on GROUP perspectives.
Does anyone give me any idea in it? I really appreciate your help.
Best Regards,
Fred ChengHi Collet,
Thanks for such a quick response. Based on your answer,
The group-type dimension is used for storing the group component of legal consolidation. The group-type dimension represents the relationship of entities for a given consolidation result. This group is consolidated in a single currency, so there is no need to have another dimension. As of Planning and Consolidation 7.5, you can continue to use the currency-type dimension for this purpose, or you can split it into a group-type dimension (type G) and use a pure currency-type dimension (type R) to allow reporting in multiple group currencies.
If at all I go by that will that be sufficient to have only Group Dimension and ignore RptCurrency field in BPC 7.5?
As of now I am having my Group Dimension looks like this.
Member ID EVDESCRIPTION GROUP_CURRENCY PARENT_GROUP ENTITY
G_CG1 XXXX USD E_CG1
G_CG2 XXX USD G_CG1 E_CG2
G_CG3 XXXX USD G_CG2 E_CG3
So now do I need to enter any RptCurrency Members under Group Member ID column to have RptCurrency ignored once for all. By the way our RptCurrency and Group Currency is USD only.
Please advise as right now we are not able to have Currency Conversion Functioning properly. I mean when I executed FXTRANSLGF, I am able to my DM status as Successful but saying 0 Submitted 0 Success 0 Fail
I am unable to crack this. I tired playing Groups and RptCurrency but same result. Successful but no records. We have maintained all Exchange Rates corrctly. -
Problem in repetetion of the value of parent group element in each PDFpage
I am using data template in BI PUB. I have table containing Region_Name , Sales_Rep_Name and amount. I need to show the region_name(parent group element) on the top(not in header) of the next and subsequent pages . under same region_name if sales_rep_name(child group element) is large enough not to fit in a single page, then same region_name should appear in the next page. But this name is not repeting in every page of the generated PDF.
QUERY: SELECT region_name,sales_rep_name,SUM(amount) amount FROM edwods_bipub_test
GROUP BY region_name,sales_rep_name
ORDER BY region_name,sales_rep_name
Data Structure for the above query: <dataStructure>
<group name="g_region" dataType="varchar2" source="Q_weekly_summary_by_salesrep">
<element name="region_name" dataType="varchar2" value="REGION_NAME"/>
<group name="g_sales_rep" dataType="varchar2" source="Q_weekly_summary_by_salesrep">
<element name="sales_rep_name" dataType="varchar2" value="sales_rep_name"/>
<element name="amount" dataType="number" value="amount"/>
</group>
</group>
</dataStructure>
Please help me at [email protected]create a formula column
function Cf_clientaddressformula
return varchar
is
clientaddress VarChar2(1000);
begin
Select DeCode(:Address1, Null, Null, :Address1)||
DeCode(:AddressN, Null, Null, Chr(10)||:AddressN)||
DeCode(:City, Null, Null, Chr(10)||:City)||
DeCode(:State, Null, Null, Chr(10)||:State)
DeCode(:Country, Null, Null, Chr(10)||:Country)
DeCode(:PostalCode, Null, Null, Chr(10)||:PostalCode)
Into ClientAddress
From Dual;
ClientAddress := LTrim(RTrim(ClientAddress,Chr(10)),Chr(10));
return(ClientAddress);
End;
assign this cf to the address field in your report and set that field "Vertical Elasticity" to "Variable"
Hope this will solve your problem.
Sumanth -
The maximum value of a maximum value without making two querys of the same
Hi,
In the table cmp_lineas_cotizacion i need to take only rows with the maximum lc.mto_precio_venta of the maximum l.fec_ini_vigencia_costo of l.cod_producto, but I have the problem that cmp_lineas_cotizacion is a very load table with take to much resources of the database, I can't modify or agregate indexes, so I need a way to make this query more efficient. I want to find a way to replace the last 6 lines of this query and make it faster.
select b.segment1 || '.' || b.segment2 as ITEM,
case when b.organization_id in (125,89,90,92,95,97,99,101,104,106,108,110,112,115,83,85,
87,88,91,93,94,96,98,100,102,103,107,109,111,113,114,116,
117,120,123,124,128,130,132,134,135,133,131,129,118,182)
then 1
when b.organization_id in (105, 126)
then 2
end as ZONE_ID,
replace(l.mto_precio_venta,',','.') as STANDARD_RETAIL,
'VEF' as STANDARD_RETAIL_CURRENCY,
case when b.primary_unit_of_measure like '%KG%' then 'KG'
when b.primary_unit_of_measure like '%Kg%' then 'KG'
when b.primary_unit_of_measure like '%UND%' then 'EA'
when b.primary_unit_of_measure = 'Kilogramo' then 'KG'
when b.primary_unit_of_measure = 'Litro' then 'L'
when b.primary_unit_of_measure = 'Unidad' then 'EA'
else null
end as STANDARD_UOM,
case when l.Mto_precio_venta_cm_emp is not null then replace(l.Mto_precio_venta_cm_emp,',','.')
else '0'
end as SELLING_RETAIL,
'VEF' as SELLING_RETAIL_CURRENCY,
case when b.PRIMARY_UNIT_OF_MEASURE like '%Barril%' then 'BA'
when b.PRIMARY_UNIT_OF_MEASURE like '%Bolsa%' then 'KG'
when b.PRIMARY_UNIT_OF_MEASURE like '%Bulto%' then 'BE'
when b.PRIMARY_UNIT_OF_MEASURE like '%Caja%' then 'CS'
when b.PRIMARY_UNIT_OF_MEASURE like '%Docena%' then 'CS'
when b.PRIMARY_UNIT_OF_MEASURE like '%Kg%' then 'CS'
when b.PRIMARY_UNIT_OF_MEASURE like '%Kilogramo%' then 'CS'
when b.PRIMARY_UNIT_OF_MEASURE like '%Litro%' then 'Po'
when b.PRIMARY_UNIT_OF_MEASURE like '%Paquete%' then 'PACK'
when b.PRIMARY_UNIT_OF_MEASURE like '%Unidad%' then 'CS'
else 'CS'
end as SELLING_UOM,
null as MULTI_UNITS,
null as MULTI_UNIT_RETAIL,
null as MULTI_UNIT_RETAIL_CURRENCY,
null as MULTI_SELLING_UOM,
null as LOCK_VERSION
from cmp_lineas_cotizacion l,
inv.mtl_system_items_b b
where b.segment1 || '.' || b.segment2 = l.cod_producto
and (l.cod_producto in ((select codigo
from tmp.viveres_vegetales)
UNION
(select codigo
from tmp.genericos)
UNION
(select codigo
from tmp.hijos_genericos)))
and l.fec_ini_vigencia_precio > to_date('01/09/2008','DD/MM/YYYY')
and (b.segment1 || '.' || b.segment2, l.fec_ini_vigencia_costo, l.mto_precio_venta) in
select lc.cod_producto, max(lc.fec_ini_vigencia_costo), max(lc.mto_precio_venta)
from cmp_lineas_cotizacion lc
where lc.fec_ini_vigencia_precio > to_date('01/09/2008','DD/MM/YYYY')
group by lc.cod_producto
)Without table definitions, input data, and expected output, it's hard to test. But I would expect that analytic functions would be what you're after (assuming that omitting the "l.cod_producto in" clause from your main query in the subquery where you are getting the MAX values doesn't change any results). Something like
SELECT <<all your columns>>,
l.fec_ini_vigencia_costo,
l.mto_precio_venta,
max(l.fec_ini_vigencia_costo) over (partition by l.cod_producto) max_vigencia_costo,
max(l.mto_precio_venta) over (partition by l.cod_producto) max_precio_venta
FROM <<the rest of your query>>will include the MAX values and the current row values without needing to hit the table a second time. Then you should be able to do
SELECT <<list of columns>>
FROM (<<whole query from the last step>>)
WHERE fec_ini_vigencia_costo = max_vigencia_costo
AND mto_precio_venta = max_precio_ventaJustin -
Need to take rownum highest value without using grouping functions
Hi
I want to display highest value in the rownum column and customer details without using grouping functions like max or count
this below query gives me all rownum values and customer details
SELECT ROWNUM ROWNUM_1, CUSTOMER_NO, CUSTOMER_NAME, CUSTOMER_DOJ, CUSTOMER_MOBILENO FROM CUSTOMER;
can any one help me.The above query won't work as it's missing "from" cluase in the inner select statement.
And even if corrected it willl print rownum values thrice: value "1",max_rownum, max_rownum followed by customer details.
Below is the simple query to retrieve max row_num along with the corresponding customer details.
select * from (SELECT ROWNUM ROWNUM_1, CUSTOMER_NO, CUSTOMER_NAME, CUSTOMER_DOJ, CUSTOMER_MOBILENO FROM CUSTOMER order by rownum_1 desc) where rownum<=1 ; -
How to get the value from a cell in jTable without click "enter" or "tab"
Hi guys,
I have a simple question. I have a jTable in my screen and when editing a value, but without click "enter" or "tab" I want to get the new value. I have a button update and after editing the value I click the button "update" and I want the new value to be store in my table. If try to get the selected value it is giving the old value. How can I implement this? Any idea? I hope I was clear.
Thanks[Table Stop Editing|http://www.camick.com/java/blog.html?name=table-stop-editing]
-
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. -
How to display descriptive flexfield values without clicking on the field
Hi,
We are using ATTRIBUTE1 in PO Headers to provide a field for entering an emergency PO number. When users query a PO in the Puchase Order Headers form with a value in this field, they want the value to display on the form without having to click on the [] field to open up the DFF. Is this possible? This is the only DFF we're using on this form.
The user is telling me the 11i instance used to but it is no longer there in R12.
Can anyone help?
Thanks.Hi,
Check out Reference field and Default Context at DFF level.
Regards,
Sridhar -
How to get the value of a variable in group footer in the report footer also
I have a placed a formula as below at the group footer and the report footer. The data is grouped on the basis of duedays which is again formula and the value in that is appearing correctly.
Whilereadingrecords;
Global Numbervar CNTONE;
Numbervar P := P+1;
IF P = 1 AND {@DUEDAYS} = 0
THEN CNTONE := {spSUPPLIERSOA;1.INVOICEBAL}
ELSE IF P>1 AND {@DUEDAYS} = 0
THEN CNTONE := CNTONE + {spSUPPLIERSOA;1.INVOICEBAL}
At the group footer I get the value correctly for CNTONE but when I place the formula in Report footer I get the value for CNTONE as 0.
Please do let me know how I could get the same value in the report footer also.
Regards
Sreejith JHi Abhilash;
When I give the statement whileprintingrecords then my above formula sums up only the first record and the last record of the group and when I give whilereadingrecords it adds up all the data in the group correctly.
The formula that you mentioned for the report footer had worked out and it is showing my result correctly.
I did not put up the reset formula on the group footer because as the group changes I had used another variable in another formula for example for the second group I used
Whilereadingrecords;
Global Numbervar CNTTWO;
Numbervar Q := Q+1;
IF Q = 1 AND {@DUEDAYS} = 30
THEN CNTTWO := {spSUPPLIERSOA;1.INVOICEBAL}
ELSE IF Q>1 AND {@DUEDAYS} = 30
THEN CNTTWO := CNTTWO + {spSUPPLIERSOA;1.INVOICEBAL}
I have set up total 5 such formulas as the number of groups that will be formed is 5. I have put up these formulas on the group footer and suppressed it as I dont want to get it displayed.
The as you suggested the solution for Report Footer I did that and getting the result correctly.
I dont know I may be following a longer procedure
Take Care
Sreejith J -
How to store the value of sum of group in Crystal Report at the runtime!
Hello all,
I creates a Formula Field that hold the value of Sum of Group in Crystal Report. I would like to know how to store it in a variable and pass it to store procedure. Is it an option in Crystal report to do it. I knew that Crystal Report can cache the report for sharing. My detailed issue as following:
- Created a Formula Field named TOTAL AMOUNT that calculated the complex expression. This TOTAL AMOUNT is dynamic based on group and variables.
- I would like to store that value from TOTAL AMOUNT and pass it to the stored procedure parameter IN.
Any helps are much appreciated. Thanks.I doubt that this is possible since it would only calculate this value once the report has data. This sounds more like a report design question that should be asked over [here|SAP Crystal Reports;
Maybe you are looking for
-
Process Chain alerts not visible in UWL
I have carried out the weblog test that Ginger published at /people/ginger.gatling/blog/2005/06/16/integrating-alerts-into-uwl--its-no-problem and everthing worked fine. We are, however, trying to use Process Chain alerts from CCMS. These alerts are
-
HT5704 looking to upgrade manually iPhone 4 from 6.0 to 6.1.3.
where do i get downloads and can this be done? i do NOT want to go to iOS 7
-
Seting idle_time in a profile
Hello, I have a profile, test_profile, which I set the idle_time to 2 minutes. I created a test_user and alter the user to the test_profile. After loging in the test_user and let the session sits for 3 minutes, I am still able to perform a query. How
-
Use BAPI_COSTACTPLN_POSTPRIMCOST
How to use BAPI_COSTACTPLN_POSTPRIMCOST Function? In test program function works correctly and update cost planning values. But if i try to test function in SE37 transaction - does not. Why???
-
How Can I Upgrade on New Computer?
I have Creative Suite Premium Version 8.0 on my old EMac computer Mac OS 10.3.3. I do not want to upgrade my old computer and will not use Creative Suite on it. I have just bought a new IMac computer OS 10.7.2 and cannot install Creative Suitie Prem