Selection option in info package

Hello Friends,
While loading data in BW system (3.5 Version).
I would like to use selection option in info package for one particular field.
I can see only range options (Selection From and Selection To) which does not satisfy my requriement.
I need to select nearly 5000records which are in one specific number range, so, how can i select these records in infopackage.
Thanks
Tony

Did you think of InfoPackage routine?
Try to write a routine under data Selection tab based on your data selection scenarios. I think you can achieve your goal.
1) Data selection tab - Type column, choose ABAP routine.
Whendo we use this?
when we cannot extract data selectively by giving direct conditions in selection tab, eg: "list all the employees who joined on the current date". here current date value changes every day when we run the query. In such cases we cannot give direct condition, we need to write routine to get the current date
Check this if it helps to proceed:
ABAP ROUTINE AT INFOPACKAGE FOR DATE RANGE
InfoPackage Routine

Similar Messages

  • 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.

  • Selection Options in Info Pakcage.

    Hello People,
                        I am uploading data from a flat-file into the psa--> Infosource --> Infocube.
    the data is loading correctly. all the transfer rules, update rules and communication structure are activated.
    in my flat file i have a field: 0fiscper = fiscal period with the following values:
    0FISCPER
    0012008
    0022008
    0032008
    0042008
    0052008
    0062008
    However, durign the upload, i want only the records bearing 0fiscper 0012008 upto 0032008 to be loaded. that is in this case i want only the first 3 records to be loaded into the PSA and then into the cube.
    In the transfer structure i have ticked the checkbox under the column selection. under the data selection tab in info package i have specified the value range.
    The problem is that when i do a preview , the restriction does not apply. when i tried to load data into the cube no records were selected.
    Kindly explain and advise as appropriate.
    Regards,
    Izzytech

    hi Bhat,
                I have already tried what you said but its not working. its not even selecting records from the flatfile to the psa. My Psa & CUbe remian empty.
    the checkbox is checked for the selection column in the transfer structure.
    I dnt understand why it is not working.
    Regards
    Izzytech

  • 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

  • Selection Conditions on Info Package

    Hi Experts
      Please advise me on how to proceed
    My requirment is to include selection condition in INFOPACKAGE as the total data that data source is extracting is nearly 200 million records to minimize the extraction of data to be loaded to DSo...my requirment is include selection conditions at infopackage level
    Condition 1: On Fiscal Year/Period
    To load data from  2005 to current....
    Condition 2: to exclude particula Cost Center
    and data source is delta capable
    Please update me how to include these selection conditions do i need to write any ABAP Code and
    Do i need to include selection conditions on INIT & DELTA info package as well
    I need to load data from FY 2005 to........
    Thanks in advance

    Hi Siegfried Szame
    Thanks for the update...apologies for multiple posts
    One question as you said Parallel Inits
    If i created about 9 different INIT info packages  ( My requirment is to initilize data from FY 2006)
    IP1: 001.2006 to 004.2006
    IP2: 005.2006 to 009.2006
    IP3: 010.2006 to 001.2007
    IP4: 002.2007 to 005.2007
    IP5: 006.2007 to 009.2007
    IP6: 010.2007 to 001.2008
    IP7: 002.2008 to 005.2008
    IP8: 006.2008 to 010.2008
    IP9: 011.2008 to 002.2009
    How about delta....what are the selection conditions i need to use
    and
    Can i execute the above packages one after another...that is after completion of IP1 then IP2..then IP3
    Please update
    Thanks in advance

  • Data selection tab from Info package.

    dear all,
    I'm using BI7 for my project. I have 1 simple question, how do you un-select a data target from the data selection tab?
    e.g.
    in the data selection i have 2 DSO
    0DSP_1 and ZDSP_1... how do i remove DSO 0DSP_1 from the selection tab?

    If you are using an infopackage...
    under Data Target tab you are seeing 2 DSO.
    in order to select only one: select the option "Select Data targets"
    and then select the DSO which you want to load.
    If you compeltly doesn't want to use the 2nd DSo then delete the update rules between the infosource and DSO.

  • Selection routine in info package

    Hi gurus,
    I need to load last month's data in to BW if I am executing the IP in this month.
    that is if Iam executing in Feb 2009 then it should load Jan 2009,
    and if Iam executing on JAn 2009 then it should pick data for Dec 2008,
    For this logic I had written like,
    data: TEMP_DATE TYPE DATE,
          TEMP_MONTH TYPE CHAR(6).
    TEMP_DATE = SY-DATUM.
    TEMP_MONTH = sydatum+2(6).
    L_T_RANGE-IOBJNM = 0CALMONTH.
    L_T_RANGE-SIGN = 'I'.
    L_T_RANGE-OPTION = 'EQ'.
    L_T_RANGE-LOW = TEMP_MONTH - 1.
    L_T_RANGE-HIGH = TEMP_MONTH.
    APPEND L_T_RANGE.
    Is this OK or I need to change,
    Thanks,
    Pavan

    Hi Pavan,
    This is an example How to ... Write Infopackage selection Routine
    1.Create an Infopackage
    2. Go to selections tab and choose Type: 6 u2013 ABAP Routine.You can see following available options(F4 Help).
    3. Give disruption, and hit enter, now you will move to following screen.
    4. Write Code between begin of Routine and End of Routine.
    5. See below sample code to select date range from Previous 6 days to Current date.
    6. L_T_Range table is of Type structure RSSDLRANGE.
    a. RSSDLRANGE contains SIGN, OPTION, LOW, HIGH
    We need to populate these fields to pass range dynamically.
    Sample Code:
    ***$$ begin of routine - insert your code only below this line -
    Data: l_idx like sy-tabix.
    Data: date_low like sy-datum.
    Date_low = sy-datum u2013 6.u201D(To get 6 days back).
    read table l_t_range with key
    fieldname = 'CRDAT'.
    l_idx = sy-tabix.
    Pass Range values to L_T_Range Table.
    Move date_low to L_T_Range -Low.
    Move sy-datum to L_T_Range -High.
    L_T_Range -Sign = u2018Iu2019. *****(Here: I u2013 Include, E u2013 Exclude)
    L_T_Range -Option = u2018BTu2019.****( Here: BT u2013 Between )
    modify l_t_range index l_idx.
    p_subrc = 0.
    Regards
    Sudheer

  • Very Urgent!...regarding selection criterion in Info Packages

    Hi all,
         This is very urgent requirement for the project now. Is there any way to indicate a field in selection criterion of a IP as blank.
    Like if I want to select all the records which have a field 0WBS_element as blank from one ODS into another ODS. How do I indicate it in the IP( any solution apart from writing a routine!)
    cheers
    Sudhir

    Hi Sudhir,
      Pls. refer to the earlier posted forums :
    Rotuine in Infopackage for Data Selection---- Urgent
    Thanks,
    Raj

  • BI 7 Option in Info Package

    Hi BwExperts,
    I am loading the transaction data according to the master data.In Older version there is a option available "load data according to the master data" in Infopackage screen. In BI7 for loading the data in the data target , we are using DTP. So i dont find the option " load data according to the master data" in BI7.Can you please help on this.
    Thanks,
    Ram

    Hi,
    If you are looking for master data check before loading transaction data, you can find that under <b>update</b> tab of infopackage in BI 7.
    There are two options,
    Always update data, even if no master data exist for the data.
    Do not update data if no master data exist for a characteristic.
    if you are looking for something else please ignore this.
    regards,
    Pruthvi R

  • 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!

  • Language key in info-package selection

    Hi,
    Just wondering on the language key selection in the info-package. This topic was raised a number of times in the forum and what i have found is no matter what you do 'Language Key' will not appear in the info-package selction as its a srevice API feature and BW will automatically assign the language key based on the installed languages.
    If i need to filter out on any particular language then i need to use some formula / routines etc (of course this is the last option).
    Is my understanding correct ? or Do we have some workarounds to make the language key available in the info-package ?
    Points will be assigned to value added answers.
    Thanks,
    Soumya

    Hi Soumya,
    Hope you would have checked these:
    1. Datasource for text is lang-dependent. If not make it lang-dependant.
    Also check:
    look in OSS Note 324684 'Selections for language and time-dependence'...
    "If a field of a DataSource - typically with field name 'LANGU' or 'SPRAS' - is assigned to InfoObject '0langu', the field is not provided in the selection fields although the field actually can be selected. In this case, all languages of the language vector active in the BW System are requested by the source system but the language selection cannot be defined in the Scheduler.
    Check for more details:
    Re: Infopackage Language Selection
    Bye
    Dinesh

  • Issue withe Info Package Selection for the CRM Datasource

    Hello,
    I have a custom CRM data-source which has the Selection option as CRM-GUID as the Selection option in the RSA3.
    I have replicated the Same Data-source in BI system and Created the Info Package ,but i could not see that GUID Selection in the Info Package.
    To Be Noted:
    I went to RSA6 enabled the selection option( check Box ) , there is no hide option in the datasource , only the Selection option check box is enabled in the RSA6 .
    Replicated again , and activated again , logged out and logged in again . But the Info Package does not show the CRM - GUID selection option.
    I found something not sure this might be the issue:
    1) The Data type is RAW with length 16.
    2) The Datasource in the BI side has SS conversion Routine Blank for this field and the Selection has X.
    But no Selection option in the Info Package.
    Any suggestion and inputs are welcome.
    Thanks in advance.
    Adhvi.

    similar issue is disussed in the below thread...
    Info package Selection were hidden
    Info Package Selection Language key is not diplaying while this is checked
    search for any SAP Note which explains about data type RAW ....

  • 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

  • How to control data load in Info-Package using ABAP?

    Hello Gurus:
    I am trying to resolve couple of issues. 
    1.  I need to load data DAILY Full Load into a Planning cube.  I have the 0NETDUEDATE   for selection in the
         Info-package.  I am getting data from anothe base A/R cube.  I want to Load Daily ONLY those records
         for which the "0NETDUEDATE" is Greater than "System Date".  I think the logic would be IF 0NETDUEDAT
         .GT. SYS-DATUM, bruing the record. What should be the statement in 'Result' for keeping the record? 
         (I don't know ABAP, so need help here...!)
    2.  Similalry, before loading the data above, I want to delete all the existing records from Planning cube where
         0NETDUEDATE is GT System date (records loaded the previosu day need to be deleted as the amounts may
         have changed).  How can I achieve this selective deletion automatically  in PC??
    Appreciate your feedback very much.
    Thanks... SMaa

    Hi Shruti,
    1) If i understand your requirement correctly you need to load only data which has 0NETDATE greater then sydatum.
    So you can do this in infopackage .Infopackage>Data selection->0NETDATE(field)-->type(colum).here you can selecy ABAP type(6).Now you create ABAP code in this.
    Here in ABAP code you need to specify high and low range ,Also the relation character like GT or BT(between).
    i guess some how ur code will look like this
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
        InfoObject      = 0NETDUEDATE
        Fieldname       = NETDUEDATE
        data type       = NUMC
        length          = 0000010
        convexit        = PERI6
    form compute_NETDUEDATE
      tables l_t_range structure rssdlrange
      changing p_subrc like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
              l_idx = sy-tabix.
              l_t_range-low = sy-datum.
              l_t_range-option = 'GT'.
              modify l_t_range index l_idx.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.
    i am not sure about coding but you can surely do it it is like specifying the ranges dynamically(you need to try it out)
    (also as mentioned by others you can do this in traansformation routines)but infopackage routine you can directly write in PROD system.
    2) And regarding the Selective deletion you donu2019t have nay process type in Process chain which does this
    But there is function module u201C rsdri_infoprov_delete " which can be used to develop a program( I guess you must be having a existing ZProgram in ur system already available because this is used commonly.
    Other wise you need to develop a ZProgram for this.
    Thanks and Regards
    Arun

Maybe you are looking for

  • Uploading document in to SAP R/3 through Portal

    Hi, We are in SAP EP5 SP5. Our requirement is to upload a document from the user into SAP. Is there anyway we could do this. We just have Portal Platform, no KM and Unification. Is there any standard Iview from SAP EP which allows us to upload the do

  • How do i uninstall a twain driver in OS 10.5?

    How do i uninstall a twain driver in OS 10.5?

  • Checklist -can a link be added to the task?

    Checklist -can a link be added to the task? Question is we have a list created but need to link back to a service or more detailed instruction - can this be done in the checklist item?

  • Exporting Keynote to Quicktime - complete loss of sound

    Hey, I'm facing problems when it comes to exporting Keynote to Quicktime. For a tutorial, I recorded a Quicktime movie of my screen (including my voice as audio). This Quicktime movie is placed on a slide and runs during the whole presentation. I use

  • Firefox blocking resource request from localhost

    I am developing a site on my local machine using using tomcat and MySQL v5.5.24. Site works fine on Chrome, however firefox and IE are blocking javascript consistently for 20 secs on page onload. Every page on firefox from localhost minimum takes 20s