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.

Similar Messages

  • 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

  • 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

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

  • Report help for multiple Date Select options

    Hi Friends,
    For a particular year wise report, the client wants 12 date select-options which are changeable and informal every year .The report will also be displayed as per the given date selection period wise. Please help me how to fetch the datas from the table as per the given selection period. Currently the report have one date select-option where the user gives selection range as 1.04 to 31.03. It's related to EB power consumption report and hence the new requirement on date selection which are informal and not a fixed date of every year.
    Ex:Selection-Screen
    Period 1 : 08.04.2008 to 12.05.2008
    Period 2: 12.05.2008 to 20.06.2008
    Period 3: 21.06.2008 to 28.07.2008
    Period 4: 29.07.2008 to 15.08.2008
    Period 5: 15.08.2008 to 21.09.2008
    Period 6 : 21.09.2008 to 14.10.2008
    The data will derive as per the above selection ranges.......
    Please advise with example.
    thanks & regards
    Sankar.

    >
    sankar babu wrote:
    > Ex:Selection-Screen
    > Period 1 : 08.04.2008 to 12.05.2008
    > Period 2: 12.05.2008 to 20.06.2008
    > Period 3: 21.06.2008 to 28.07.2008
    > Period 4: 29.07.2008 to 15.08.2008
    > Period 5: 15.08.2008 to 21.09.2008
    > Period 6 : 21.09.2008 to 14.10.2008
    Hi,
    In this case just derive all records matching dates between 08.04.2008 (low in first select-options) and 14.10.2008(high in last select-options.
    Also my advice is to use a single select-options and prompt the user to give the dates as ranges in the multiple entries dialog which can be opened by clicking the button on the right side of the select-options.
    Regards
    Karthik D

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • Data transfer processes and info packages in new client

    Hi,
    We have created new client from the development client.
    The Info cubes and update rules are available in new client, bu the data transfer processes and info packages are not moved to the new client.
    What is the actual sequence of steps to be followed when new client created from development client. Have I missed some sequence or steps. What are the sequence of steps to be followed when created a new client.
    Kindly suggest to resolve this issue.
    thanks and regards
    Murugesan

    Hi,
    I have never seen clients created on the BI system. As such all the objects in the BI system are client independent as well as the data stored in the tables does not have the mandt field. Hence you cannot distinguish different clients in the BI system. Also if you notice all the request in BI are workbench request and not customizing requests.
    I do not think this is a viable solution. Maybe you can contact SAP.
    http://help.sap.com/saphelp_nw70/helpdata/en/b7/8a9a3aaf894871e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/a9/bb963a570b4b5de10000000a114084/frameset.htm
    Regards,
    Vikram

  • 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

  • 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

  • Data Selection option in Crosstab

    Hi Everyone, here is my problem for which I would appreciate if anyone can provide quick inputs.
    I have a Bex Query which has a characteristic and 6 key figues and using that as a Datasource in Design Studio need to display some measure values in chart and crosstab.
    While onload I will display the chart_1 which has a script written in Onstart up that to show only three measures. Used the below code for it:
    Chart_1.setDataSelection( {"keyfigure": ["keyfigure1", "keyfigure2", "keyfigure3"]});
    There is a radio button that will change the visible measure values in the chart. The radio button has options Month and Quarter.
    When Month is selected script Chart_1.setDataSelection( {"keyfigure": ["keyfigure1", "keyfigure2", "keyfigure3"]}); is used and
    When quarter is selected script Chart_1.setDataSelection( {"keyfigure": ["keyfigure4", "keyfigure5", "keyfigure6"]}); is used
    The first three keyfigures are showing Jan, Feb and March Net Sales. The Keyfigures 4 to 6 show Last three quarters net sales. The above code works fine for Charts.
    Now I was asked to have crosstab to be shown also. So we have a small icon which will make the components shift between chart and crosstab. In crosstab we do not have the function setDataSelection so I am not able to switch the columns in crosstab when user selects between Month and Quarter radio button.
    Instead the only way i can think of is two different data sources of the same Bex query and limit the columns in each query to show the three values only in the each crosstab and set the visibility option. I do not want to do this since I have 6 charts in my dashboard and doing this will have additional 12 data sources.
    Is there a good way of doing this.

    Hi Rajasekhar,
    Try this,
    DS_2.setFilter(
    "00O2TI1ITHWMS1R9TVL9AEMVC",['00O2TI1ITHWMS1R9TVL9AET6W','00O2TI1ITHWMS1R9TVL9AEZIG', '00O2TI1ITHWMS1R9TVL9AF5U0']);
    Thanks,
    Jaya

  • 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

  • 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

  • Data Selection option for Measures only?

    Hi All I have Data Source with 3 dimenstion and few measures.  I see that We can pick measures to dispaly,, but can i also pick dimenstion to show on horizonatal a-axis ? In screenshot below, I would like to pick one domension for chart A and pick 2nd dimension for chart B.

    It's clear, but the selection you are showing above is only to bind measures.
    Why not use a filter panel, dimension panel, etc. to filter?

Maybe you are looking for

  • How to use javascript for jsf containg t:htmlTags instead of panel grids

    Hi, i tried out validation in the following manner: function valid(form){ alert(" 1:Entered valid function "); var varCritical1=document.form["form:critical1"].checked; var varHigh1=document.form["form:high1"].checked; if (varHigh1&&varCritical1){ al

  • How is GC cpu utilization % calculated?

    I am trying to find a way to capture the problem where a user process eats up a ton of cpu for over 30 minutes. I thought that I could possibly use the cpu utilization metric. In testing it, I reset the values to warning and critical thresholds to 0

  • WebDynpro : BIApplicationFrame : Help needed

    Hello Experts, I need your urgent help. I have created a web template in Web Application Designer. In this template I have created a data provider which is based on a query. If I execute this query directly from WAD then it executes successfully. How

  • Error Starting XL Reporter - Unable to connect to SAP Business One DI API

    Hi Experts, I am getting the error message... Unable to connect to SAP Business One DI API [SAP Business One DI API] Internal error (-8006) occurred [131-183] ...when trying to start XL Reporter on one client PC.  Until today, it has been working OK.

  • The navigation toolbar is broken in firefox 4.0b6 for mac PPC. How to fix?

    I'm running an eMac G4 with system 10.5.8. The entire navigation toolbar on firefox 4.0b6 is "broken." The buttons are grayed out and will not function. Typing in an URL will not work either. In fact, nothing works. Is there a way to fix this or do I