Infopackage filter

Can I create an info package which loads just blank values for a selection field.
Scenario
1. Create 6 info packages using field 1 as filter
2. On 7th info package I want to select the records which have a null value for field 1
Thanks

Hi,
See the following code , this is for date field, so in the same way you also write code for your requirement.
*$*$ begin of routine - insert your code only below this line        *-*
data: l_idx like sy-tabix,
      dat1 like sy-datum,
      dat2 like sy-datum.
      dat1 = sy-datum.
      dat2 = dat1.
          read table l_t_range with key
               fieldname = 'CALDAY'.
          l_idx = sy-tabix.
IF SY-SUBRC  = 0.
    l_t_range-option = 'BT'.
    l_t_range-sign  = 'I'.
    l_t_range-low   = dat2.
    l_t_range-high  = dat2.
    modify l_t_range index l_idx.
endif.
    p_subrc = 0.
*$*$ end of routine - insert your code only before this line         *-*
Thanks
Reddy

Similar Messages

  • Appended field in the datasource as selection in infopackage

    Hi,
    I have appended a field in my datasource, say for example, country (ZZCOUNTRY). I set ZZCOUNTRY as selection in the datasource so i can filter by country in my infopackage.  When i check my datasource, ZZCOUNTRY is there. But when i use it in filter, the system is ignoring it.
    Example, if i load all data, i get 5 records. 1 is US, and 4 for CA. when i filter by country US and load my infopackage, i am expecting to get only 1 record, but i still get 5 records.
    do you know if it's possible to use appended field as infopackage filter?
    Thanks
    jti

    Hi
    if u want to enchance your datasouce u are suppose to  maintain the DS in RSA6,and then enable the fields for selections.
    i suppose if the fields are appended fields you can't enable those for selection.
    please check if these fields are enables before u proceed.
    hope this helps
    --- Rashmi

  • How to get bw infopackage parameters in Data sevice

    dear all expert :
           I wann  loaded data from oracle table to BI ,I used DS(data service) to integration the BI and another source system .And now, I found a question in DS that was how can I got the parameters that I have input in the bw infopackage filter into DS as a extract condition ?
    best regards.
    peter.zhu

    hi Sathish :
         thanks for your kindly replay and propose.
        I know your mechanism can avoid those questions ,and DB connect is a mature way, more better than DS connect .But use BO ds is apart of our IT architecture .In future I can't avoid use DS as ETL tools .
        Howsoever thanks for your help.
    best regars
    peter.zhu

  • Requirement of VBA coding faced in the real time??

    Can anyone explain some of the senarios for Transfer Rules, Update Rules and Start Routines and what was your approach for it.

    Hi chandran,
           go through thes links for details
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Thanks
    @jay

  • Common commands

    dears,
    could you share with me the common command structures used in BW abap and when such is used?
    I am noting down these to refer to when coding.
    Pls, online help is there, but not applicable to my situation where practical examples are all I am asking for. What are the commands you have used in your coding?
    Thanks.
    Adette

    Hi Adette,
    There are no specific commands as such. Most of them are need based. However as a start in ABAP you can use this book:
    http://sapabap.iespana.es/sapabap/manuales/learnabap/
    You could use this ABAP in 21 days ebook to learn ABAP:
    http://cma.zdnet.com/book/abap/fm/fm.htm
    Excellent document:
    'Five Ways to Enhance SAP BI Backend Functionality Using ABAP.pdf' https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    <b>Some sample examples:</b>
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    (from Re: ABAP code)
    Check these links also:
    Re: ABAP documentation for BW
    Re: learn ABAP in 21 days
    /message/1604835#1604835 [original link is broken]
    Bye
    Dinesh

  • ABAP code

    Hello Friends,
    Hope you all are well and doing good at your places
    Friends, could you please suggest me how should I go for ABAP learning. How much ABAP knowledge is required while working as BW consultant?
    I am working as  BW consultant from last 1.5 year but not having any ABAP knowledge, so could you please send me some documents which will be useful while working as BW and it will be related with ABAP .
    It would be great if any one can send me documents with code sample which genrally used in  BW ( like, function module, infoset program, transfer routine, start rotine, user exit ) .
    I thanks  to you in advance,
    Mail id – [email protected]
    Regards

    hi Jain,
    take a look following doc
    'Five Ways to Enhance SAP BI Backend Functionality Using ABAP.pdf' https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    and check some samples
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    hope this helps.

  • No selection with SIGN = 'I'; OPTION 'GE' allowed

    Hello All,
    I have added an ABAP routine in one of the InfoPackage to filter a field CREATDATE(char,8).
    Whenever I am executing the InfoPackage I am getting the following error:-
    For sel. field 'CREATDATE', no selection with SIGN = 'I'; OPTION 'GE' allowed
    Message no. RSM1607
    Through debugging I have noticed that after the EndForm of the InfoPackage filter the Program control goes to a System Program "RSS2_INTERPRET_SELOPTS_DS". All the Selection Options (EQ, BT, GE, GT, NE, LT, etc ) are defined in this program and the program control ignores the 'GE' option code specified in the program "RSS2_INTERPRET_SELOPTS_DS".
    if not l_s_so-ge is initial.
            clear l_s_selopts.
            l_s_selopts-sign = 'I'.
            l_s_selopts-option = 'GE'.
            l_s_selopts-single = 'X'.
            append l_s_selopts to e_t_selopts.
          endif.
    Can anyone help how to resolve this.
    Thank You
    Edited by: RACHANA_CG on Sep 27, 2010 2:28 PM

    Hi,
    I guess in Infopackage filter routine, you can only declare multiple single values or a range i.e technically I EQ & I BT.
    Excluding or greater/less functions are disregarded. You can create a dynamic infopackage filter to have all the dates say for the next two years from the start date & run it.
    --Akashdeep

  • Current period load and previous period load

    Hi
    when I look into some cube, its loading the full load data  for Previous period as well as Current period.
    the next day we r deleting the both over laping request and loading the same current and previous load .
    could any one explain why this selection in infopackage in full loading.
    why dont't we load with last posting period / Fiscal year selection into infopackage selection for full load.
    Thanks
    Ram
    Message was edited by:
            ram

    Is the datasource is non delta enabled ?
    If yes , den Full load is done always using the Overlapping Request Deletion in the Infopackage or DTP in BI 7.0 - so as to make all data available .
    If ur willing  to change the dates in the Infopackage filter daily ( u can rite some routine though )  den u can do that but if u want to automate all this process u go with Overlapping feature.

  • Bw-specific abap book or materials

    dears,
    could you provide me info on how I can access  to the above materials?
    we know that BW abap is specific in the sense that its done primary in background for manipulation of data, so not entirely like R/3 Abap.
    I need to get up to speed on BW abap.
    I know common routines like datapackage manipulation. But not so sure how function modules are used in BW.
    Ideally, I would like to get hold of such a book where it shows full codes for real example scenarios and the various ways to code to manipulate data.
    I think such a book has definite market value.
    regards
    suzie

    Hi Suzie,
    As a start in ABAP you can use this book:
    http://sapabap.iespana.es/sapabap/manuales/learnabap/
    You could use this ABAP in 21 days ebook to learn ABAP:
    http://cma.zdnet.com/book/abap/fm/fm.htm
    Excellent document:
    'Five Ways to Enhance SAP BI Backend Functionality Using ABAP.pdf' https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    and check some samples
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    (from Re: ABAP code)
    Check these links also:
    Re: ABAP documentation for BW
    Re: learn ABAP in 21 days
    /message/1604835#1604835 [original link is broken]
    Bye
    Dinesh

  • Creating a start routine in the transfer rule

    I'VE CREATE a start routine, seel bleow.  Now I want to get at one of the fieds for a Key figure.    How do i do that?    do I need to add it to the transfer structure
    LOOP AT ROUTEDAY INTO WA_ROUTEDAY.
    CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT'
    EXPORTING
       input = ROUTEDAY-ROUTE_DAYS
    IMPORTING
         output = WA_DAYS_OUT.
      WA_ROUTEDAY-ROUTE_DAYS_CONV = WA_DAYS_OUT.
      APPEND WA_ROUTEDAY.
    ENDLOOP.

    Hi Mick,
    check these links
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    Hope this might help you.
    ****Assign Points If Helpful****
    Regards,
    Ravikanth

  • Clarification regarding start routines!

    Dear all,
    I would like to know what exactly the start routines are and how they can be used to manipulate the data coming into the BW system from the R/3 system. If anybody can explain it with an example I would be very greateful. Thanks.
    Regards,
    Sumit

    hi Sumit,
    take a look
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c3963dfbde4dede10000000a422035/frameset.htm
    other samples
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    hope this helps.

  • IN BW how many  routines are there  in 3.5 and which scenario used

    Hi expert,
      i am pradeep. a job seeker . could please send me doc of routines in bw 3.5
    and i will be give good point my  id [email protected]
    regards
    pradeep

    Hi Pradeep
    transfer routine: When you want to write a routine at field level in transfer rule.
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules: When you want to write a logic which is applicable on whole data package comming from data source
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine: Its data target specific, when you want to update any field in target by some mapping like 1:1,master data lookup,constant,routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules: same as transfer routine...when you want to apply logic on data package available in infosource
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Thanks
    Tripple k

  • Routine for simple formula

    hi everyone,
    is there anyway i could find a routing for simple mathematical functions like addition, subtraction, divison and mutliplication? please send me the routines people.
    thanx in advance

    Transfer  routine:
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    Start routine in Transfer rules:
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    Update routine :
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    update routine
    update routine code
    Re: Difference for Start routines n update Routines.
    Re: Update rules vs Transfer rules
    Re: which is better transfer routine or update routine???
    Re: Start/Transfer/Update Routines
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/732c42be6fde2ce10000000a1550b0/frameset.htm
    Update routines :
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a64fae07211d2acb80000e829fbfe/frameset.htm
    Diff b/w Start & updated routine

  • Reports with enhancements

    Hi All,
    Can anybody plz exlpain some frequently used reports with ENHANCEMENTS in Purchasing and SD.
    Two in each would be great ...in brief.
    Even proper links would also work for me.
    Plz guys I need them badly and soon.
    Thankyou All,
    JB

    Hi ,
    These are the links for enhancements in SD
    Look here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Bye
    Amith

  • Types of update rules

    Hi experts,
    What are the types of update rules?
    Regards,
    Siva

    Hi......
    Yes either you can say what are the different update types.........that Praveen has already ansered..............or you can say.........
    You can say what are the diffrent types of update routines...then the answer is :
    1) Start Routine in Transfer Rules
    2) Transfer Routine in Transfer Rules.
    3)Start Routine in Update Rules
    4)Update Routine in Update Rules.
    The routines that you write in transfer rules are applicable to all the Data targets that get the data from that particular Infosource, when you are going to write some code in Transfer rules, you have to understand that you are going to manupilate the data that is going to get into BW .
    If you are going to write in Update Rules , then that logic is going to apply only for that particular Data target .
    Eg : Let suppose I have a Flat file that gets data from 3 countries, US, Canada and Mexico.
    Now I have prepared the data source for the same . But I dont want to have the data of Mexico in to BW itself.
    So I will write a Start routine at TR to eliminate the data of Mexico.
    My Next step is I want the data of US into one ODS and Canada data in to another ODS.
    For this I handle the dataflow at Start routine in Update rules, to eliminate Canada data for US ODS and Vice Versa.
    start routine in transfer rules
    Look up to load master data
    excluding
    Start Routine in Transfer Rules
    Sample code in Update Rule to restrict data selection?
    Append Datapak - transfer start routine
    Excluding Blank field in Infopackage Filter
    Trans Routine ABAP help ..
    transfer routine
    Date key figure: Convert DATS format to DEC format
    Date Conversion in Flat File
    Transfer Routine ABAP
    conversion exit
    Date Conversion
    Problem with  conversion char to numc in transference rules
    conversion routine..?
    update routine
    How to call a function in Update Rules to reverse a key figure sign
    Need Sample Code for Update Rules
    Date calculation
    Difference between data in PSA and Data in Infocube
    No RETURNCODE <> 0 allowed in update routines in transfer mode
    the diffrerece between DEC and (yyyymmdd) 8 char in Time defination
    Access master data in update rules
    Date key figure: Convert DATS format to DEC format
    start routine in update rules
    Is it possible to read a third ODS in update rules between two ODS?
    update rule coding while loading data from ODS to CUBE
    Start Routine in Update Rules to populate additional fields from ODS
    Coding in Update Rules accessing a Z-Table
    Start routine
    Regards,
    Debjani...........

Maybe you are looking for