DTP Filter Variable

Hi All,
We would like regionalize the data loads based on Region. Extracting data from CRM Source.
We have maintained Region Values in (Variable table) SM30, created three Variables for three regions and maintained Region values correspondingly.
   (ZREGION1) America - 5000001, 5003302, 5000402, 5000902, 5000802
   (ZREGION2) Emea - 5000002......       
   (ZREGION3) Apac - 5000003......       
written CMOD code for the above three Variables.
Created variable with customer exit in Bex for the object Region.
but while using variable (ZREGION1 - America) in DTP, i could see all the regions getting  updated.
Could you please let me know DTP variable works only for time chars or any Char selections.
Regards,
Ashok

iDTP filfer will work for all the characteristics....
i hope OLAP varaibles doesnt work in DTP...but am sure OLAP varaible works in Infopackage.
Next option would be : copy entire logic from CMOD and place it so it appends to the L_T_RANGE table

Similar Messages

  • How to Create DTP Filter Variable?

    Hi experts!
    I noticed that in filter screen of Data Transfer Process it's possible to choose as filter besides a routine a variable too.
    But how and where I have to define this variable?
    Thanks a lot.
    Angelo

    Hi,
    If necessary, we determine filter criteria for the delta transfer. To do this, choose  Filter.
    This means that you can use multiple data transfer processes with disjunctive selection conditions to efficiently transfer small sets of data from a source into one or more targets, instead of transferring large volumes of data. You can specify individual selections, multiple selections, intervals, selections based on variables, or routines. To change the list of InfoObjects that can be selected, choose Change Selection.
    The  icon next to pushbutton  Filter indicates that predefined selections exist for the data transfer process. The quick info text for this icon displays the selections as a character string.
    Hope this helps u..
    Best Regards,
    VVenkat...

  • Read current DTP filter value in Transformation via ABAP

    Hi guys!
    Here's the case.
    In DTP filter there is an OLAP variable, which value depends a lot on where the DTP was started from and what starting parameters are.
    We need to read the value of this variable in order to write some ABAP routines in Transformation.
    How can we read the current value of our OLAP variable?
    Thanks a lot for you help!

    Hi Vadim,
    I think this is what you are looking for...
    [/people/shlomi.weiss2/blog/2010/11/10/how-to-get-selection-criteria-in-transformations-routines|/people/shlomi.weiss2/blog/2010/11/10/how-to-get-selection-criteria-in-transformations-routines]
    Hope it helps...
    Regards, Federico

  • Abap Routine in DTP Filter with selection in a table

    Hi guys,
    I need help please.
    I'm trying include a abap routine in a DTP filter, for this case I need to make a select in a dso table and return a list of criterias.
    Example: for this characteristic 0GL_ACCOUNT i need in a fiter 20 or more 0GL_ACCOUNT of table  "/BIC/DSO_XXX".
    How can I select more than one 0GL_ACCOUNT in a tranparency table  "/BIC/DSO_XXX"... and put in a DTP Fiter.
    DTP FILTER ROUTINE.
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'GL ACCOUNT'.
              l_idx = sy-tabix.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.

    Try this:
    DATA: lv_rows TYPE n LENGTH 10,
            it_zbw_pl_proj LIKE STANDARD TABLE OF /BIC/DSO_XXX 
            lw_zbw_pl_proj LIKE LINE OF it_zbw_pl_proj .
      SELECT COUNT(*) INTO lv_rows FROM  /BIC/DSO_XXX Where <your condition> .
    SELECT * INTO TABLE it_zbw_pl_proj FROM zbw_pl_proj where <your condition>
      IF lv_rows <> 0.
        LOOP AT it_zbw_pl_proj INTO lw_zbw_pl_proj  .
          l_t_range-iobjnm = '/BI0/GL_ACCOUNT'.
          l_t_range-fieldname = 'GL_ACCOUNT'.
          l_t_range-sign = 'I'.
          l_t_range-option = 'BT'.
          l_t_range-low = lw_zbw_pl_proj-GL_ACCOUNT.
          l_t_range-high = lw_zbw_pl_proj-GL_ACCOUNT.
          APPEND l_t_range.
        ENDLOOP.
      ELSE.
        " No data found for Current Forecast Version.
        p_subrc = 4.
      ENDIF.
    I just copied this data from a DTP routine where i am fetching Versions from a DB table zbw_pl_proj. You may need to change the naming convention and performance tune the code ( like defining internal table only to hold GL_account and then only selecting GL_Account from ODS).
    Hope this helps!
    Regards
    Amandeep Sharma
    Edited by: AmanSharma123 on Jul 14, 2011 2:42 PM

  • How to exculde a material in DTP Filter

    Hi experts,
    How to exculde a material in DTP filter. Exclude from selection is not working in DTP. please help me in solving the issue.
    Regards,
    Pradeep

    Hi,
    chk the following thread,it has the same issue as yours...
    DTP filter: Exclusion
    Sriram

  • Help requeried in populating DTP filter through ABAP routine.

    Hi experts,
    I have written the following routine in my DTP filter.
    While debugging , the values are getting populated fine , but selections are not getting pupulated in the DTP. Thus, filter is not working.
              DATA: l_idx like sy-tabix ,
              w_dt(2) type n ,
          *Previous month
              w_pvmon(2) type n,
    Current month
              w_mon(2) type n,
    Year
              w_yr(4) type n,
    Start date of previous month and Start date of current month
              w_sdt1 LIKE sy-datum ,
              w_sdt2 LIKE sy-datum.
      Read table l_t_range with key
           fieldname = '/BIC/ZUPDDATE'.
      l_idx = sy-tabix.
      w_dt = sy-datum+6(2).
      w_mon = sy-datum+4(2) .
      w_yr = sy-datum+0(4).
    ****If first week of the month then start date = first day of previous
    *month
      If w_dt <= 07.
        IF w_mon = 01 .
          w_pvmon = 12.
          w_yr = w_yr - 1.
        else.
          w_pvmon = w_mon - 1.
        ENDIF.
        CONCATENATE w_yr w_pvmon '01' into w_sdt1.
        l_t_range-iobjnm = '/BIC/ZUPDDATE'.
        l_t_range-sign = 'I'.
        l_t_range-option = 'EQ'.
        l_t_range-fieldname = '/BIC/OIZUPDDATE'.
        l_t_range-low = w_sdt1.
        l_t_range-high = sy-datum.
        append l_t_range.
      else .
    After first week of the month ,  start date = first day of current
    *month
        CONCATENATE w_yr w_mon '01' into w_sdt2.
        l_t_range-iobjnm = '/BIC/ZUPDDATE'.
        l_t_range-sign = 'I'.
        l_t_range-option = 'EQ'.
        l_t_range-fieldname = '/BIC/OIZUPDDATE'.
        l_t_range-low = w_sdt2.
        l_t_range-high = sy-datum.
       " modify l_t_range index l_idx.
       append l_t_range.
        p_subrc = 0.
    endif.
    clear:w_dt ,w_pvmon ,w_mon ,w_sdt1,w_sdt2 ,w_yr.
    I have tried different fieldname values as well.
    Please share your inputs.
    Regards,
    Taru
    Edited by: Taru Dhawan on Feb 23, 2012 12:59 PM

    Hi
    What Alexandre said is right
    fieldname must be '/BIC/ZUPDDATE'
    and the iobjnm must be  'ZUPDDATE'.
    This should work.
    If no, just try
    fieldname = 'ZUPDDATE'.
    and iobjnm = '/BIC/ZUPDDATE'
    One of this will definitely work.
    Regards,
    Joe

  • Where Is Table That Contains DTP Filter Entries?

    Hi,
    I am trying to find the table where my "Filter" entries for a DTP are contained.  I would like to use these entries in my start routine.  In the old 3.5, the table was RSSELDONE, but I can't seem to find the NW04S version of this table. 
    Thanks for your help.

    P-Dub:
    To date I have not found a table that specifically contains the DTP filter entries.  If you are looking for a way to access this information from a transformation though, you may reference following logic:
    create an internal table (itab) of type RSBK_S_RANGE in the local portion of a start routine.
    fill the internal table (itab) as follows:
    itab[] = p_r_request->GET_TH_RANGE( ).
    The selection criteria of the DTP will then be available within your transformation in the internal table itab.
    All DTP attributes at run time can be accessed in this way.  For a list of the methods available, look at the interface if_rsbk_request_admintab_view, know as p_r_request in the start routine.
    ==============Start Routine CODE Example - BEGIN==============
          Method start_routine
          Calculation of source package via start routine
      <-> source package
      METHOD start_routine.
    *=== Segments ===
        FIELD-SYMBOLS:
          <SOURCE_FIELDS>    TYPE tys_SC_1.
        DATA:
          MONITOR_REC     TYPE rstmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    DATA:  i_dtpfilter type standard table of RSBK_S_RANGE
           initial size 0.
    break CONTDG.
    i_dtpfilter[] = p_r_request->GET_TH_RANGE( ).
    ==============Start Routine CODE Example - END=================
    Good luck,
    The Dude

  • DTP Filter to exlclude Blank Materials

    Hi, I have a Direct (no psa) Flat File Data Load via DTP into my InfoCube.  Now I want to filter out any records with Blank Materials.  When I go to set the filter in the DTP it seems it only allows me to INCLUDE selections and not EXCLUDE selections.
    Any ideas how I can EXCLUDE Blank Materials from my Direct Flat File Load using the DTP?  Or any other ideas?
    Thanks!

    hello,
    In the DTP filter, you have the option of writing a routine to perfom some logic...
    u can try to exclude some materialks there..
    for the sample code check:
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = '/BIC/ZEMPNAME'.
    l_idx = sy-tabix.
    l_t_range-iobjnm = 'ZEMPNAME'.
    l_t_range-FIELDNAME = '/BIC/ZEMPNAME'.
    l_t_range-sign = 'I'.
    L_T_RANGE-OPTION = 'EQ'.
    l_t_range-LOW = 'RAJ'.
    l_t_range-HIGH = 'RAJ'.
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    Reagrds,
    Dhanya

  • Table to Find the DTP Filter Values

    Hi All,
    Can anyone help me by providing  the details about where we can find DTP Filter values?
    We checked RSBKDTP and it dint help.
    Regards
    Ramesh

    Hi,
    RSSELDTP is a transparent table ....when i checked in devleopment it is present
    and in production when i checked it is not present......
    I dont why it happened it may be similar case with u too ....
    But this table in development gives selection conditions...
    Regards
    Vamsi

  • ABAP Routine Variable in DTP filter

    Helllo,
    I am trying to create a routine in the Filter of DTP, so that I can only pass records that are between sy-datum and 12/31/9999 date range. In the filter are of DTP I created ABAP routine with this code:
    form compute_HE_SPCEND
      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.
              read table l_t_range with key
                   fieldname = 'HE_SPCEND'.
              l_idx = sy-tabix.
              data: v_day type dats.
              v_day = sy-datum.
              l_t_range-sign = 'I'.
              l_t_range-option = 'BT'.
              l_t_range-low = v_day.
              l_t_range-high = '99991231'.
                modify l_t_range index l_idx.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.
    However, when I execute the DTP I get an ABAP dump TABLE_INVALID_INDEX. Do you see anything wrong with the code?
    Thank you
    Edited by: AG on Jul 10, 2009 2:31 PM

    Thanks Mr V.
    I added that part of code. So now my code looks like this:
    form compute_HE_SPCEND
      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.
              read table l_t_range with key
                   fieldname = 'HE_SPCEND'.
              l_idx = sy-tabix.
              data: v_day type datum.
              v_day = sy-datum.
              l_t_range-sign = 'I'.
              l_t_range-option = 'BT'.
              l_t_range-low = v_day.
              l_t_range-high = '99991231'.
             if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.
    I do not get the ABAP dump anymore, but I still have the problem. When I run the DTP, It gets errors. In a log it says that it cannot determine the value:
    @5C@     Incorrect initial value for characteristic 0HE_SPCEND in i_t_range     @35@
    @5C@     Error while extracting from source ZHE_O03 (type DataStore)     @35@
    @5C@     Package 1 / 07/10/2009 14:43:41 / Status 'Processed with Errors'     @35@
    Am I missing something? Looks like the values still do not get assigned to the field in the filter through my routine.
    Thanks

  • Adhoc DTP filter

    Hi all,
    I have searched the forum and cannot find a straight answer to this so decided to post the question.
    In BW 3.5 to copy a request in a cube to another cube, I would create an AdHoc InfoPackage and put in the specific calendar day used to select a request and it would copy over no problem providing the transfer rules etc were all set up.
    We have now upgraded to BI 7.0 and to copy from one cube to another I have to create the transfer rules, and a DTP.
    However, the filter on the DTP doesn't seem to be variable.
    The reaosn for needing this, we may get a call to copy a certain calday to an archive cube as it gets deleted from the original cube after two weeks.
    Does anyone know of a way of achieving this, points will be awarded with gratitude.
    Thanks,
    Shane.

    HI Shane ,
    you can still use the transfer rules and infopackage(3.x dataflow) to load the cube even in BI 7.0
    But if you want to have a 7.0 flow , then create a transformation( not transfer rules) and a DTP to load the
    target cube , you will have all the similar options in the filter of DTP ,
    What is the dificulty you are facing in the filter of a DTP , Please let me know
    Regards,
    Sathya

  • Incorrect initial value for char 0FISCYEAR in i_t_range in DTP filter prog

    Gurus
    I need your help , I have searched all the threads but could not find anything which can help me resolve this issue.
    I have a filter in DTP as a routine to get the year from system date.
    The program is correct for syntex but when I trigger the DTP I am getting the following message , not sure what needs to be added to my programe.
    Incorrect initial value for characteristic 0FISCYEAR in i_t_range
    Message no. DBMAN889
    appreciate any help I can get to reoslve this ASAP.
    Thanks in advance

    Hi
    Pleae check if you have initialised with a NULL value . "blank/null" is indeed not a valid characteristic value for fiscal period. Fisc.per is of type NUMC which means all characters have to be numerical. The initial value should be "0000000" .
    Thanks,
    Rajesh.
    Please provide points to answers if you find them helpful

  • Filter (variable) applied at analytical view is not reflected in Caculation view.

    Hello All,
    I am new to hana and would like to discuss one issue here.
    Model is something like this:
    Calculation  view  ---- >   has one Analytical View  --->  has one attribute view and a fact table.
    Now, in analytical view I have applied a filter using a variable on dimension attribute ( column of attribute view). When I do data preview on  analytical view I get a prompt (asking single value to put in - mandatory). However when I do a data preview for calculation view (which involves analytical view created earlier) ...I don't get a prompt this time.
    Calculation view is a 2 level only [ semantic --> projection/aggregation(analytical view) ].
    Please assist with it.
    Thanks
    Sumit

    Thanks for your reply Ravi.
    It seems like this approach is applicable for "Input Parameters" only and not for "Variable" ?
    I created a variable & an Input parameter in Analytical view, and created same variable & input parameter in calculation view...and then clicked on "Input parameter managed mapping" button under section "Variables/Input parameters" of semantics. I could see only Input parameters listed on both sides not the variables.
    1. I am curious now to understand ...when it is recommended that the data needs to be filtered out at the lowest level...however we still need to define parameters at calculation level ?
    2. The prompt based filters applied at analytical view is getting reflected in calculation view when it(calculation view) is refreshed for data preview ?
    3. Is it possible to expose analytical or attribute view directly into the business objects universe ?
    Yours, and other member's reply on it will be appreciated.
    Thanks
    Sumit

  • BICS - Passing Mandatory Filter Variable value to a BEx Query

    Hi All,
    I have similar problem as the below URL.
    BICS - Passing variables to a BEx Query
    Details:
    I have a mandatory filter - Display Currency in BEx query. I'm trying to input this mandatory filter from Xcelsius, (by mapping the filter value to a cell in Xcelsius spreadsheet).
    However, when I lauch the dashvoard in IE page, it still throws an error:
    " One or more mandatory varaibles of the query... are not filled"
    Does anyone face this issue?
    Regards,
    AK

    Hi Sriram,
    I assume you are using SAP direct connectivity.
    >> Yes, it is direct connectivity to SAP-BW.
         (And I'm publishing this dashboard in SAP-BW system itself.)
    1. What are all the Variables you get in intial variable screen?
    because if you have a Mandatory variable in your Bex query, a intial variable screen will appear with all the variables.
    >> I'm testing the underlying BEx query, it has one mandatory variable for "Display Currency". Other are optional variable-filters, so other filters are not a problem.
    2. when you get this error "One or more mandatory varaibles of the query... are not filled", just after the Launch or after the variable screen?
    >> I use the option in Xcelsius: SAP --> Launch -->  a new IE page opens, then I get this error
    3. However you can bye pass this screen only when you give default values to your mandatory variables.
    >> When I use personalization in BEx side, to input default value (e.g: USD), and then run this standard content dashboard, the hangs.(Do not see anything on IE page for long time. Though the data is very less-Few hundres rows)
    So, I'm looking at passing the value from Xcelsius-spreadsheet, however, the dashboard is not picking up the value from the mapped-cell.
    Hope this gives more clarity on the problem.
    Cheers,
    AK
    Edited by: Anil Kumar2981 on Jun 16, 2011 12:12 AM

  • DTP  filter routine is not working

    Dear gurus
    I am working with BI 7  and I have created following filter'routine in the DTP.
    But the routine is not filtering.
    The statement :  read table l_t_range with key
                               fieldname = 'CLEAR_DATE'.
    is not working. sy-tabix = 0
    Fieldname is really CLEAR_DATE
    Please can you tell me what is wrong in the routine
    data: l_idx       like sy-tabix,
            w_date      like sy-datum,
            w_date_low  like sy-datum,
            w_date_high like sy-datum.
      read table l_t_range with key
           fieldname = 'CLEAR_DATE'.
      l_idx = sy-tabix.
    w_date = '20090705'.*
      w_date = sy-datum.
        w_date+6(2) = '01'.
        w_date_high = w_date - 1.
        w_date_low  = w_date_high.
        w_date_low+6(2) = '01'.
        l_t_range-low  = w_date_low.
        l_t_range-high = w_date_high.
        l_t_range-sign = 'I'.
        l_t_range-option = 'BT'.
        modify l_t_range index l_idx.
      p_subrc = 0.
    Edited by: Firmin Kouassi on Nov 3, 2009 12:04 PM
    Edited by: Firmin Kouassi on Nov 3, 2009 12:05 PM

    Try adding the following:
    l_t_range-fieldname = 'CLEAR_DATE'.
    to your code:
    l_t_range-low = w_date_low.
    l_t_range-high = w_date_high.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    And at the end append/modify like this:
    if l_idx NE 0.
        modify l_t_range index l_idx.
      else.
        append l_t_range.
      endif.
      p_subrc = 0.

Maybe you are looking for

  • Is synchronous scenario possible with JDBC & JMS adapter?

    Suppose,JDBC adapter is updating a table or deleting some entry from a table.Can we have an acknowledgement back that the work has been done successfully?? same qstn for JMS adapter also.. Suppose JMS adptr is communicating with any messaging system,

  • MSI H55m-E21 OC issues

    Hey guys, recently purchased a MSI H55M-E21 mobo. Got everything setup and I am having a few issues with the BIOS. First, RAM is not listed at 1600Mhz which was listed on the site as being supported while OC. Most of the settings for this option have

  • SB Audigy RX EMU Engine Parameters not as good as SB Live!

    I have just migrated from an XP system with a SB Live! card (Model CT4870), to a Windows 8.1 Pro 64-bit PC with a SB Audigy RX card. I am very pleased with how it's working out because I really thought I had lost the EMU chip's lush sounds, especiall

  • 'Other' storage taking over my iPod Nano

    I use my ipod Nano (4th gen) primarily for mp3 files, but have a few videos. I have no pictures on it, but I just checked in iTunes and it says I have 2.1 GB of Photos and a whopping 7.3 GB of my total 15 GB registering as 'Other' - how can I get rid

  • Why does "Notes" renumber my list from 1 to 20 into a list from 21 to 40 for no apparent reason?

    Afterwards I went to "edit" >> "undo insert list" but selecting this two, three, even four times did not resolve the problem.  I am now forced to use a Word Document for making lists.