Problem in Extracting Dataset from Z FM for Zdatasource
hi,
I have created a Z fm of extracting data in Z datasource and i ahve written code for it.
But everytime it returns me
0 dataset extracted...
i debugged it....and found data in E_T_DTFIAR_1
and till dat it is working fine ( wat i m assuming),
after dat it is going to some other forms(like data transfer ) and some events.
and finally throwing 0 data record found.
here is the code..........can anyone tell me wat i m missing in this code...
FUNCTION ZFIE*.
""Local interface:
*" IMPORTING
*" VALUE(I_DSOURCE) TYPE SBIWA_S_INTERFACE-ISOURCE
*" VALUE(I_REQUNR) TYPE SBIWA_S_INTERFACE-REQUNR OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SBIWA_S_INTERFACE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SBIWA_S_INTERFACE-INITFLAG OPTIONAL
*" VALUE(I_UPDMODE) TYPE SBIWA_S_INTERFACE-UPDMODE OPTIONAL
*" VALUE(I_DATAPAKID) TYPE SBIWA_S_INTERFACE-DATAPAKID OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SBIWA_T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SBIWA_T_FIELDS OPTIONAL
*" E_T_DTFIAR_1 STRUCTURE ZFIE_ (extractor structure) OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
TABLES: VBREVE, ZFIE_EXT_REV, VBAK, VBRP, VBPA, KNA1..
*....... steering flags
STATICS: L_CURSOR TYPE CURSOR,
L_OPEN_CURSOR_FLAG LIKE C_OFF,
L_LAST_DATA_FLAG LIKE C_OFF.
*....... PACKAGE-SIZE for SELECT-Statement
STATICS: L_PACKAGE_SIZE LIKE SY-TABIX.
first call - initialization **********************
IF NOT ( I_INITFLAG IS INITIAL ).
IF NOT ( G_FLAG_INTERFACE_INITIALIZED IS INITIAL ).
**.... Invalid second initialization call -> error exit
IF 1 = 2. MESSAGE E008(R3). ENDIF. "only for Where-used list
LOG_WRITE 'E' "message type
'R3' "message class
'008' "message number
' ' "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDIF.
*.. check DataSource validity
CASE I_DSOURCE.
WHEN C_ISOURCE_DTFIAR_1.
WHEN OTHERS.
IF 1 = 2.
MESSAGE E009(R3) WITH I_DSOURCE. "only for Where-used list
ENDIF.
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
*.. Check for supported update mode
CASE I_UPDMODE.
WHEN 'F'.
WHEN OTHERS.
IF 1 = 2.
MESSAGE E011(R3) WITH I_UPDMODE. "only for Where-used list
ENDIF.
LOG_WRITE 'E' "message type
'R3' "message class
'011' "message number
I_UPDMODE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO G_T_SELECT.
*.. Fill parameter buffer for data extraction calls
G_S_INTERFACE-REQUNR = I_REQUNR.
G_S_INTERFACE-ISOURCE = I_DSOURCE.
G_S_INTERFACE-MAXSIZE = I_MAXSIZE.
G_S_INTERFACE-INITFLAG = I_INITFLAG.
G_S_INTERFACE-UPDMODE = I_UPDMODE.
G_S_INTERFACE-DATAPAKID = I_DATAPAKID.
G_FLAG_INTERFACE_INITIALIZED = SBIWA_C_FLAG_ON.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
APPEND LINES OF I_T_FIELDS TO G_T_FIELDS.
*.. calculate PACKAGE-SIZE for SELECT-Statement (approximate)
L_PACKAGE_SIZE = G_S_INTERFACE-MAXSIZE / 12.
*.. fill selection criterias to global ranges
second and further calls - data selection *************
ELSE.
*.. clear table for export data
CLEAR: E_T_DTFIAR_1.
REFRESH: E_T_DTFIAR_1.
IF L_OPEN_CURSOR_FLAG IS INITIAL.
*.... open cursor
OPEN CURSOR WITH HOLD L_CURSOR FOR
SELECT
REFERENCE_DOC REF_DOC_ITM GL_ACCOUNT YEAR_PERIOD AMOUNT_DOC_CURR
CURRENCY PROFIT_CENTER GL_OFFSET BUSINESS_AREA COMPANY_CODE
REVENUE_STATUS SOLD_TO FISCAL_YEAR PERIOD DOCUMENT_TYPE
AMOUNT_COMPANY AMOUNT_PROFT_CTR BILLING_DATE PLANT SALES_OFFICE
SALES_GROUP SALES_DISTRICT END_USER_COUNTRY PROD_HIERARCHY
MATERIAL MATERIAL_COST SALES_ORG DISTR_CHANNEL NUMBER_OF_NODES
ORDER_DATE MATERIAL_GROUP AAG CONTRACT QUANTITY DAF_NUMBER
BILLING_DATE
FROM ZFIE_EXT_REV
WHERE
RECORD_TYPE ='DEF'.
SELECT SINGLE VBELN FROM VBREVE INTO ITAB_REVENUE-REFDOCNR.
L_OPEN_CURSOR_FLAG = C_ON.
ENDIF. "L_OPEN_CURSOR_FLAG = C_OFF
IF L_PACKAGE_SIZE <> 0.
*.... fetch next package
FETCH NEXT CURSOR L_CURSOR
APPENDING CORRESPONDING FIELDS OF TABLE LT_DEF_REV
PACKAGE SIZE L_PACKAGE_SIZE.
*.... process selected data
PERFORM PROCESS_SEL_DATA_AR1 TABLES LT_DEF_REV E_T_DTFIAR_1.
*.... check, if cursor has to be closed
DESCRIBE TABLE LT_DEF_REV LINES SY-TFILL.
IF SY-TFILL LT L_PACKAGE_SIZE.
CLOSE CURSOR L_CURSOR.
L_LAST_DATA_FLAG = 'X'.
ENDIF.
ENDIF.
ENDIF.
ENDFUNCTION.
FORM PROCESS_SEL_DATA_AR1 *
FORM PROCESS_SEL_DATA_AR1 TABLES SEL_DATA STRUCTURE LT_DEF_REV
EXP_DATA STRUCTURE ZFIE_BIW_DEF_HIS.
*....... local data declarations
if not SEL_DATA[] is initial.
move sel_data[] to exp_data[].
SELECT POPUPO VBELN_N POSNR_N RVAMT ACCPD PAOBJNR SAKUR SAMMG
REFFLD ERDAT ERZET BUDAT REVFIX
APPENDING CORRESPONDING FIELDS OF TABLE it_vbreve
FROM VBREVE
WHERE VBELN = ITAB_REVENUE-REFDOCNR
AND POSNR = SEL_DATA-REF_DOC_ITM
AND BUKRS = SEL_DATA-COMPANY_CODE
AND BDJPOPER = SEL_DATA-YEAR_PERIOD.
*move it_vbreve[] to exp_data[].
*move exp_data to e_t_data.
ENDif.
ENDFORM.
any help! plz..
rdgs,
San!
Hi San,
I cannot see the source of your error, but I would suggest you look at the FM RSVD_BW_GET_DATA, and merge you logic with the code from there.
I would then test this with RSA3 to make sure you everything working correctly. Cheers! Bill
Similar Messages
-
Problems While Extracting Hours From Date Field
Hi Guys,
Hope you are doing well.
I am facing some problems while extracting hours from date field. Below is an example of my orders table:-
select * from orders;
Order_NO Arrival Time Product Name
1 20-NOV-10 10:10:00 AM Desktop
2 21-NOV-10 17:26:34 PM Laptop
3 22-JAN-11 08:10:00 AM Printer
Earlier there was a requirement that daily how many orders are taking place in the order's table, In that I used to write a query
arrival_time>=trunc((sysdate-1),'DD')
and arrival_time<trunc((sysdate),'DD')
The above query gives me yesterday how many orders have been taken place.
Now I have new requirement to generate a report on every 4 hours how many orders will take place. For an example if current time is 8.00 AM IST then the query should fetch from 4.00 AM till 8 AM how many orders taken place. The report will run next at 12.00 PM IST which will give me order took place from 8.00 AM till 12.00 PM.
The report will run at every 4 hours a day and generate report of orders taken place of last 4 hours. I have a scheduler which will run this query every hours, but how to make the query understand to fetch order details which arrived last 4 hours. I am not able to achieve this using trunc.
Can you please assist me how to make this happen. I have checked "Extract" also but I am not satisfied.
Please help.
Thanks In Advance
Arijityou may try something like
with testdata as (
select sysdate - level/24 t from dual
connect by level <11
select
to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') s
, to_char(t, 'DD-MM-YYYY HH24:MI:SS') t from testdata
where
t >= trunc(sysdate, 'HH') - numtodsinterval(4, 'HOUR')
S T
19-06-2012 16:08:21 19-06-2012 15:08:21
19-06-2012 16:08:21 19-06-2012 14:08:21
19-06-2012 16:08:21 19-06-2012 13:08:21
19-06-2012 16:08:21 19-06-2012 12:08:21trunc ( ,'HH') truncates the minutes and seconds from the date.
Extract hour works only on timestamps
regards
Edited by: chris227 on 19.06.2012 14:13 -
How to extract values from pricing procedure for conditions in CRM Billing?
I have a number of conditions in the pricing procedure in CRM Billing that I would like to extract to SAP BW. How can this be done?
Is there a standard extractor for CRM Billing similar to the SD Billing extractor "Extraction of SD Billing Conditions" (2LIS_13_VDKON)?
If there is no standard extractor, is there another way to extract the conditions and the related values?
I am using the standard CRM Billing Extractor 0BEA_CRMB already, so maybe an append could solve my problem. How can this be done? In what CRM-tables can I find the values from pricing procedure for conditions in CRM Billing?you may want to post that last question in a CRM forum... in ECC it would be table KONV
-
Problem with extract data from R/3 to BW
I want extract data from R/3 system.the problem is when I run the infopackage,I can see the status is yellow In the Monitor and the data can't extract to BW.but in the source system,the job of extracting data has been finished.
(use the Tcode: WE02)the Outbound IDocs and Inbound IDocs are OK,but in the BW system ,I canu2019t see the Inbound IDocs.
In the source system use Tcode: SM50,I can see the process SAPLQOWK is running for a long time and run out system memory.
use Tcode : SM58, I execute LUW, the data can transfer to BW system,but the report SAPLQOWK is not stop.
it would be stopped by canceling the process manually in operating system or it run out time.
why can't i extract data from R/3 system successfully ?
why the process SAPLQOWK can't finish?
how can i do?Hi,
I hope the note 527481 would help you to sort out this problem.
Regards,
Anil Kumar Sharma .P -
Problem to extract text from HTML document
I have to extract some text from HTML file to my database. (about 1000 files)
The HTML files are get from ACM Digital Library. http://portal.acm.org/dl.cfm
The HTML page is about the information of a paper. I only want to get the text of "Title" "Abstract" "Classification" "Keywords"
The Problem is that I can't find any patten to parser the html files"
EX: I need to get the Classification = "Theory of Computation","ANALYSIS OF ALGORITHMS AND PROBLEM COMPLEXITY","Numerical Algorithms and Problem","Mathematics of Computing","NUMERICAL ANALYSIS"......etc .
The section code about "Classification" is below.
Please give any idea to do this, or how to find patten to extract text from this.
<div class="indterms"><a href="#CIT"><img name="top" src=
"img/arrowu.gif" hspace="10" border="0" /></a><span class=
"heading"><a name="IndexTerms">INDEX TERMS</a></span>
<p class="Categories"><span class="heading"><a name=
"GenTerms">Primary Classification:</a></span><br />
� <b>F.</b> <a href=
"results.cfm?query=CCS%3AF%2E%2A&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Theory of Computation</a><br />
� <img src="img/tree.gif" border="0" height="20" width=
"20" /> <b>F.2</b> <a href=
"results.cfm?query=CCS%3A%22F%2E2%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">ANALYSIS OF ALGORITHMS AND PROBLEM
COMPLEXITY</a><br />
� � � <img src="img/tree.gif" border="0" height=
"20" width="20" /> <b>F.2.1</b> <a href=
"results.cfm?query=CCS%3A%22F%2E2%2E1%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Numerical Algorithms and Problems</a><br />
</p>
<p class="Categories"><span class="heading"><a name=
"GenTerms">Additional�Classification:</a></span><br />
� <b>G.</b> <a href=
"results.cfm?query=CCS%3AG%2E%2A&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Mathematics of Computing</a><br />
� <img src="img/tree.gif" border="0" height="20" width=
"20" /> <b>G.1</b> <a href=
"results.cfm?query=CCS%3A%22G%2E1%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">NUMERICAL ANALYSIS</a><br />
� � � <img src="img/tree.gif" border="0" height=
"20" width="20" /> <b>G.1.6</b> <a href=
"results.cfm?query=CCS%3A%22G%2E1%2E6%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Optimization</a><br />
� � � � � <img src="img/tree.gif" border=
"0" height="20" width="20" /> <b>Subjects:</b> <a href=
"results.cfm?query=CCS%3A%22Linear%20programming%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Linear programming</a><br />
</p>
<br />
<p class="GenTerms"><span class="heading"><a name=
"GenTerms">General Terms:</a></span><br />
<a href=
"results.cfm?query=genterm%3A%22Algorithms%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Algorithms</a>, <a href=
"results.cfm?query=genterm%3A%22Theory%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Theory</a></p>
<br />
<p class="keywords"><span class="heading"><a name=
"Keywords">Keywords:</a></span><br />
<a href=
"results.cfm?query=keyword%3A%22Simplex%20method%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">Simplex method</a>, <a href=
"results.cfm?query=keyword%3A%22complexity%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">complexity</a>, <a href=
"results.cfm?query=keyword%3A%22perturbation%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">perturbation</a>, <a href=
"results.cfm?query=keyword%3A%22smoothed%20analysis%22&coll=ACM&dl=ACM&CFID=22820732&CFTOKEN=38147335"
target="_self">smoothed analysis</a></p>
</div>One approach is to download Htmlparser from sourceforge
http://htmlparser.sourceforge.net/ and write the rules to match title, abstract etc.
Another approach is to write your own parser that extract only title, abstract etc.
1. tokenize the html file. --> convert html into tokens (tag and value)
2. write a simple parser to extract certain information
find out about the pattern of text you want to extract. For instance "<class "abstract">.
then writing a rule for extracting abstract such as
if (tag is abstract ) then extract abstract text
apply the same concept for other tags
Attached is the sample parser that was used to extract title and abstract from acm html files. Please modify to include keyword and other fields.
good luck
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class ACMHTMLParser
private String m_filename;
private URLLexicalAnalyzer lexical;
List urls = new ArrayList();
public ACMHTMLParser(String filename)
super();
m_filename = filename;
* parses only title and abstract
public void parse() throws Exception
lexical = new URLLexicalAnalyzer(m_filename);
String word = lexical.getNextWord();
boolean isabstract = false;
while (null != word)
if (isTag(word))
if (isTitle(word))
System.out.println("TITLE: " + lexical.getNextWord());
else if (isAbstract(word) && !isabstract)
parseAbstract();
isabstract = true;
word = lexical.getNextWord();
lexical.close();
public static void main(String[] args) throws Exception
ACMHTMLParser parser = new ACMHTMLParser("./acm_html.html");
parser.parse();
public static boolean isTag(String word)
return ( word.startsWith("<") && word.endsWith(">"));
public static boolean isTitle(String word)
return ( "<title>".equals(word));
//please modify according to the html source
public static boolean isAbstract(String word)
return ( "<p class=\"abstract\">".equals(word));
private void parseAbstract() throws Exception
while (true)
String abs = lexical.getNextWord();
if (!isTag(abs))
System.out.println(abs);
break;
class URLLexicalAnalyzer
private BufferedReader m_reader;
private boolean isTag;
public URLLexicalAnalyzer(String filename)
try
m_reader = new BufferedReader(new FileReader(filename));
catch (IOException io)
System.out.println("ERROR, file not found " + filename);
System.exit(1);
public URLLexicalAnalyzer(InputStream in)
m_reader = new BufferedReader(new InputStreamReader(in));
public void close()
try {
if (null != m_reader) m_reader.close();
catch (IOException ignored) {}
public String getNextWord() throws IOException
int c = m_reader.read();
if (-1 == c) return null;
if (Character.isWhitespace((char)c))
return getNextWord();
if ('<' == c || isTag)
return scanTag(c);
else
return scanValue(c);
private String scanTag(final int c)
throws IOException
StringBuffer result = new StringBuffer();
if ('<' != c) result.append('<');
result.append((char)c);
int ch = -1;
while (true)
ch = m_reader.read();
if (-1 == ch) throw new IllegalArgumentException("un-terminate tag");
if ('>' == ch)
isTag = false;
break;
result.append((char)ch);
result.append((char)ch);
return result.toString();
private String scanValue(final int c) throws IOException
StringBuffer result = new StringBuffer();
result.append((char)c);
int ch = -1;
while (true)
ch = m_reader.read();
if (-1 == ch) throw new IllegalArgumentException("un-terminate value");
if ('<' == ch)
isTag = true;
break;
result.append((char)ch);
return result.toString();
} -
Problem when extracting data from R/3 to BI
Hi Experts,
I am facing a strange problem. While i am extracting data from R/3 yo BI. One Infopackage is running successfully and i can see the data at Bi side. But while I am running another infopackage for another data source it is taking long time and at last loading results into failure.
I have gone through SDN also but not able to find any inputs.
I think it might be the reason with the Idocs. The error it is giving is
Request still running
Diagnosis
No errors found. The current process has probably not finished yet.
System Response
The ALE inbox of BI is identical to the ALE outbox of the source system
or
the maximum wait time for this request has not yet been exceeded
or
the background job has not yet finished in the source system.
Current status
All of the packets from the source system arrived
I am not able to see list of Idocs in sm58.
What might be the reoson?
Regards,
sridharHi,
See if its a full schedule it again by deleting any old requests....
And then when going thru job overview>in the sourcesystem>u can execute there itself and chk the status of the job...
If its no there then the job might have missed up due to some unfair reason....it happens sometimes also..some times it will be in scheduled only....once select all active/cancled/finished and so on...
And also chk under details tab...under extraction....whether data selection scheduled and requested and finished....????
If not there try to run it again and at the same moment monitor in source with jobname as BIREQU_* and select all input entries as canceled/active/finished......
rgds, -
Extracting data from xml spreadsheet for JSP
Hi,
Currently i am developing a web application where user can upload a MS excel file, then the application will extract data needed and store into database. But facing problems where those excel files may content massive images that make the file size too large to be upload on to the web. Now i try to export those excel files into xml spreadsheet, to get only text data. Need helps on how to extract data from xml spreadsheet. Which API needed?
ThanksWithout getting into too much detail, a DTD defines the elements that can appear in an xml file, the order they can appear in, which elements can be nested within which other elements, what each element can contain, etc, etc. In short, a DTD defines the structure of the xml file and Microsoft defined a DTD for the xml files that are output by Excel.
This is not taken from an xml file produced by Excel but DTDs look a llittle like this very basic example.
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>If you open the one produced for you by Excel in Wordpad or another simple text editor, you may see something like this in there.
However, if you are going to use a parser to access the file for you do not worry about getting to grips with DTDs for a short, simple project. -
Problems in extracting data from r/3
Hi Guys
I am extracting data from r/3(QA) to BW(QA), into an ODS. Now, my previous load failed but i saw from RSMO that the load had more than 4 million records. I am scheduled the load again. And in monitor(RSMO) it says:
(yellow symbol) 17:24:50 ( 762040 From 0 Records )
and in status, it says everything ok, no error, process is still goin on. And in details this is the last line at the moment:
"Transfer (IDocs and TRFC): Missing messages or warnings"
Data Package 29 : arrived in BW ; Processing : Selected number does not agree with transferred n
"Processing (data packet): Warning received"
Data Package 29 ( 23810 Records ) : Everything OK.
I am assuming that there are 100 packages like this in total. Will my data load into the ODS finally??
Thanks.Hi Chintai,
If you are extracting delta records, then you can view the number of records in RSA7.
I suggest you go to details tab of the monitor, you would be knowing the activites that are taking place..
Check if your transfer rules, update rules are done for atleast for few of the data packages.
Regards
Manga(Assign points) -
Problems to extract data from 0HR_PY_1
Hi Experts,
I'm using BW v.7 to extract data from standard data source 0HR_PY_1 of SAP-ECC, with delta update.
When I try to extract the data job finishes with error (red status) and all data-packages have error message ABORT in customer routine 9998.
Although I'm using BW v.7 I have activated 3.x extraction (DataSouce -> InfoSource -> Update Rule).
Any help will be welcome!
AlexI've found the problem by myself
-
Problem in extracting data from Z totals table (special Ledger)
Hi Gurus,
I am in a task of pulling in specific fields from the Z Totals Table of Special Purpose Ledger into the cube. We only need totals records and do not need line items.
In SBIW, i have generated the transfer structure and datasource for totals table as per the steps of Generic extraction.
The problem is that am not able to see all the fields (like balance carried forward, total transactions) in the selection fields screen. While extracting i choose totals records only. But now my datasource got generated and am able to see that it is active (green). But some important fields like balance are missing.
Please let me know your suggestions / ideas.
Thanks
ShreyaWe have the exact same Challenge and Issue. When I view my generated extract structure 3FI_SL_ZB_TT, I don't see any of my key figures. This was created off the Special Ledger Summary or totals table.
For Instance, I need fields KSLVT through KSL16. That is, Balance Carried forward in Group currency (period 0) and, total of transactions of the period in group currency, (periods 1-16). I don't see these at all in the generated extract structure. Does that mean it must be appended in via transaction RSA6?
Also, to get the Balance Carried forward do I have to add 0BALANCE to the extract structure?
Finally, besides the beginning balance, which wiil remain constant, can I get Month-end Year To Date Balances using this approach. Note, I don't need detail from the line items table. I just want to make sure I don't need to use that in concert with a Delta and ODS to get my Month End YTD Balance. I only need this cube for Balances.
Thanx,
Joe M -
There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
thanks,
mohanHi,
EdStevens
Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
or sql Developer.
I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
Thanks for your previous reply,
And now waiting for your suggestion.
thanks,
mohan -
Problems with extract metadata from Essbase with ODI 10.1.3.5.
Hello there, I have a really annoying problem. I have 2 dimensions in essbase v11 with a space on it, (Itens Financeiros and Centros Financeiros), and this is causing a problem when I try to extract the metadata from essbace to a table. the problem occurs some times in 3 - loading - ss_0 - begin essbase metadata extract and some times in 4 - loading ss_0 - extract metadata, but in this 2 steps the error is the same:
unknown member name [itens] in function [@idescendants]. I see in Johns blog someone sayng to add a '/"' in the front and at the end of the member filter criteria to allow ODI to parse the space as part of the member name. but I really don't understand this. Someone can helpme with this? Thanck you.It doesn't matter, I am able to replicate with an older version of the essbase adaptor...
I take it this is the type of error you are receiving "com.hyperion.odi.essbase.ODIEssbaseException: Extract operation failed : Cannot query members by specs. Analytic Server Error(1200497): Error parsing formula for [REGION DEFINITION"
If you download patch - Patch 8785893: ORACLE DATA INTEGRATOR 10.1.3.5.2_02 ONE-OFF PATCH
It is easy to install just a matter of copying a jar file over an existing one in the \oracledi\drivers directory.
It should resolve the issue.
Ok?
Cheers
John
http://john-goodwin.blogspot.com/ -
Problem in extracting data from another BW server
Hello Experts
I have two BW servers in landscape. One is used as stagins server and second server exctracts data form this server and is used as reporting server.
I can see data in DSOs in stagins server, also checked export datasources in RSA3 in staging server and works fine.
In reporting server delta infopackage runs fine but extracts 0 records. i tryied deleting and redoing init still dosent help. its not throwing any error.
what could be problem and how can i troubleshoot and correct it?
Thanks in advance
Regards
SudeepTry these Steps:
1.Replicate and activate the datasource(if BI 7) else activate Transfer Rules.
2.Create an infopackage without selections as Full update and run..
3.If no records are still coming (0) then check the RFC connection b/n Staging & Reporting BI.
Go to SM59 ,first in Reporting BI and chk the :authorizaiton test & rfc test
again go to Staging BI and test for RFC connection to Reporting BI -->authorization test & rfc test
Sometimes password etc are changed just be careful and chk them properly.
4.create a Dummy DSO and load data to it from flat file on staging server.Now replicate its export datasource to Reporting BI.
If you can load data to PSA of this dummy datasource then there is some other problem.If there is no record comign then definately you need to go through step-1 to 3.
Regards,
RK -
Regexp problem when extracting filename from path
I'm trying to extract filename and full path from string: \dir1\dir2\file.name
import java.util.regex.*;
public class Main {
private static final String REGEX = "(\\S*\\)*(\\S*)";
private static final String INPUT = "\\dir1\\dir2\\file.name";
public Main() { }
public static void main(String[] args) {
Pattern p = Pattern.compile(REGEX);
Matcher m = p.matcher(INPUT); // get a matcher object
int count = 0;
if(m.find()) {
count++;
System.out.println("group1: "+m.group(1));
System.out.println("group2: "+m.group(2));
}I expect group1 to be \dir1\dir2\ and group2 file.name
when I run program exception is thrown:
Exception in thread "main" java.util.regex.PatternSyntaxException: Unclosed group near index 12
(\S*\)*(\S*)
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.accept(Pattern.java:1508)
at java.util.regex.Pattern.group0(Pattern.java:2460)
at java.util.regex.Pattern.sequence(Pattern.java:1715)
at java.util.regex.Pattern.expr(Pattern.java:1687)
at java.util.regex.Pattern.compile(Pattern.java:1397)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:817)
at javaapplication2.Main.main(Main.java:15)'jverd' is right but if you are just trying to split the INPUT into a path + filename then why not just look for the last '\'. i.e.
int lastSlash = INPUT.lastIndexOf('\\');
String group1 = INPUT.substring(0, lastSlash);
String group2 = INPUT.substring(lastSlash+1);
As it stands, your example will not give you group 1 as \dir1\dir2. For that you would need something like
"((?:\\[^\\])*)(\\.*)"
to make sure you capure all the path in group 1. -
In our ADF 11.1.2.1.0 application we are loading bundles form the database, which is not working as expected.
The problem is that when we want to refresh the bundle, it doesn't work for values on Model (BC) components. Bundles values stay the same.
Bundle refresh was implemented by this example
http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/
We then found that if we put f:loadBundle element on the page, the refresh does execute.
But only for the ViewController, Model bundles do not refresh.
On top of every page we have <f:loadBundle basename="si.bron.susa.view.util.ArsoVinBundle" var="res"/>
On every page we also have a button. Click on it should refresh the bundle by calling the following code:
public void forceBundleRefresh() {
try {
//ResourceBundle.clearCache();
ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
sLog.info("Resourcebundle.clearCache executed succesfully.");
} catch (Exception e) {
sLog.info("Resourcebundle.clearCache cannot be used because jdk version is not 1.6 or higher, try old approach");
System.out.println("Catch bundlov");
// try old approach
for (String resourcebundle : bundleNames) {
for (String contextDimensionValue : contextDimensionValues) {
String bundleName = resourcebundle + contextDimensionValue;
System.out.println("Bundle123: "+ bundleName);
refreshBundle(bundleName);
} //for
Executing this code the bundles of ViewController is always refreshed from DB, but bundles of BusinessComponents are refreshed ONLY FIRST TIME after application is deployed on WebLogic. Next attempts after the first one, don't perform refresh.
I think it should behave same for BC and VC bundles, isn't it?
If I am wrong please direct me to some example.
Regards,
Sašo CelarcIn our ADF 11.1.2.1.0 application we are loading bundles form the database, which is not working as expected.
The problem is that when we want to refresh the bundle, it doesn't work for values on Model (BC) components. Bundles values stay the same.
Bundle refresh was implemented by this example
http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles/
We then found that if we put f:loadBundle element on the page, the refresh does execute.
But only for the ViewController, Model bundles do not refresh.
On top of every page we have <f:loadBundle basename="si.bron.susa.view.util.ArsoVinBundle" var="res"/>
On every page we also have a button. Click on it should refresh the bundle by calling the following code:
public void forceBundleRefresh() {
try {
//ResourceBundle.clearCache();
ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
sLog.info("Resourcebundle.clearCache executed succesfully.");
} catch (Exception e) {
sLog.info("Resourcebundle.clearCache cannot be used because jdk version is not 1.6 or higher, try old approach");
System.out.println("Catch bundlov");
// try old approach
for (String resourcebundle : bundleNames) {
for (String contextDimensionValue : contextDimensionValues) {
String bundleName = resourcebundle + contextDimensionValue;
System.out.println("Bundle123: "+ bundleName);
refreshBundle(bundleName);
} //for
Executing this code the bundles of ViewController is always refreshed from DB, but bundles of BusinessComponents are refreshed ONLY FIRST TIME after application is deployed on WebLogic. Next attempts after the first one, don't perform refresh.
I think it should behave same for BC and VC bundles, isn't it?
If I am wrong please direct me to some example.
Regards,
Sašo Celarc
Maybe you are looking for
-
Mail can't completely forget an email account.
I've deleted an email account (hotmail) in Mail successfully, but the Mail application still logs on to the Hotmail server when I check mail. If I open "Connection Doctor" it clearly shows a successfull log-in to the server that I no longer wish it t
-
File Adpater Module Configuration
I have a scenario where i need to send the file to webservices,the file is in xsd:base64 binary format,the file is getting splitting up in the moni inbound message payload,I think this can be rectified by using module conifguration in file adapter by
-
Transmission medium "8: Special function"
Hi Experts, I have got an situation. I have made changes in customization for an output type of a billing document and kept transmission medium as 8: Special Function. And this output type is supposed to trigger PDF copy of invoice in a particular se
-
Using Dynamic Proxy in AppServer 7 during EJB deploy
Hello Guys. I know Dynamic Proxy is the default when deploying EJBs starting from AS 8.1. If I want to use Dynamic Proxy in AS before 8.1, how can I do that? Thanks. Rye
-
Please help me find out why the following code gave the error: ORA-00903: invalid table name sql_stmt := 'CREATE OR REPLACE VIEW re_temp AS SELECT * FROM :1 || ''.'' || :2 || ''@dbLink '''; EXECUTE IMMEDIATE sql_stmt USING v_sc, v_tb; Thanks for your