Selections in Info package

Hi,
Can any one help me  in  selecting the data through info package where
Key figure1<>0 <b>AND</b>  key figure <> 0. 
I.e    I have the extractor which is pulling 50 millions of data and  updating only 1 million.The reason  I have a code in the start routine which says  if  Key figure1 = 0 AND  keyfigure 2 =0  then delete the data.  Instead of pulling 50 million  and deleting the data at start routine .
I am trying to implement the same logic in info package by which I can select only 1 million through OlAP variable and ABAP routine. 
Regards
Sudheer

Hi,
is the extractor based on a standard BC extractor or on a generic datasource ? If it's based on a generic datasource then you can probably adn these selection in the view it's based on.
regards,
Raymond Baggen
Uphantis bv

Similar Messages

  • ABAP Routine in selection of Info package in 3x

    Hello Experts
    We need to load distinct PO data in 3x server.
    I have added this distinct po values in range table of info package abap routine.
    However its not loading for range table values more than two selections/pos.
    If I try to append more than 2 values,only last one is uploaded.
    However after load, in monitor tab-header , selection paramenters I can see all PO values in selection.
    Some how it works only for two inputs (rows) in range table of ABAP routine in infopackage.
    Anybody has faced such issue? any help is appreciated!
    Edited by: Kanchan Angalwar on Jan 30, 2010 9:59 AM

    Hi,
    Please post your ABAP code here

  • Data Selection in Info Package

    Hi Gurus:
    How to exclude say doc type 'ER' in a Info package...Where can I mention the <> operator in I.pKG..
    Thanks & Regards

    hi MK K,
    or try with infopackage routine, there is button to choose type 'abap routine' and try following code
    DELETE l_t_range
    WHERE fieldname = '[doc type]'
    AND LOW = 'ER'.
    hope this helps.
    sample code
    routine as selection in infopackage

  • Data selection in info package using ABAP routine.

    Hi,
    when we are  scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO  Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.
    this is very urgent.delivery is tomorrow.

    hi Lekha,
    try following code.
    seems you post the same question twice, one posting is sufficient. and please don't forget to reward helpful answers.
    data: l_idx like sy-tabix.
    read table l_t_range with key
    iobjnm = '0CREATEDON'.
    l_idx = sy-tabix.
    DELETE l_t_range
    WHERE iobjnm = '0CREATEDON'.
    L_t_RANGE-SIGN = 'I'.
    L_t_RANGE-OPTION = 'EQ'.
    if not work, try
    L_t_RANGE-OPTION = 'BT'.
    BT = between
    last 6 month
    L_t_RANGE-LOW = sy-datum - 180.
    current date
    L_t_RANGE-HIGH = sy-datum.
    append l_t_range.
    modify l_t_range index l_idx.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line -
    endform.

  • Data selection Fiscal year/period in info package

    Hi Experts,
    I loaded the data from application server to my data target and load completed with lot of records, but as per my requirment i need to load Fiscal year/period 001/2010 to 012/2010. I just giving selection in info package like 001/2010 to 012/2010  and i excute load it sowes no records, make sure in application server we have lot of records for this period.
    CAn any one tell me how can i give format in infopackage.
    Thanks in advance
    David

    Hi,
    Select range in correct format. Instead of giving manually, You can select from system. This can be wrong format of selection.
    Thanks,
    SAC

  • Delta update in Info package

    Hai all
    what is the us of delta update in info package
    I had intially loaded data from R/3 to psa using
    (INFO PACKAGE->UPDATE-->Initilize delta process)
    Then I had created to more records in  r/3 side .
    this time I scheduled using DELTA UPDATE I am getting 0 records
    then what is the use of delta update
    How can I get only delta records with out use of selection condition in DATA SELECTION of INFO PACKAGE
    thanks
    chaithanya

    Hi,
    You must specify "1" (day) in the lower limit of the delta maintenance.
    I could not post my previous reply so here a new try :
    Hi Chaithanya,
    Let me explain how the generic  delta mechanism with "date"-field works on the R/3 side:
    When doing a delta extraction, the current date is stored in table ROOSGENDLT or ROOSGENDLM (anyway not so important).
    This date will serve as a "from" date for the next delta extraction, though excluding the current value.
    This in order to prevent duplicate records to be extracted during a second delta run on the same day.
    Without extra settings, it will thus not be possible to extract two different delta's on date the same day.
    Solution :
    1. If you do not care about duplicate data (e.g. only field assignments with overwrite functionality in the transformation) goto RSO2 in change mode for your extractor and go into the generic delta maintenance screen. In the settings, enter "1" as safety interval lower limit. Like this, the delta processing mechanism will always subtract 1 day from the day stored as 'low-value'.
    In your example this means that the initialisation will transfer 4 records, the delta will transfer 6 (although only 2 were added).
    2. Use timestamps to determine delta (timestamp should be updated on savetime of record)
    I hope this helps.
    regards,
    Olav

  • ******Creation of a loading selection for cube in info package level

    Hi,
    when we are  scheduling the info package(Infp package name is like XYZ),we want to load past 6 months data from the current date(INFO OBJECT(0CREATEDON) BETWEEN (Sy-Datum - 6 months TO  Sy-Datum),in the selection tab in schedule i want to write the abap routine (type 6).please can any one have this type of code please sedn to me asap.
    this is very urgent.delivery is tomorrow.
    Regards
    lekha

    hi Lekha,
    try
    data: l_idx like sy-tabix,
    l_month(6) type c,
    l_dtlast6month like sy-datum.
    read table l_t_range with key
    iobjnm = '0CREATEDON'.
    l_idx = sy-tabix.
    DELETE l_t_range
    WHERE iobjnm = '0CREATEDON'.
    L_t_RANGE-SIGN = 'I'.
    L_t_RANGE-OPTION = 'EQ'.
    if not work, try
    L_t_RANGE-OPTION = 'BT'.
    BT = between
    current month
    concatenate sy-datum3(2) sy-datum0(4) into l_month.
    L_t_RANGE-HIGH = l_month.
    last 6 month
    clear l_month.
    l_dtlast6month = sy-datum - 180.
    concatenate l_dtlast6month4(2) l_dtlast6month0(4) into l_month.
    L_t_RANGE-LOW = l_month.
    append l_t_range.
    modify l_t_range index l_idx.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line -
    endform.
    Re: routine as selection in infopackage
    Re: routine as a selection in infopackage 2. Paolo Siniscalco and A.H.P
    Re: abap routine

  • Data selection options in info package

    hi,
    I am using filter for current month while loading data into info provider (let us say 0calmonth). I am using below code in info-package after selecting type '6'  (ABAP editor),
    data: l_s_range type rssdlrange,
    l_date type d.
    l_date = sy-datum.
    l_year = l_date+0(4).
    l_mth = l_date+4(2).
    concatenate l_year l_mth into l_month_high.
    concatenate l_year '01' into l_month_low.
    loop at l_t_range into l_s_range where fieldname = 'CALMONTH'.
    if dy-subrc = 0.
    l_s_range-low = l_month_low.
    l_s_range-low = l_month_high.
    modify l_t_range from l_s_range.
    endif.
    endloop.
    But now I would like to use created date as filter instead of calmonth/year (yyyymm). please note that calmonth has only one value but calendar day will have both from and to values. Please give me code to use created date (mm/dd/yyyy).
    please help me with your code.
    thanks,

    I have got the solution by myself (trial and error method). Solutions: there is a SAP delivered variable to calculate current month (Variable name is 0CMONTH).
    Is there any variable to calculate both previous month and current month as filter value? pls reply.

  • Adding a field in data selection tab of Info Package

    Hello,
    how can I add a field for selection in the data selection tab of the info-package in BW 3.5.
    Thanks,
    SD

    Hi,
    You need check Selection in RSO2 in ECC then that field is available for Selectgion in InfoPackage.
    Here I'm giving 0CUST_SALES_ATTR DataSource Example for Selection Change, so see the logic and accordingly you can change your DataSource Selections.
    See the properties of that field in RSA2 in ECC and you can also make it for selection, use the following program and see it.
    In ROOSFIELD table give the datasource 0CUST_SALES_ATTR and see , select only Active version Fields.
    For the following fields you can find FIELD = X, it indecates that it is abailable for selections, so in this way you try to do it by using following program and check.
    KUNNR
    SPART
    VKORG
    VTWEG
    REPORT ZBI_ROOSFIELD NO STANDARD PAGE HEADING .
    tables ROOSFIELD.
    Update ROOSFIELD set SELECTION = 'X' where
    OLTPSOURCE = '0CUST_SALES_ATTR' and
    FIELD = 'FAKSD '.
    Also see SAP Note : 1033847
    Re: Field Selection in Datasource 0CUST_SALES_ATTR
    Thanks
    Reddy

  • Maximum number of selections in an info package

    Hi friends,
    i want to load an ODS with data from MSEG. Due to the great number of records I've to select by
    0ATERIAL. Selection criteria are provided by a routine I'll write for this selection, reading a different
    ODS. Estimated number of records for selection is about 80,000.
    My question:
    Is there any restriction regarding the number of selection criteria of an Infoobject in info packages?
    Will a selection work with 80,000 criteria?
    Any input is highly appreciated.
    Thanks in advance and regards
    Joe

    Hello,
    If I understood correctly...you will compare the values from a DSO and then pass these values in the infopackage selections..
    but how are you planning to do it...will it be interval or single value??
    Also I think you can assign only one value or range in the infopackage at a time for selection through routine...
    More the number of selections more the number of AND in the where clause.
    I am not sure if there is any limitations on where clause but after 100 selection the select queries become complex and overflow the memory...so thats the limitation.
    Thanks
    Ajeet

  • Regarding Selection Criteria features in BI7 Info package maintenance

    Hi,
    In BI7.0, I have to load data from the Business content ODS, 0FIGL_O02 to Customized ODS by restricting the data as per the document types.
    Do we have that feature in BI7, to restrict the data in info package maintenance's selection criteria.Please let me know, when we dont have that feature...where can i apply this restriction for loading one data target to another data target.
    Thanks,

    In BI 7.0 you will be using DTPs to load data from one DSO to the other.  There will be no Infopackages involved.
    You can filter based on Document types in two ways. 
    1.  Build the filter in the start routine of your transformation itself  to delete datapackage whenever document type is not equal to what you want.
    2.  DTPs have a filter button.  When you go in change mode you will be able to choose the infoobjects on which you want to filter.  You can enter the required Document types in the filter here.
    If helpful, assign points

  • Info-package setting: Data selection tab

    Hi,
    I have to give selection conditions in info-package.
    The need is to restrict the values of a particular field to start with BP and BQ.
    i.e i need only values starting with BP and BQ.
    I gave from and to values in the selection screen of info-package as BP* and BQ*
    But the error says CP(Compare Pattern) is not allowed.
    How else can i make the info-package to select values starting only with BP and BQ
    Regards,
    Yeshwanth

    Hi Yeshwanth,
    If this is a character string, then check the length and start from BP0000, as per the length of the feild till the end which in our case would be BQ0000.
    Let me know, if this doesnt work.
    Naveen.A

  • Info-Package Data Selection

    Hi,
    I have a Info Package which is running from several months in production with different data selections for a InfoObject: ZDEPT as ZAT, AZZ, ZNN etc.
    Now, my new requirement is to include new value ABC for the same InfoObject.
    Do i need to include selection conditions on INIT & DELTA info package as well or directly update the delta and run the process?
    Please let me know.

    Ajeet,
    I donu2019t want to re-load the historical data. As per your suggestion, I just want to do an init without data transfer with new criteria.
    So, I was trying to update the existing Info Package from "Delta mode" Option to Init with out data transfer. I got a pop up message saying that
    u201CDeltas already loaded for request: REQU_2SNQV3GDKC2GTEL9EAVKU6KKF init. select. no 2. initu201D
    Do I need to ignore this message or do I need to delete any thing or Do I need create new info package and select Init with out data transfer. Pls suggest me!.
    I need to do the same thing in production once it is tested in Q. So, currently in production, data is loading ever day using delta mode. I need to be careful to touch the historical data. Pls advice me what is the best thing to do in production.
    Thanks,
    ganga

  • Calweek in Info package selection parameter

    Hi,
    I need to send the data from cube1 to another cube2 on weekly basis.
    Cube1 is getting the data on daily basis.
    on every week end i need to send the data to cube2 based on selection parameter OCALWEEK, and the load should be full update.
    i want automatic, so that every week end InfoPackage selection parameters should change to next calweek so that it will fetch correct lastweek data to cube 2 from cube.
    Can you please suggest me how to automate the Info package.
    Regards,
    Silpa

    Hi,
    at infopacks selection screen, for field 0calweek select type : abap routine.
    in routine use function mod DATE_GET_WEEK to retrive the week based on sy_datum (current date), reduce the result -1 and the result will be calweek minus  1, e.g.: 200725 for today.
    /manfred

  • Selection Option question in Info Package

    We would like to stop update Master Data if no master data exists for a characteristics. I found there is a selection options in Info Package Update Tab called "Do not update data if no master data exists for a characteristic"
    I added a row in one of the InfoObject which has been used in another InfoObject as an Attribute. I selected this option in the IP and tried to re-load Master Data, and it didn't fail.
    What does this option do?
    Thanks!

    For example:
    InfoObject ITEM and ITMPLN. ITEM is an Attribute in ITMPLN.
    ITEM has
    Item    Description
    001     Test 1
    002     Test 2
    ITMPLN has
    Project No            Item         Description
    A                         001          Test A
    B                         002          Test B
    <b>C                         004          Test C</b>
    After I load the last row to ITMPLN, I would like to see the error message instead of adding <b>004</b> into ITEM InfoObject. Do you know how to do it?
    Thank you!

Maybe you are looking for

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document for the 1st time

    Hi Experts, I am doing goods movement using BAPI_GOODSMVT_CREATE in my custom code. Then there is some functional configuration such that, material documents and TR and TO are getting created. Now I need to get TO and TR numbers from LTAK table passi

  • How to install Bluestacks on a mac properly?

    I'm trying to install bluestacks on my mac which is a software for running apps from all other mobile devices out there for pcs or macs. When I do the normal procedure of moving the application into the applications folder you would think that the so

  • Which is better for the keying (chroma key)..?

    for using chroma key and blue/green screen, which is better, final cut pro or final cut express. Im new with this I dont have either or am familar with either...Also, is dvMatte Pro or whatever from http://www.padd.com/dvg/prod/prod.php?prod=dvmattef

  • Javascript inside jsp

    Hi, is it possible to call a javascript function or can i add events like onClick, onLoad inside the body tag when the response content type is set to "response.setContentType("application/vnd.ms-excel")" ?? Currently the issue is none of the events

  • Help Needed in Message Driven Beans

    Hi, I am using JMS and MDB for an asynchronuous communication. I configured the JMS on Sun App server successfully. But I am getting a error message for JNDI Naming. It is not able to find the MDB bean in the JNDI. So it is throwing a NameNotFoundExc