Problem with data records with generic extractor
I have created generic exractor based on function module.
When i fetch the data with one infopackage it fetches only 104,239 ( which is wrong correct record are 155,120 )
But when i fetch the data with six different infopackages with different filters it fetches 155,120
So is extracotr gives wrong values if it exceeds greater than 100 k records ?
I want to fetch all the records in one ifopackage please suggest.
Hi Venkatesh,
Thanks a lot, my Bsource BI settings are like this
Source System Max KB Maximam line Frequency Max Proc.
CLNT700 100000 100000 10 10
Should i increase the values to more than 100000
Or should i cahnge the following code ?
Fetch records into interface table.
named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
of TABLE gt_ebi
PACKAGE SIZE S_S_IF-MAXSIZE.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
Similar Messages
-
Problem with COPA extractor 1_CO_PA ...
Hi all,
I am facing a problem with COPA extractor where delta is bringing in records which have been commited to database more that 6 hours ago. I understand that according to a note that COPA extractors have a default safety interval of 30 minutes but 6 hours is too much.
Is there any way I can change that? Is there any customizing option? Note 392876 explans how to change the safety interval to 5 minutes but I dont know if it is applicable for our patch level?
We are at PI->2004_1_500 patch SAPKIPZI69.
Also the safety limit is also maintained in ROOSOURCE-DELTASAFE2 field, should I just change it there?
any help is appreciated...
thanksI see that you are not so novice!
Please, how can I check the time and time zone in R/3 and BW?
Thank you in advance -
Data error with generic extractor
Hi Friends!
I have a generic extractor based on view z_customer
The view is easy:
table: KNVP
fields: KUNNR, KUNN2, PARVW, MANDT
conditions: PARVW eq 'RG'
When I check the table (SE16) with customer 'X', show me only one record,
but when I run the extractor (RSA3) show me four records.
- What is wrong in my view? Perhaps something relative with the client (MANDT)?
Thank you in advance!Hi.,
It's not mandatory that you must include MANDT field in view.
check check the number of records in the created view, not in the table.
If the number of records matches in view with RSA3, then it is fine.
-- Selva -
Problem with Generic datasource from function
I developed generic datasource from function module.
But I have problem with the select options.
First one is order number OBJECT_ID type char 10. When I input Object_ID = 45755 , no data selected.
When input 0000045755, one data record selected.
But I called functiion CONVERSION_EXIT_ALPHA_INPUT to conevet the input data. And I found 45755 was converted to 0000045755, but no record selected.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'OBJECT_ID'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_OBJECT_ID.
APPEND L_R_OBJECT_ID.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-high
IMPORTING
OUTPUT = L_R_OBJECT_ID-high
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-low
IMPORTING
OUTPUT = L_R_OBJECT_ID-low
ENDLOOP.
Another problem is CREATED_AT, which type is DEC 15, how could I handle it ? input is yyyymmdd, I tried to add '000000', but can't select any data.
Thanks for any help.code is :
FUNCTION ZACTIVITY_PLAN_PARTNER.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZACTIVITY_PLAN_PARTNER OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
Example: DataSource for table SFLIGHT
TABLES: CRMD_ORDERADM_H.
Auxiliary Selection criteria structure
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
DATA: BEGIN OF ACTIVITY,
OBJECT_ID type CRMT_OBJECT_ID_DB,
PROCESS_TYPE type CRMT_PROCESS_TYPE_DB,
OBJECT_TYPE type CRMT_SUBOBJECT_CATEGORY_DB,
CREATED_BY type CRMT_CREATED_BY,
CREATED_AT type CRMT_CREATED_AT,
END OF ACTIVITY.
DATA: ZACTIVITY LIKE TABLE OF ACTIVITY WITH HEADER LINE,
Zorder LIKE TABLE OF ZORDER_S WITH HEADER LINE,
d_start type c length 15,
d_end type c length 15
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
counter
S_COUNTER_DATAPAKID LIKE SY-TABIX,
cursor
S_CURSOR TYPE CURSOR.
Select ranges
RANGES: L_R_OBJECT_ID FOR CRMD_ORDERADM_H-OBJECT_ID,
L_R_CREATED_AT FOR CRMD_ORDERADM_H-CREATED_AT,
L_R_date for ZACTIVITY_PLAN_PARTNER-ZPLAN_DAT.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZACTIVITY_PLAN_PARTNER'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE. "Initialization mode or data extraction ?
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'OBJECT_ID'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_OBJECT_ID.
APPEND L_R_OBJECT_ID.
ENDLOOP.
if L_R_OBJECT_ID-option is initial.
L_R_OBJECT_ID-option = 'EQ'.
L_R_OBJECT_ID-sign ='I'.
endif.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-high
IMPORTING
OUTPUT = L_R_OBJECT_ID-high
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = L_R_OBJECT_ID-low
IMPORTING
OUTPUT = L_R_OBJECT_ID-low
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CREATED_AT'.
MOVE-CORRESPONDING L_S_SELECT TO L_R_CREATED_AT.
APPEND L_R_CREATED_AT.
ENDLOOP.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT OBJECT_ID FROM CRMD_ORDERADM_H
WHERE OBJECT_ID IN L_R_OBJECT_ID
AND CREATED_AT IN L_R_CREATED_AT and
PROCESS_TYPE EQ 'Z220'.
ENDIF. "First data package ?
Fetch records into interface table.
named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION. -
Problem with generics in general framework
Hi,
I've just started using generics and I've been able to solve most of my problems with type declarations etc, but I still have a few problems left.
My current problem is in a class which has a map of classes which implements a generic typed interface (The interface is called Persister in the code below).
The map is declared as:
private Map<Class<?>, Persister<?>> persisters =
new HashMap<Class<?>, Persister<?>>(); And the interface is declared as:
interface Persister<T>My problem is that a method in the class which has the map should return a Collection of type T.
Can that be done without supressing warnings?
It's probably hard to understand what I mean (since I don't know the terminology) so here's a complete minimal example which illlustrates the problem. The problem is in the selectAll method in the DbFacade class.
The lines:
Persister persister = persisters.get(clazz);
Collection<E> result = persister.selectAll(clazz);Needs to be altered but to what? (Or do I need to make more changes?)
Thanks in advance
Kaj
///////////////// Start of complete example
import java.util.*;
class ClientSample {
public static void main(String[] args) {
DbFacade facade = new DbFacade();
//Works..
Collection<Holiday> holidays = facade.selectAll(Holiday.class);
class DbFacade {
//Map with many different type of persisters,
//one persister per class.
private Map<Class<?>, Persister<?>> persisters =
new HashMap<Class<?>, Persister<?>>();
DbFacade() {
persisters.put(Holiday.class, new HolidayPersister());
//This is where I'm stuck
//I don't want to add supresswarnings to this method, so what should I do?
public <E> Collection<E> selectAll(Class<E> clazz) {
//The following line gives:
//Persister is a raw type. References to generic type
//Persister<T> should be parameterized
Persister persister = persisters.get(clazz);
//The following line gives:
//Type safety: The expression of type List needs unchecked
//conversion to conform to Collection<E>
Collection<E> result = persister.selectAll(clazz);
return result;
interface Persister<T> {
List<T> selectAll(Class<T> clazz);
abstract class AbstractPersister<T> implements Persister<T> {
class HolidayPersister extends AbstractPersister<Holiday> {
public List<Holiday> selectAll(Class<Holiday> clazz) {
return null;
class Holiday {
//data
}Well you can put in a type cast
Persister<E> pesister = (Persister<E>) persisters.get(clazz);but you'll stil get a warning. Sometimes there's just no avoiding them. What, AFAIK, you can't tell the compiler is that each entry of the map contains a persister for the class mapped to it.
All it knows that classes are mapped to Persisters. -
Problem with Generic Extratcor - Function Module
Hi Experts,
We have created Generic Extractor using Funcion Module to Load Inventory related data into BW.When we check in Extract Checker its show 330 records.When we check in table for that logic by material we got the same records as 330.The problem is when we extract into BW we are getting more then 695,000 records.Can somebody please tell us where the problem is .Thanks
VahgarHi,
Check in the load monitor, how many records are populated from source system, and how many are populated after transfer and update rules. Maybe there is your problem, not in the extractor but in the transfer/update.
Hope it helps.
regards,
Diego -
Problem with this extractor 0BBP_TD_PO_1
Hi Experts,
We had seviour issue with this extractor. We are wokring on SRM5.0 using this:0BBP_TD_PO_1.Its not capturing the Delta records.Till now we are running through Init Package only. Please let me know how to resolve this issue. BI-Content support Pack:13.
Apreciate your time and help.
Thanks,
Rajendra.AHi
Please try these SAP OSS Notes ->
Note 652062 EBP 4.0-5.0: Contract interlinkage extractor & delta upload
Note 725171 EBP 4.0: No requester or supplier in delta extractor
Note 745537 EBP 3.0-4.0: PO extractor and header status
Note 809118 EBP 5.0: PO extractor and header status
Note 747208 EBP 3.5-5.0: PO extractor and DCI
Note 730389 EBP 3.5 SRM 4.0: PO extractor and tax code
Note 677697 EBP 35-40: Incorrect preceding document in PO extractor
Note 677524 EBP 20c-40: Dump in the ORG-extractor
Note 481283 Initializing the delta method in the EBP
Note 538695 EBP 3.5: BW extractor for bid invitation
Note 313595 Request cannot be updated directly in InfoCube
Hope this will help. Do let me know.
Regards
- Atul -
Ok, I have a problem with the <? extends NamedType> generic parameterized type, here are three example classes:
public abstract class Base
public abstract <? extends Base> getMe();
public abstract class Spec
extends Base
public abstract <? extends Spec> getMe();
public class Impl
extends Spec
public Impl()
super();
public Impl getMe()
return this;
public String toString()
return "I live!";
}And a main method in another class:
public static void main(String[] args)
Impl im = new Impl();
Impl i = im.getMe();
Spec s = Spec.getMe();
Base b = Base.getMe();
System.out.println("im = "+im);
System.out.println("i = "+i);
System.out.println("s = "+s);
System.out.println("b = "+b);
}And the compiler returns this:
Base.java:3: <identifier> expected
public abstract <? extends Base> getMe();
^
Base.java:3: > expected
public abstract <? extends Base> getMe();
^
Spec.java:4: <identifier> expected
public abstract <? extends Spec> getMe();
^
Spec.java:4: > expected
public abstract <? extends Spec> getMe();
^
4 errorsPlease assist.It worked!
I don't know why that didn't work in Eclipse, so:
"Return types are compatible if the overriden method's return type is a subclass of the original method's return type."
I also mistyped the main method, but this new one didn't change the original error:
public static void main(String[] args)
Impl im = new Impl();
Impl i = im.getMe();
Spec s = Spec.getMe();
Base b = Base.getMe();
System.out.println("im = "+im);
System.out.println("i = "+i);
System.out.println("s = "+s);
System.out.println("b = "+b);
}should be:
public static void main(String[] args)
Impl im = new Impl();
Impl i = im.getMe();
Spec s = i.getMe();
Base b = s.getMe();
System.out.println("im = "+im);
System.out.println("i = "+i);
System.out.println("s = "+s);
System.out.println("b = "+b);
} -
No Data records for COPA Extractor when using RSA3
Hi there,
I created a datasource for COPA (geenerated) and tried to test with Extractor Checker. There is no data records! What's wrong? Any idea? Thanks in advance!
Weidonghi,
as Ashish wrote check in se16 if there are data for your selection criteria in tables you use in this datasource
if you use infoset check it in sq02 especially join conditions
if you use function module - test this module in se37
Regards,
Andrzej -
Problem with generic data source
I have a infoset using this infoset I have developed one datasource everything fine,When i see the data on RSA3 it is going to dump.
Please help.. what is the problem.....
Regards,
Sasidhar.Hi Sasidhar
RSA3 is working fine for same datasource in DEV because you must have very less amount of data in DEV as compared to PROD.
I would suggest that instead of testing only in RSA3 , load the data into BW using infopackage schedule option in background and then see it is successful.
Regards
Pradip -
Delta with Generic Extractor using function module
Hi,
I have created an extractor using function module and it work fine (mode FULL)
It's an extractor based on the FM RSAX_BIW_GET_DATA_SIMPLE.
In TCODE RSO2, I have specified a delta field (AEDAT).
In table ROOSOURCE, this extractor is defined by :
DELTA = AIE
EXMETHOD = F1
When I extract data in Init mode, there is no problem. But delta don't extract any entries.
When I trace with TCODE ST01, in Init mode the function module is executed but in delta mode, there is no trace of any use of this function module.
I don't know how to do to make this extractor work fine in delta mode.Hi Pascal,
The same function module i have used and succesffuly doing delta using it. So it works for both full & delta.
How ur testing it and where are you testing it for delta.
Do the delta testing through BI end. Set the
As u have already set the delta field., now Follow below steps:
1. First set the safety interval upper limit to -1, so that it will extract the delta data of 1 day back records also.
2. Please make sure wether the delta records are available or not in r/3, if there is no records to be fetched in for delta then u will not be able to track out wether delta is working or not.
3. Now do the init from BI end first. Delta initialization without data transfer. - It will give u green status with 1 dummmy record.
4. Now do the delta. It will extract the delta records.
Before that make sure that if any selection your giving in Infopackage should be met out by these delta records.
Thanks
Dipika -
Hi,
I'd like to get my generic (Hash)Map back from a textfile, for this I have written a method that reads the file and returns an Object. The only problem I have is that I get the error "java uses unchecked or unsafe operations , ..." with the following code:
Map<Character, TransVal> thisIsMyMap = (HashMap<Character, TransVal>) readFromFile("filename.dat");I thought it would be the same as parsing a String (guess not :-) ):
String s = (String) justAnObject;TransVal is a class that contains a BitSet and an Integer.
Any help plz?
(btw sorry for my english :-s )The reason is that it cannot check, at runtime or at compile time whether or not the cast is valid. It will at runtime check the cast to HashMap (btw, use Map for both the cast and the variable), but it will not check that all the keys are Characters and that all the values are TransVals. What will happen is that somewhere where you actually use the map, if the assumption you are making here is incorrect, there will be a ClassCastException in what appears to be perfectly safe code. If you are positive that your cast is safe, either change the return type of readFromFile or put a @SuppressWarnings("unchecked") annotation on the method and use a java compiler that respects it (eclipse, 1.6, and maybe others, but not sun's 1.5 javac).
-
Problem with Generic iView Lists in EP6
Hi,
We are in the process of migrating our portal from EP5 SP5 to EP6 SR1. I have a page that has 9 iViews on it, and there are 5 of them that are generic iView lists. In EP5, everything works great. Each generic iView list returns the information relating to that iView. But in EP6, I am running into a problem.
When I am trying to load the same page, some of the iViews to not work. So I recreated the query iViews using the SAP delivered "com.sap.pct.hcm.eeprofilegenericiviewlist" template in EP6. I go back to the page and the same thing happens. I try refreshing the page, and then more of the iViews work, but now another problem arises.
Example: I have an iView that displays the salary data of an employee, and another that displays the Home Address. I refresh the screen and the Salary Data iView works fine, but the Home Address is now showing the Salary Data information.
So, I'm at a loss as to what I should do. I know that there is a lot of configuration for the iViews now under the Property Editor and I think that I might have something that is not set up properly.
Is there documentation on what needs to be set up for the generic iView list if there are multiple generic iView list iViews on the screen?
I guess I should mention too that these iViews are in MSS and all work off of the Team Viewer. The team viewer iView is based off the EP5 version of the par, not the EP6. Could that be the problem?
Hope this makes some sense.
Thanks and best regards,
Kevin
Message was edited by: Kevin SchmidtJust thought I'd let people know I have solved the problem.
Even though I had created brand new iViews in EP6, they still act like EP5 iViews. So after researching the help files, I changed the isolation method of all the iViews on the page from Embedded to URL.
Food for thought!!
Kevin -
Problem with generic table in tableview
Hi,
I need a generic editable table in my tableview. I coded the page as shown below. Displaying the data works fine but after editing, the modifications are not present in my variable model->table. It seems that my reference is lost.
How can I solve this problem
field-symbols: <tab> type table.
assign model->table->* to <tab>.
if <tab> is assigned.
%>
<htmlb:tableView id = "itab"
selectionMode = "LINEEDIT"
table = "<%= <tab> %>"
columnDefinitions = "<%= model->controltab %>"
filter = "SERVER"
selectedRowIndex = "<%= model->selected_row %>"
onRowSelection = "row_select"
sort = "SERVER"
columnHeaderVisible = "TRUE"
visibleRowCount = "<%= model->ROW_COUNT %>"
iterator = "<%= iterator %>" />i guess somewhere (may be in oninputprocessing) you need to get the ref of <tab> to your model table .
<b> get reference of <tab> into model->table-> .</b>
i never tried anything like this, but i suggest you to try this.
Regards
Raja -
Re: Satellite A200 - Problem with Generic AC Adapter
I own an A200 running Windows 7; I've had it for a few years and the battery had degraded to the point where it only held a small amount of power, so I ran it on AC power pretty much all the time. However the plug at the end of the power cord (where it plugs into the computer) gradually became looser and looser to the point where I had to twist and turn it and wrangle it just so in order to get power to flow into the computer; the other day it stopped working completely.
I went out and bought a third-party AC adapter ('Lite-On'); I'm in a foreign country, but the adapter had the same type of plug and the same power specs (same input range, same voltage output) as the busted adapter that had come with the computer. When I plug it in, all the power-supply LEDs light up and it seems to be working perfectly. When I start the computer, however, sometimes I'll get a screen that says 'Windows failed to start...possibly due to an interruption in the power supply' despite all the LEDs remaining solidly lit during startup. This only happens occasionally; what happens every single time is that within a minute or so all the LEDs will turn off and the computer will instantly shut down; the LEDs will then light back up again instantly. Sometimes this happens during the start-up process, and sometimes I'm able to get as far as logging onto Windows before it shuts down.
Can someone please tell me what the problem might me?After reading your posting I also believe that this issue has nothing to do with AC power supply.
There must be some other reason for these switch offs.
In most case this behaviour is typical for overheating. In short period of time hardware reach critical temperature level and notebook simply switch off without any warning.
You can do small test: start your notebook and enter BIOS settings. Leave it for a while and see if the same will happen again.
As Akuma already wrote, try to clean the cooling vent and cooling grill.
Problem is that dust blocks cooling grill and notebook cannot be cooled down properly.
Maybe you are looking for
-
Text Entry Boxes and their content not being captured in Automatic Recording
I have searched the forums here and elsewhere extensively and whilst I have found people with similar issues, I have yet to find a solution. My problem is this: I am trying to record myself using a piece of software which contains numerous text field
-
Premiere basics - export function isn't available
I'm trying to do something that I thought would be easy and basic - open a movie, edit to select a small clip, and save that clip in a format that can be loaded on an iPod or written to a DVD so that the clip can be played later on another computer (
-
Can we import a timestamp column in DIAdem
I have a 2 channels with time information - one in string format and the other in timestamp format. It seems that when I try to open my TDM file, DIAdem gets stuck. I'm sure that its because I can't have string or timestamp information in a TDM fil
-
Making link to external swf stop
Using flash 8. Inserted a link to a 2:15 second swf on the internet (get URL xxx.swf) at the beginning of my fla file, it plays fine but when the swf is over, how can I make it go away, in order to continue on with my presentation?
-
How to open the execel file in the client machience
Hi How can i open an excel file located in a client machience , from the same client machience. I tried with Client_ole2....... but its not working. Thanks in advance to you Rizly