DTP Filter

Hello,
I've extracted data with same selections at different times into the psa.
Now I want to transfer only data from a single request. 
Is it possible to use selections like "loading date", "loading time" or "request sid" in a DTP?
Best regards
Michael

Hi Michael,
In the mean time it is 2 years and several support packages later. Now I am also having the same question as you.
Did you think of an alternate solution?
My question was based on an extraction where the latest extraction could give incorrect data and you want to get back to an earlier extraction. The only field which defines an earlier extraction unique is the request ID.
Regards,
Eelco

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

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

  • What are the tables that Contains DTP Filter Entries

    Hello,
    for the filter entries on a DTP Process I found the table RSBKSELECT "Selections for DTP Request (Summary)". But that holds only value which are done generic by Formula etc. but not the information which are entered manual.
    Does anybody knows the table for the rest of entries ??
    I need this Information to Report these Filter as Selectioncriteria.
    Thank for any help
    Henning

    Hi,
    Please note that I was able to link the tables by this kind of code:
    "Get the request from the cube, to identify them.
        CALL FUNCTION 'RSSM_ICUBE_REQUESTS_GET'
          EXPORTING
            i_infocube     = LV_IC
          IMPORTING
            e_t_request    = LT_REQUEST
          EXCEPTIONS
            wrong_infocube = 1
            internal_error = 2
            others         = 3.
    "Check each request
        LOOP AT LT_REQUEST INTO LS_REQUEST.
          "Populate LV_REQUID_CHAR to be able to read the table RSBKSELECT
          "The key is : Request id, without leading 0, right justified, and shifted one time to the left.
          LV_REQUID_CHAR = LS_REQUEST-PARTNR.
          SHIFT LV_REQUID_CHAR LEFT DELETING LEADING '0'.
          SHIFT LV_REQUID_CHAR RIGHT DELETING TRAILING SPACE.
          SHIFT LV_REQUID_CHAR LEFT.
          "Get the filters
          SELECT  *
            INTO TABLE LT_RSBKSELECT
            FROM RSBKSELECT
            WHERE REQUID = LV_REQUID_CHAR.
    ENDLOOP.
    The internal table LT_RSBKSELECT will now contains all the filters used by the DTP.
    It is way better than using the field that contains the concatenation of all filters since it is limited to 255 characters.
    Hope it helps.

  • DTP filter: Exclusion

    Hi Friends,
    I'm using DTP level filter for excluding 4 materials. At select single values tab, i excluded one material by using option not equal (symbol Is equal to stirke off ). If i try it for next material for exclusion its says:  Excluding two values can lead to an incorrect selection .  I try to use the Exclude from selection, but it is in diabled mode. So how i can exclude mulitple single values.
    Regards,
    RP

    Hi Gupta,
    Moving data from base cube to planning cube via DTP. Before data gets updated into planning cube i'm excluding few materials. Later planning applicatoin(planning folder) runs on this planning cube. I'm not reporting on planning cube. Now i don't want to show the excluded materials in planning folder.
    Checked both SNotes given by BEEKAY.
    regds,
    RP
    Edited by: Kumar RP on Jul 14, 2008 3:34 PM

  • 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

  • Routine in DTP Filter

    HI Gurus,
    We have two Cubes, Cube A and Cube B. Take 'X' as current Month (Ex: X = October 2010). Once in every month, the Cube A will load data from X-13 (if X is October 2010 then X-13 = September 2009) to X-2 (if X is October 2010 then X-2 = August 2010).
    Before the above step i need to do this.  In the DTP, i want to write a routine in filters Field: 0CALMONTH that X-14 (if X is October 2010 then X-14 = August 2009) data should be moved from Cube A to Cube B.
    Please provide me the code for routine to be added in DTP for above logic.
    Thanks & REgards,
    Balaji.S

    You can use the following logic. Suppose X as 201010 oct 2010
    Period = sy-datum+4(2) // This comes as 10
    year = sy-datum+0(4) // this comes as 2010.
    Now 14 months back would mean year = last year and month = current month -2 //  that is aug 2009
    so year1 = year-1 .
    period1 = period -2
    concatenate year1 period1 into l_t_range-low .
    You need to write for special cases Jan and feb . in that case month cant be obtained by subtracting 2 , you can give fix value for these .
    if period = 01 .
    period1 = 11 // nov
    if period = 02
    period1 = 12 // dec
    hope this helps.

  • 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

Maybe you are looking for

  • Operations manager failed to run a wmi query for wmi events (0x800706ba)

    Hi everyone, I've been working on this issue for a while and I am still no closer to finding out what the problem is.  If anybody can offer any other advice or things to check, I'm all ears. I'm running SCOM 2012 R2 with UR2, and the Cluster Manageme

  • How do I install snow Leopard?

    Greetings, I had downloaded snow leopard to my Macbook and in order to install it, I need a cd, but I looked up alternatives and they said i can partition my hard drive. Im currently running 10.5.7 and whenever i try to partition my MAcintosh HD it a

  • 9780 and Playbook bluetooth connection problem

    I have never experienced bluetooth connecting problems between my 9780 and Playbook 64 previously ... but for last few days I cannot connect them. I have deleted both devices and re-paired successfully. I have turned both fully off (removed 9780 batt

  • Accessing database via OID username and password

    I've have 2 servers, one with the following software: --- SERVER #1 --- * Oracle database v9.2.0.1 * Management Server * OID --- SERVER #2 --- and the other database server with: * Oracle database v9.2.0.1 * and the database that it is registered (vi

  • Org Reassignment and quotas

    Hi Can someone please let me know how the delimitation of quotas are handled when an employee changes employee sub groups and has different quotas amounts to accrue.  I know the quotas need to be delimited - but how can you automate this - via a dyna