Routine in DTP

Hello Experts,
I need your help in programming a routine in a dtp.
I have a DSO and want to load this data into a Cube. But I just want to load data if month of the first date (0bill_date) is not equal with the month of the second date (0serv_date).
Can anybody help me to create the coding?

some further questions :
- Do I need coding in global part?
- how to define "V_REC" ?
Actual Coding in start routine is as follows:
$$ begin of global - insert your declaration only below this line  -
... "insert your code here
$$ end of global - insert your declaration only before this line   -
    METHODS
      start_routine
        IMPORTING
          request                  type rsrequest
          datapackid               type rsdatapid
        EXPORTING
          monitor                  type rstr_ty_t_monitors
        CHANGING
          SOURCE_PACKAGE              type tyt_SC_1
        RAISING
          cx_rsrout_abort.
    METHODS
      inverse_start_routine
        IMPORTING
          i_th_fields_outbound         TYPE rstran_t_field_inv
          i_r_selset_outbound          TYPE REF TO cl_rsmds_set
          i_is_main_selection          TYPE rs_bool
          i_r_selset_outbound_complete TYPE REF TO cl_rsmds_set
          i_r_universe_inbound         TYPE REF TO cl_rsmds_universe
        CHANGING
          c_th_fields_inbound          TYPE rstran_t_field_inv
          c_r_selset_inbound           TYPE REF TO cl_rsmds_set
          c_exact                      TYPE rs_bool.
ENDCLASS.                    "routine DEFINITION
$$ begin of 2nd part global - insert your code only below this line  *
... "insert your code here
$$ end of 2nd part global - insert your code only before this line   *
      CLASS routine IMPLEMENTATION
CLASS lcl_transform IMPLEMENTATION.
      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
*--  fill table "MONITOR" with values of structure "MONITOR_REC"
*-   to make monitor entries
... "to cancel the update process
   raise exception type CX_RSROUT_ABORT.
loop at source_package assigning <source_fields>.
v_rec = sy-tabix.
if <source_fields>-bill_date EQ <source_fields>-serv_date.
delete source_package index v_rec.
endloop.
$$ end of routine - insert your code only before this line         -
  ENDMETHOD.                    "start_routine
I am really an abap noob. Sorry for those questions....

