DataMart Brings 0 records
Hi Experts,
I have data Mart Cube to Cube load, in which at first level there was an error in PSA which I corrected and data was sent successfully to the ist leve cube.
For the second level I an getting 0 records even though the selection conditions are all OK.
Kindly help with valuable suggesions.
Hi,
So you have loaded data into Cube1 from PSA.
I understand that then your Cube1 to Cube2 full load is failing. can you tell me what the job log says in SM37 for the load? Also what is available in RSMO > Details tab. Any logs about records inserted/tables updated etc there?
PS. I feel when you mentioned PSA load to Cube1 it became a bit confusing.
thanks,
JituK
Similar Messages
-
0FI_AR_4 extractor bringing zero records
Hi,
We are using extractor 0FI_AR_4 as delta. At times it is bringing zero records but the next time it brings data along with the daata missed the previous day.
For ex
Monday it brought records until previous week
Tuesday it brought zero record
Wednesday it brought more records i.e including records created on Monday and Tuesday
We could not figure out a situation when can this happen. But our observation is that there is no entry for tuesday in the table BWOM2_TIMEST.
BWOM_SETTINGS
BWFILOWLIM 19910101
BWFINSAF 3600
BWFISAFETY 1
BWFITIMBOR 020000
DELTIMEST 60
OBJCURTYPE 10
Regards
Vijaycheck http://help.sap.com/erp2005_ehp_04/helpdata/EN/af/16533bbb15b762e10000000a114084/content.htm
it states :
In delta mode, data requests with InfoSource 0FI_AR_4 and InfoSource 0FI_AP_4 do not provide any data if no new extraction has taken place with InfoSource 0FI_GL_4 since the last data transfer. This ensures that the data in BW for Accounts Receivable and Accounts Payable Accounting is exactly as up to date as the data for General Ledger Accounting.
you can check this...de link gives details about the delta methods for FI extractors -
Sql query to bring single record from right side of a table
hi
I have two tables as below:
create table testsh1 ( idd varchar2(10), name varchar2(20));
create table testsh2 ( idd varchar2(10), balance float );
insert into testsh1 values('1','abc');
insert into testsh1 values('2','def');
insert into testsh1 values('3','ghi');
insert into testsh1 values('4','jkl');
insert into testsh1 values('4','jkl');
insert into testsh1 values('3','ghi');
insert into testsh2 values('1',500);
insert into testsh2 values('1',500);
insert into testsh2 values('3',1000);
insert into testsh2 values('3',1000);
insert into testsh2 values('4',1500);
insert into testsh2 values('4',1500);
insert into testsh2 values('1',500);
I am expecting the result below:
1 abc 500
2 def NULL
3 ghi 1000
3 ghi 1000
4 jkl 1500
4 jkl 1500
That is only records from testsh1 table can come as many times but from testsh2 only we need to bring unique and matching records on column idd.
Please help
ThanksHi Shavetha,
As the testsh2 has duplicates of each record, the DISTINCT of the record has to be record has to be applied.
Please Try this,
SELECT IDD, NAME, (SELECT DISTINCT BALANCE
FROM TESTSH2 B
WHERE B.IDD = A.IDD) BALANCE
FROM TESTSH1 A;Which Outputs:
IDD NAME BALANCE
1 abc 500
2 def
3 ghi 1000
4 jkl 1500
4 jkl 1500
3 ghi 1000Thanks,
Shankar -
hello,
i have the following line in a query:
AND (mmt.ATTRIBUTE1)= NVL(:P _Subject,mmt.ATTRIBUTE1)
It gives me only the not null "mmt.ATTRIBUTE1" records when the parameter is not entered.
How can i modify this in order to bring all the records even where the column mmt.ATTRIBUTE1 is NULL
Thank you..Thank you. Thank you. Thank you....
It finally worked.
You can find the entire select statement below as per your request...
SELECT
DISTINCT mmt.transaction_id ,
mmt.organization_id ,
mmt.transaction_type_id ,
mmt.inventory_item_id ,
sib.segment1 ,
sib.description ,
mtt.transaction_type_name ,
mmt.subinventory_code ,
mmt.locator_id ,
mmt.transaction_reference ,
mmt.transaction_date ,
sib.primary_unit_of_measure,
ABS(mmt.primary_quantity) ,
mmt.TRANSACTION_SET_ID
,mta.REFERENCE_ACCOUNT
,mmt.ATTRIBUTE1 "Subject"
,mmt.ATTRIBUTE2 "Remarks"
FROM
mtl_material_transactions mmt,
mtl_system_items_b sib,
mtl_transaction_types mtt
,MTL_TRANSACTION_ACCOUNTS mta
,gl_code_combinations gcc
,fnd_currencies fc
,org_organization_definitions ood
,gl_sets_of_books gsob
WHERE 1=1
AND ood.set_of_books_id = gsob.set_of_books_id
AND fc.currency_code = gsob.currency_code
AND mmt.ORGANIZATION_ID=ood.ORGANIZATION_ID
AND mmt.organization_id = sib.organization_id
AND mmt.inventory_item_id = sib.inventory_item_id
AND mmt.transaction_type_id = mtt.transaction_type_id
AND DECODE(mmt.transaction_type_id,2,mmt.Transaction_quantity,-1) < 0
AND mta.TRANSACTION_ID= mmt.TRANSACTION_ID
AND mta.reference_account = gcc.code_combination_id
AND ood.set_of_books_id = gsob.set_of_books_id
AND fc.currency_code = gsob.currency_code
AND mmt.ORGANIZATION_ID=ood.ORGANIZATION_ID
AND TRUNC(mmt.transaction_date) = NVL(:date_from,TRUNC(mmt.transaction_date))
AND TRUNC(mmt.transaction_date) = NVL(:date_to,TRUNC(mmt.transaction_date))
AND NVL(mmt.transaction_reference,'X') = NVL(:trx_ref,NVL(mmt.transaction_reference,'X'))
AND NVL(mmt.ATTRIBUTE1,'xyzabc123')= NVL(:P_Subject,nvl(mmt.ATTRIBUTE1,'xyzabc123'))
AND mmt.organization_id = NVL(:orga_id,mmt.organization_id ) ;
Thanks again... -
Link to a popup window does not bring up records
I have a report with a couple column links. If I use javascript to make the link a popup to another page, then the items that I am passing to the page appear not to work.
If I do not make the page a popup, then the link works fine and brings up the correct records in the page I'm linking to.
Do I have to do anything special to pass items to a link that is a popup page?
Here is my link text that includes the javascript code:
1a href="javascript:popUp2('f?p=&APP_ID.:50:&SESSION.',500,400)">#BOOKS#</a
(I replaced the leading < with a 1)Reidster,
To bring up the "correct" records, the other link must be setting the values of one or more items on the target page. There are 9 values in an Apex URL and you've used three up to the session. Spots 7 and 8 are used to pass values to items...
See the following:
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#BEIJCIAG
You need to see what values are being set with the regular link and then do the same with yours. Example:
<a href="javascript:popUp2('f?p=&APP_ID.:50:&SESSION.::::P50_ITEM:VALUE',500,400)">#BOOKS#</a>Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
You can reward this reply by marking it as either Helpful or Correct ;-) -
DTP on Infoobject Infoprovider brings 'M' records as well as 'A' records
Hello,
I've got a Transformation and DTP from an Infoobject Infoprovider, with a Start Routine on the transformation. I've noticed that the DTP ignores the OBJVERS status of 'A', so that if there are inactive records with status 'M', these records are read also. I can see them in SOURCE_PACKAGE. Thus there are duplicate key values in SOURCE_PACKAGE and this causes all kinds of problems.
It would be easy enough to filter on OBJVERS, if it were a field included on SOURCE_PACKAGE, but it is not. So there is no way to filter on active records only (as is done automatically with queries on the Infoprovider)
I can't believe that this is desired behavior (that if you forget to activate master data you'll get short dumps on your export loads). We are on SP9.
Am I required to create a (3.x) export datasource to work around this, or is this being fixed in a subsequent SP?
BryanHi,
Regularly ur running the infopackage for old datasource that means the pSA is inbuilt of datasource all the records will be stored in psa so when u r running the dtp it collects all the records from the where the records avilable(in psa) all records will come but when u run th einfopackage may be ther eis no newly added records.
u cam check the data source --manage all the records avilable,
Thanks & egards
sathish -
Abap logic in Transformation end routine bringing 0 records
Hi,
I wrote this logic but is not populating the figure that I need. I am trying to get a Key figure /
field-symbols: <fs_rp> LIKE LINE OF RESULT_PACKAGE.
Types : Begin of s_itab,
S_ITEMID TYPE /N/ADSO_ASPC00-/N42/S_ITEMID,
STRDCOST TYPE /N/ADSO_ASPC00-/N42/S_STRDCOST,
End of s_itab.
Data : it_itab type table of s_itab,
wa_itab type s_itab.
LOOP AT RESULT_PACKAGE ASSIGNING <fs_rp>.
Read table it_itab INTO wa_itab with key S_ITEMID =
<fs_rp>-/N42/S_ITEMID.
Clear wa_itab.
if sy-subrc ne 0.
SELECT /N/S_STRDCOST /N/S_ITEMID FROM /N/ADSO_ASPC00 INTO
CORRESPONDING FIELDS OF wa_itab
FOR ALL ENTRIES IN RESULT_PACKAGE
WHERE /N/S_ITEMID EQ RESULT_PACKAGE-/N/S_ITEMID.
ENDSELECT.
<fs_rp>-/N/S_STRDCOST = wa_itab-STRDCOST.
ENDIF.
ENDLOOP.1. the name of the fields in the internal table it_itab and in table /n/adso_dsc00 are not the same, so you're move-corresponding is not working.
2. you need to select in table it_itab not in workarea wa_itab.
Data rp TYPE tys_TG_1.
field-symbols: <fs_rp> LIKE LINE OF RESULT_PACKAGE.
Types : Begin of s_itab,
/N/S_ITEMID TYPE /N/ADSO_DSOC00-/N/S_ITEMID,
/N/S_STRDCOST TYPE N/ADSO_DSOC00-/N/S_STRDCOST,
End of s_itab.
Data : it_itab type table of s_itab,
wa_itab type s_itab.
SELECT /N/S_STRDCOST /N/S_ITEMID FROM N/ADSO_DSOC00 INTO
INTO table it_itab
FOR ALL ENTRIES IN RESULT_PACKAGE
WHERE /N/S_ITEMID EQ RESULT_PACKAGE-/N/S_ITEMID.
ENDSELECT.
LOOP AT RESULT_PACKAGE ASSIGNING <fs_rp>.
Read table it_itab INTO wa_itab with key /N/S_ITEMID =
<fs_rp>-/N/S_ITEMID.
if sy-subrc ne 0.
<fs_rp>-/N/S_STRDCOST = wa_itab-STRDCOST.
ENDIF.
ENDLOOP. -
Trying to bring back records with and without email address
I have a simple query where I am trying to pull back all of my active subscribers and their email addresses. Most of the subscribers do not have email address but I still want those subscribers in my results. I figure it is a simple join but I can not figure it out. The discus.ems table contains only email addresses and their corresponding RRN's(Acct#'s). The SQL is pasted below. I am using SQL Developer 1.5.5
select
a.STREET_NBR ||' '||
rtrim(substr(a.STREET,33,2)) ||' '||
rtrim(substr(a.STREET,1,28)) ||' '||
rtrim(substr(a.STREET,29,4)) ||' '||
rtrim(substr(a.STREET,35,2)) ADDRESS1,
trim(a.UNIT_NBR) APT,
a.CITY_NAME CITY,
a.STPV_CODE STATE,
a.ZIP_CODE ZIP,
b.email_addr
from
discus.sub a,
discus.ems b
where
a.siteid = 'SUN' and
b.siteid = 'SUN' and
a.rrn = b.sub_rrn and
a.stat_flag in ('E','C','I','V')For just one column, you could easily do a scalar subquery:
select a.STREET_NBR ||' '||
rtrim(substr(a.STREET,33,2)) ||' '||
rtrim(substr(a.STREET,1,28)) ||' '||
rtrim(substr(a.STREET,29,4)) ||' '||
rtrim(substr(a.STREET,35,2)) ADDRESS1,
trim(a.UNIT_NBR) APT,
a.CITY_NAME CITY,
a.STPV_CODE STATE,
a.ZIP_CODE ZIP,
(select b.email_addr
from ems b
where b.sub_rrn = a.rrn
and b.siteid = 'SUN'
) email
from sub a
where a.siteid = 'SUN'
and a.stat_flag in ('E','C','I','V')
; -
Extractor to bring data only from BSAD
Hi Experts,
I need to develop a report to analyse cash collection by payment method. All the data is from BSAD table and couple of fields from REGUP, VBRP and BKPF. Can you please suggest any extractor which can bring mainly from BSAD?
Thanks,
Ramesh.Hi Malyadri/Nikhil/Jerry,
Thanks for your reply. I can see the FM of 0FI_AR_3 that it is bringing the records from BSAD and BSID tables. Now how can I differentiate the data from these tables? using Clearing date?
If I put filter on clearing date as not equal to blank then will it filter out all the records from BSID, so that I can get only BSAD records?
Thanks
Ramesh. -
Cancel Indicator X record is not updating to Standard DSO
Hi All,
I working on SD--> Deliveries Extractor 2LIS_12_VAITM, we have setup the solution as similar to LSA model.
I can see a Delivery 123 has been created and changed in the same day.
Delivery item createdon GI_DATE
123 10 2014.01.01 2014.04.05
123 10 2014.01.01 2014.04.06
we have mapping from datasource to a Standard DSO and Corporate memory DSO.
For the standard DSO, i can 1 record in Active table and 3 records in Change log. And Corporate Memory DSO has 2 records.
Standard DSO Corporate Memory DSO
Activate Table
123 10 2014.01.01 2014.04.06 123 10 2014.01.01 2014.04.05
123 10 2014.01.01 2014.04.06
Change log:
123 10 2014.01.01 2014.04.06 N
123 10 2014.01.01 2014.04.06 X
123 10 2014.01.01 2014.04.06
Question:
Why For the Standard DSO is not bring first record GI_DATE which has 2014.04.05.
when i look at PSA, i can see the record was has two records, one with Cancel Indicator 'X' and another with space.
Now I need initial GI_DATE for Standard DSO as well.
Could you please provide your suggestions.
Regards,
Naresh.Hi Naresh,
It could be because of Duplicate records in the same package the latest record was updated to DSO.
Solution: For your scenario,Please try to make 0GI_DATE as part of Key Fields of the DSO, so that you will be able to see 2 records as per your example.
Regards,
Banu -
Multiple audit records per one report refresh
We use BO XI R3 on Windows with CMS on DB2.
I need to create audit reports on BO report usage with following data:
username, timestamp, duration, report name for DeskI and WebI reports.
I use auditing on DesktopIntelligenceCacheServer and WebIntelligenceProcessingServer.
The problem is that I'm getting multiple records in AUDIT_EVENT table with different event_ids and timestamps per one refreshed report.
Following SQL brings 2 records from WebI server all the time (first with duration=0) and from 1 to 5 records from DeskI server, all of them with real report duration.
SELECT
start_timestamp,
ae.EVENT_ID,
user_name,
duration,
object_type,
detail_id,
detail_text
FROM BO_XI_R3.AUDIT_EVENT ae,
bo_xi_r3.AUDIT_DETAIL ad,
bo_xi_r3.EVENT_TYPE et
where ae.EVENT_TYPE_ID=et.EVENT_TYPE_ID
and ae.EVENT_ID=ad.EVENT_ID
and ad.DETAIL_TYPE_ID=8
and ae.EVENT_TYPE_ID=19
order by 1;
How to separate unique refresh info?
Edited by: Valentin Volk on Oct 3, 2008 9:03 PMValentin,
The "duplicate" records that you are seeing, is it always consistent or just sometimes. I ran you query against my Auditor database and sometimes (like maybe less than 50%) I am seeing "duplicate" records. I say "duplicate" because the Event_ID is different in each case, but by sorty by start_timestamp, I can see a duration 0 record, and if the query takes like 5 seconds, then five seconds later I see the entry again (with a new Event_ID) and the second record has a duration of 5. What does all this mean? I don't know exactly, other than BO sees the act of submitting a report (sometimes) as an activity (and records an "enter" record with a duration of zero, zero for obvious reasons), then when the report ends another entry to the journal used to record the duration. And at other times I don't see the "enter" record, just the entry with the duration. In my practice we run a similiar query as you've provided but we do not record where duration is zero.
thanks,
John -
Can't bring up Table again after switching pages
I have three pages in my application. There is only one table and they all access it. One is the home page and includes a report. From there, I can click "New Row" and go to a blank form to enter another record. From the home page I can also go to an "Update Row" page to update information.
It's the Update from on the Update page that isn't working. It loads up a blank form.
The settings for the fetch process on the Update page are as follows:
Type: Automated Row Fetch
Sequence: 1
Process Point: On Load - After Header
Run Process: Once Per Page Visit (default)
Process error message: Unable to fetch row
Not conditional
These settings produce a blank form. I don't want a blank form. I want the form to be populated with the lowest ID number in the Table.
The frustrating thing is, this worked a week ago but somehow got reset to "not working mode."
Steve in Raleigh NC
Edited by: user8703867 on Aug 28, 2009 9:13 AMHi,
OK - normally, the user would click a link on a row in the report on your first page to go to the update page. This link would pass through the primary key value for the record they want to update.
If you just clicked a button, the update page would not know which record needed updating. The update page has a "Fetch Row..." process that should have a setting that identifies the page item that will contain the primary key for the record. It is this value that needs to be set by a link.
I would suggest that you edit your report, go to the Column Attributes tab and click on a column that you can use for a link and scroll down to the Column Link section. In there, enter in the update form's page number, the page item that need the primary key (in the first "Set these items" setting) and the column name (in the "With these values" setting - surround the column name with #'s, for example #EMPNO#) that contains the primary key on your report. These settings then construct a URL that, when the link is clicked, will transfer the user to the update page and pass in the desired primary key - the process then does the rest to bring the record on screen.
Andy -
Record disappears if two requests are activated together
Hello
Ods with key K is updared from ds1 and ds2 with addition mode. DS1 doesnt bring any records with key K. DS2 brings record with key K.
The record disapear if two requests are activated together.
The record is visible if requestes are activated separately.
Is it a normal behavior of SAP BI?Hi,
This should definitely not happen.
Please check for OSS notes for the same.
-Vikram -
Fetching 999 records in subsequent (Next page) call.
I am using Graph Client 2.0.8 and fetching users. My tenant has more that 10K Users.
Problem : I am using Graph Client 2.0.8 and want to bring 5000 users. In Graph client I have specified each time bring 999, but Api only bring 999 records first time and then it bring only 100 records. However, I have specified 999 records in next page
request as well. Here is code snippet
ActiveDirectoryClient graphConn = GraphServiceHelper.GetGraphConnection(TenantDomain, UserAccessToken, TraceId);
userCollection = graphConn.Users;
users = await userCollection.Take(ResultBatchSize).ExecuteAsync();
if (users != null)
do
// Convert User to UserModel DTO
var usersListModel = users.CurrentPage.Take(999).ToList();
isMoreRecordsAvailable = users.MorePagesAvailable;
if (usersListModel.Count() >= 5000 || !users.MorePagesAvailable) // exit if batch sized reach.
break;
else
users = await users.GetNextPageAsync();
} while (true);
How to bring 999 records in each subsequent call? Appreciate your help.Unfortunately, the current version of the Graph Client Library doesn't support subsequent page sizes > 100 (though the service side itself will allow you to go up to 999, so if you make the call without the client library, you
should be able to go higher).
I've provided feedback on this for potential improvements in future releases of the GCL. -
Counting Records in a Transaction Trigger
I would like to keep a count of the records that come into our database by date, so want to build an insert trigger on the table (if you don't see date=sysdate in the stats table create a new stats record, otherwise just add one to the counter where date=sysdate).
This is fairly straightforward if I use a BEFORE INSERT ON EACH ROW trigger, however for performance reasons I'd prefer to make this a transaction trigger (probably AFTER INSERT).
Our application brings in records and commits hundreds at a time. Is there a way I can get the number of records commited in the current transaction so I can add that to my counter?
Hope this is clear. Currently I have:
CREATE OR REPLACE
TRIGGER table1_insert
BEFORE insert ON table1
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
declare
last_date date;
v_rows_processed integer;
BEGIN
update stats_table set record_count = record_count + 1 where to_char(stats_date,'yyyymmdd') = to_char(sysdate,'yyyymmdd');
v_rows_processed := SQL%ROWCOUNT;
if v_rows_processed = 0 then
insert into stats_table (stats_date,record_count) values(sysdate,1);
end if;
END table1_insert;
Is there any way I can do this as a transaction trigger?
ThanksCan't you get hold of the total rowcount in e.g. a global package variable (or alternatively in a sys_context variable)?
SQL> CREATE TABLE t (a INTEGER)
Table created.
SQL> CREATE OR REPLACE PACKAGE pkg
AS
g_cnt INTEGER := 0;
END pkg;
Package created.
SQL> CREATE OR REPLACE TRIGGER t_1_trg
AFTER INSERT
ON t
FOR EACH ROW
BEGIN
pkg.g_cnt := pkg.g_cnt + 1;
END t_1_trg;
Trigger created.
SQL> CREATE OR REPLACE TRIGGER t_2_trg
AFTER INSERT
ON t
BEGIN
DBMS_OUTPUT.put_line ('Totol Rows inserted: ' || pkg.g_cnt);
/* Insert in some stats table ..etc .. */
END t_2_trg;
Trigger created.
SQL> EXEC pkg.g_cnt := 0
PL/SQL procedure successfully completed.
SQL> INSERT INTO t
SELECT ROWNUM
FROM all_objects
Totol Rows inserted: 43052
Maybe you are looking for
-
Is my line live for ADSL2+ \ 'up to' 20mb?
I guess only a moderator could look into this one for me so I've pinged you an email (with all my details etc.) but I'll state my question here in any case so there is something to refer back to etc; My exchange shows at the BT ADSL availability site
-
Attaching docs to a dispute case
Hi all, Is it possible to attach docs while creating a new dispute case manually at FBL5N? I mean attach the documents during the creation and not later? Thanks for your inputs!
-
Why is there no "cancel" button anywhere in OS X?
In Windows, there is almost always a "cancel" button to undo your changes. So, for example, if you changed a bunch of settings in windows but change your mind, you can hit "cancel" and it'll simply undo everything you changed and exit you out of the
-
Security Issues with iMac OS X
I thought that with previous OS X versions, the problem was bad enough when you set the 'Stealth Mode' to 'On' & the status was not reflected within the System Profiler utility. Now it seems more security blunders....You're able to amend Login Items
-
My preview pane was set to be side-by-side in a vertical column next to my inbox list, but recently I dragged my preview pane to the right and now it's gone. I can't find it and can't seem to get it to be visible again. Can anyone tell me how to get