Similar Messages

  • Implementing routine in DTP to restrict value

    Hi ,
    I want to implement a routine in DTP to restrict value 'F' or 'f' which can appear anywhere in the number of a field.
    ex : "00000F389877" .
    As 'F' appears at the six position in the number, there can be a possibility of 'F'/'f' appearing at any position in the number.
    I went to the filter section of the DTP under extraction and tried to implement the logic but I need some help as to what exactly I should put there.
    I have included the table name as '/BIC/A....' and the high and low variables for the range .
    Any qucik help in this regard would be highly appreciated.
    Kindly also let me know if there is any alternate method to tackle this kind of problem.
    Regards,
    Amit

    Hello,
    Find below a sample code used in DTP filter to restrict date field:
    form compute_/BIC/ZDATE
      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 = '/BIC/ZDATE'.
              l_idx = sy-tabix.
    data: g_date(6) type n.
    data: g_date1 type d.
    CALL FUNCTION 'ZMONTH_CALC'
    Exporting
         MONTHS = -17
         OLDDATE = sy-datum
    Importing
         NEWDATE = g_date1.
    g_date = g_date1+0(6).
    clear g_date1.
    concatenate g_date '01' into g_date1.
    l_t_range-iobjnm = 'ZDATE'.
    l_t_range-FIELDNAME = '/BIC/ZDATE'.
    l_t_range-sign = 'I'.
    L_T_RANGE-OPTION = 'GE'.
    l_t_range-LOW = g_date1.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.
    But i feel what you want to achieve will be much more easier to achieve in start routine of the transformation.
    Here you just need to loop at result package, check for the record with the number containing F/f and delete the record.
    REgds,
    Shashank
    Edited by: Shashank Dighe on Feb 27, 2008 10:22 AM

  • Filter Routine in DTP

    Hi,
    I created a filter routine in DTP based on Calendar Month but the data selection didn't get filtered when I execute the DTP. Basically I just need to see current month's data. I am not familiar in writting the filter routine.
    Can someone share with me a sample of filter routine? Any document or manual will be very helpful.
    Thanks in advance.

    Hi,
      find the sample fileter i have used in my DTP. ( in this i have written code to see only Emloyee whoes names area'RAJ'.)
    Code:
        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.
    For your requirement you can do like this,
        data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = '/BI0/CALMONTH'.
              l_idx = sy-tabix.
          DATA DAT(2) TYPE C.
            DAT = sy-datum+4(2).        ** To find the current month.
              l_t_range-iobjnm = '/BI0/CALMONTH'.
              l_t_range-FIELDNAME = '/BI0/CALMONTH'.
              l_t_range-sign   = 'I'.
              L_T_RANGE-OPTION = 'EQ'.
              l_t_range-LOW = DAT .
    Hope this will be helpful
    rgrds,
    v.sen.
    Message was edited by:
            Senthilkumar Viswanathan

  • Routine in DTP to load data from previous fiscal period - current

    Hi Friends,
    I want to load data for previous & current fiscal period and I want to write a routine in DTP to automate this process, can any one help me with this routine!
    Thanks & Regards,
    vidiyala

    Hi Bilal,
    We cant create ABAP routine in DTP, instaed we can create in Info package.
    $$ begin of routine - insert your code only below this line -
    data : v_date like sy-datum.
    data : v_new_date like sy-datum.
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = ' '.
    l_idx = sy-tabix.
    v_date = sy-datum.
    l_t_range-low = v_date+0(6).
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
    *anzahl_jahre =
    anzahl_monate = 8
    *anzahl_tage =
    datum_ein = v_date
    IMPORTING
    datum_aus = v_new_date.
    l_s_range-sign = 'BT.
    l_s_range-opt = 'I'.
    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

  • Want create filter data  in using routine by DTP

    hi
    I  want create filter data  in using routine by DTP
    I want dowload data in my DSO, if the material exist in my infoobject 0material.
    But my code donu2019t worked:
    ===============================================================
    *&  Include           RSBC_SEL_ROUTINE_TPL
    program conversion_routine.
    Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    tables :   /BIC/MATERIAL.
    DATA:
      l_s_ztable   TYPE /BIC/MATERIAL,
      l_s_range  type rssdlrange.
    $$ end of global - insert your declaration only before this line   -
        Fieldname       = ZCOSTCTR
        data type       = CHAR
        length          = 000010
    form compute_ZCOSTCTR
      tables l_t_range structure rssdlrange
      using i_r_request type ref to IF_RSBK_REQUEST_ADMINTAB_VIEW
            i_fieldnm type RSFIELDNM
      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 = '/BIC/MATERIAL'.
      l_idx = sy-tabix.
      clear l_s_range.
      SELECT DISTINCT /BIC/ZCOSTCTR FROM /BIC/MATERIAL INTO l_s_ztable.
        l_s_range-iobjnm = '/BIC/MATERIAL'.
        l_s_range-fieldname = '/BIC/MATERIAL'.
        l_s_range-sign = 'I'.
        l_s_range-option = 'EQ'.
        l_s_range-low = l_s_ztable-/BIC/ZCOSTCTR.
       l_t_range-HIGH = l_s_ztable-/BIC/ZCOSTCTR.
        if l_idx <> 0.
          modify l_t_range index l_idx.
        else.
          append l_t_range.
        endif.
        p_subrc = 0.
      ENDSELECT.
    ==================================
    best regard
    francoise

    my code
    ===============================================================
    *& Include RSBC_SEL_ROUTINE_TPL
    program conversion_routine.
    Type pools used by conversion program
    type-pools: rsarc, rsarr, rssm.
    tables: rssdlrange.
    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line -
    TABLES: ...
    DATA: ...
    tables : /BIC/SMATERIAL.
    DATA:
    l_s_ztable TYPE /BIC/SMATERIAL,
    l_s_range type rssdlrange.
    $$ end of global - insert your declaration only before this line -
    Fieldname = MATERIAL
    data type = CHAR
    length = 000010
    form compute_MATERIAL
    tables l_t_range structure rssdlrange
    using i_r_request type ref to IF_RSBK_REQUEST_ADMINTAB_VIEW
    i_fieldnm type RSFIELDNM
    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 = '/BIC/MATERIAL'.
    l_idx = sy-tabix.
    clear l_s_range.
    SELECT DISTINCT MATERIAL FROM /BIC/SMATERIAL INTO l_s_ztable.
    l_s_range-iobjnm = '/BIC/SMATERIAL'.
    l_s_range-fieldname = '/BIC/SMATERIAL'.
    l_s_range-sign = 'I'.
    l_s_range-option = 'EQ'.
    l_s_range-low = l_s_ztable-/BIC/SMATERIAL.
    l_t_range-HIGH = l_s_ztable-/BIC/SMATERIAL.
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    ENDSELECT.

  • Customer Exit variable and Filter routine in DTP does not works?

    Hello Experts,
    Does anyone know what might be the possible reason - A customer exit variable working fine on the OLAP side does not work in a DTP??
    I have also tried to use the Filter routine, which does not give me the right results..I am trying to fetch a Fiscalyear period maintained in an infoObject as follows in my Filter routine..
    ata: sel_period like /BIC/PZPARAM-/BIC/ZPARAMVAL.
    DATA: zperiod type /BI0/OIFISCPER.
              SELECT SINGLE /BIC/ZPARAMVAL INTO sel_period
              FROM /BIC/PZPARAM
              WHERE /BIC/ZPARAM = 'ZPCA'
              AND objvers = 'A'.
              zperiod = sel_period.
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'FISCPER'.
              l_idx = sy-tabix.
              l_t_range-iobjnm = '0FISCPER'.
              l_t_range-fieldname = 'FISCPER'.
              l_t_range-sign = 'I'.
              l_t_range-option = 'EQ'.
              l_t_range-low = zperiod.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.
    Please let me know if I am making any mistakes above..
    Kind Regards,
    Kadriks

    Hi
    1.  CLEAR l_t_range-high. is missing in your code befor assigning values to l_t_range.
    2. use simple append l_t_range after the l_t_range asisgnments. remove below code :
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    3. I dont think you need to assign infoobject.
    4. Clear sel_period and zperiod is also missing
    Hence your code should be  :
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = 'FISCPER'.
    CLEAR l_t_range-high.
    l_idx = sy-tabix.
    l_t_range-fieldname = 'FISCPER'.
    l_t_range-sign = 'I'.
    l_t_range-option = 'EQ'.
    l_t_range-low = zperiod.
    append l_t_range .

  • 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

  • ABAP routine in DTP

    hi,
    I need some help withe ABAP routine in the DTP selection
    I have requirement to load the data for specific company codes on a specific days.
    If the current date is monday then it should pick Taiwan  or
    if the current date is Tuesday the it should pick Australia and Korea or
    if the current date is sunday then it should pick CHINA and Vietnam.
    I want to use only one DTP for this requirement. Please help me with the code for Info Object 0COMP_Code.
    Regards,
    Raghu

    hi,
    I have tried the code and it is not populating any value in the selection.
    Please check
    data: l_idx like sy-tabix.
    data: day like SCAL-INDICATOR.
    *Finding out the day
      clear day.
      CALL FUNCTION 'DATE_COMPUTE_DAY'
        EXPORTING
          DATE = sy-datum
        IMPORTING
          DAY  = day.
      read table l_t_range with key
           fieldname = 'COMP_CODE'.
      l_idx = sy-tabix.
    case day.
        when 1.                                 "Monday
          l_t_range-low = '0711'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
        when 2.                                 "Tuesday
          l_t_range-low = '0355'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
        when 3.                                 "Wednesday
         l_t_range-low = '0211'.
          l_t_range-high = ' '.
          l_t_range-option = 'EQ'.
          l_t_range-sign   = 'I'.
          modify l_t_range index l_idx.
       when 4.
       when 5.
       when 6.
       when 7.
         l_t_range-low = 'China'.
         l_t_range-high = ' '.
         l_t_range-option = 'EQ'.
         l_t_range-sign   = 'I'.
         modify l_t_range index l_idx.
    endcase.
    p_subrc = 0.

  • Urgent: Problems with filters with routines in DTP

    Hi All.
      I have this: ODS --> Transformation --> InfoCube
      I've created a "full" DTP which has a routine in the filters because I need to calculate the from-to date in a routine.
      The InfoObject in the ODS is: <b>0CREATEDON</b>
      It has no errors. I activate the DTP successfully but when I execute IT get que following errors:
    <b>3 - Incorrect initial value for characteristic 0CREATEDON in i_t_range (The description below)</b>
    <i>    Incorrect initial value for characteristic 0CREATEDON in i_t_range
        Message no. DBMAN889
        Diagnosis
        The specified characteristic is of type NUMC (number as character), DATS (date), or TIMS (time). The initial value of ' ' is incorrect for these data types.
        System Response
        The call is terminated.
        Procedure
        Use the correct initial value for the type in the selection condition</i>
    This routine has worked successfully in an InfoPackage
    Here is the routine code:
    form compute_CREATEDON
      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.
    *DATA: FECHA_L   LIKE SY-DATUM,
         FECHA_H   LIKE SY-DATUM.
    DATA: FECHA_L  TYPE D,
          FECHA_H  TYPE D.
          read table l_t_range with key
             fieldname = 'CREATEDON'.
          l_idx = sy-tabix.
          FECHA_L = '20050101'.
          FECHA_H = '20051231'.
          l_t_range-SIGN   = 'I'.
          l_t_range-OPTION = 'BT'.
          l_t_range-LOW    = FECHA_L.
          l_t_range-HIGH   = FECHA_H.
          if l_idx <> 0.
             modify l_t_range index l_idx.
          else.
             append l_t_range.
          endif.
          p_subrc = 0.
    I also tried with fieldname = '<b>0</b>CREATEDON' but I got the same error.
    Thanks in advance 4 your help

    Hi,
    Try replacing
    DATA: FECHA_L TYPE D,
    FECHA_H TYPE D.
    part of code with
    DATA: FECHA_L (8) TYPE C,
    FECHA_H(8) TYPE C.
    Hope this helps.
    Regards
    Rahul Bindroo

  • ABAP routine for DTP fiscal year/period filter

    Hi All,
    Delta loads are which not possible for when the transformation source is an InfoSet.  To limit the data in these loads, currently a filter is set in the DTPs on fiscal year/period so only load the current month and 2 prior months are loaded.  This filter has to be updated each month for each of the DTPs manually.  To eliminate this monthly task a dynamic filter (routine) needs should be used rather than a static filter. Can anybody help me in providing the logic
    Regards
    Siri

    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = give field name .
         Data : Year(4) type n,
                   period1(2) type n.
                   period2(2)type n.
    Currper = sy-datum+4(2) .
    period1 = currper-1 .
    period2 = currper-2.
    year = sy-datum+0(4).
    concatenate  year currper to P1.
    concatenate  year period1 to P2. // define P1 , P2 , P3 as 0fiscper .
    concatenate  year period2 to P3.
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    l_t_range-low =  P3.
    l_t_range-high=  P1.

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

  • Routine in DTP. Selection conditions not visible

    Hello,
    I am under BW7.0
    I am filtering data with a routine in a DTP. The routine is reading a custom table that user maintain. It contains a date range.
    This works, the correct data is selected.
    My problem is that in the request the 'Selection Conditions' field is empty and consequently, I cannot delete in the cube the same selections.
    This was working under BW3.5..
    Many Thanks,
    Alex-

    Hello,
    Here is the code. It is working as I expect. And debugging gives me the correct start and end date. But this is not reflected in the request 'Selection conditions'.
    TYPES:
    BEGIN OF BCSZP_TYPE,
    JJJJPER TYPE ZCBCSZP-ZEITPUNKT,
    RELEV   TYPE ZCBCSZP-RELEVANT,
    END OF BCSZP_TYPE.
    DATA: BCSZP_TAB TYPE STANDARD TABLE OF BCSZP_TYPE,
          BCSZP_WA TYPE BCSZP_TYPE,
          start_date type sy-datum,
          end_date type sy-datum.
      SELECT ZEITPUNKT
             RELEVANT
        FROM ZCBCSZP
        INTO TABLE BCSZP_TAB
       WHERE ZEITPUNKT <> ''.
      READ TABLE BCSZP_TAB INTO BCSZP_WA
      WITH KEY RELEV = 'X'.
      CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
        EXPORTING
          I_GJAHR        = BCSZP_WA-JJJJPER(4)
          I_PERIV        = 'K6'
          I_POPER        = BCSZP_WA-JJJJPER+4(3)
        IMPORTING
          E_DATE         = start_date
        EXCEPTIONS
          INPUT_FALSE    = 1
          T009_NOTFOUND  = 2
          T009B_NOTFOUND = 3
          OTHERS         = 4.
      CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
        EXPORTING
          I_GJAHR        = BCSZP_WA-JJJJPER(4)
          I_PERIV        = 'K6'
          I_POPER        = BCSZP_WA-JJJJPER+4(3)
        IMPORTING
          E_DATE         = end_date
        EXCEPTIONS
          INPUT_FALSE    = 1
          T009_NOTFOUND  = 2
          T009B_NOTFOUND = 3
          OTHERS         = 4.
      read table l_t_range with key
           fieldname = 'FKDAT'.
      l_idx = sy-tabix.
      l_t_range-sign = 'I'.
      l_t_range-option = 'BT'.
      l_t_range-low = start_date.
      l_t_range-high = end_date.
      if l_idx <> 0.
        modify l_t_range index l_idx.
      else.
        append l_t_range.
      endif.
      p_subrc = 0.

  • End Routine in virtual infoprovider based on DTP

    Hi gurus!!
    I'm facing the following problem. I need to have a Virtual Provider based on DTP based on a DataSource from a view of a table. But I want to do a end routine in the transformation rules. When I use the end routine, my filters don't work (always give al the information). If I don't use the end Routine (or start Routine) I can do filters work perfect.
    Any suggestions for this problems.
    Thanks a lot!
    Gorka Ibor.

    hi
    initially try to debug the rotines
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0038ad7-a0c7-2c10-cdbc-dd674682c8e7?QuickLink=index&overridelayout=true
    if you havent found any bug then
    check the links will help you
    Can I call values entered in DTP filter in transformation End Routine??
    Routines in DTP filters

  • Possible to have Two or more targets in a single DTP request??

    Hi,
    I had actually two data targets (Info cubes )  to be filled by same source ( i.e DSO )
    When i want to update the DSO data to the two targets using DTP,i did not find any option which will enable me to have two data tagets included for the update inside a single DTP--
    Do i need to create two DTPs for the same- or is there any option by which i can update to two targets using single DTP juts like we used to do in Infopackages-?
    Raj

    Hi,
    DTP is source and target specific and thats why the delta is possible based on request ID's and deletion of request from one target will have no affect on other.
    So if you want to to combine it then very concept will go wrong and I think it is not possible..
    But may be some way to trick this as well through routine in DTP to populate the tables.....but may not create a request in the target.
    So you will have to create two DTP's to keep things simple.
    Thanks
    Ajeet

  • DTP Filters Identification

    Hello,
    In a DTP process I need to select some records with these conditions:
    If a Posting Date Range is entered in the DTPu2019s Filter Window then the process will be the standard, all records will be filtered using the entered date and moved to some other place.
    If a Posting Date Range is NOT entered, then and ABAB routine will calculate the previous month and all records filtered will be those of the last month and then moved to some other place.
    I will create an ABAP routine in DTPs-Posting Date, but how to know if the Date is entered manually or not?
    I need to control both things in the same DTP-ABAP routine, if Posting Date is entered then Normal Process, else Previous Month is calculated.
    System: BI 7.01
    Thanks in advance.

    hello,
    filters are like selections in your Info Package.
    You can restrict the data that goes into your target by setting values in the filter.
    e.g you can set fiscal year as 2008.Then data will get loaded to your target only for year 2008.
    You can define routines in your filter to dynamically pass values based on some conditions.
    Regards,
    Dhanya.

Maybe you are looking for

  • EnumServicesStatusEx failing with ERROR_INVALID_DATA

    Hi all, After accidentally creating a service with a display name and service name of "-1", EnumServicesStatusExW() begins to fail in an unexpected, undocumented manner. MSDN states the buffer size required can be queried by passing NULL for lpServic

  • Why does my Photos application show all of my pictures as blurry?

    The built in Photos app just recently started to display every one of my photos as blurry. Why does it do this? I have tried closing out all other applications, restarted the Ipad itself, and then opened the Photos app again. However, the pictures st

  • How can I turn off privacy settings in safari

    How can I turn off privacy settings in safari?

  • CS4 not supported on PowerPC G5...

    In spite of the specifications indicated here: http://helpx.adobe.com/creative-suite/kb/system-requirements-cs4-point-products.html#main_ MacintoshSystemReqs, my attempt to use InDesign CS4 installed with CS4 Design displayed the ever popular: "Not s

  • Haunted keywords in 1.5

    I have been spending some time looking into the new (strange) behavior of keywords in 1.5. There are a lot of changes under the hood that are only hinted at in Apple's documentation. See the explanation on my blog here: http://homepage.mac.com/bagelt