Exclude in InfoPackage

Hi
Suppose i have 20 Sales Orgs. I want to extract the data of only say 17 Sales Orgs. Means i dont want to extract only 2/3, want rest of all.
So is there anyway, in Infopackage, that i put only these 2 or 3 lines, so that it extracts all other Sales Orgs. because i dont want to make entries for 17 lines. I dont want to write routines anywhere, because this req is flexible in nature.
So any way to Exclude in Infopackage ?
thx
venkat

I doubt if you can do it without writting any routine/code.
Check this links if it helps:
Re: InfoPackage Data Selection - Excludes
Exclude values in infopackage

Similar Messages

  • Data selection in infopackage to exclude 3 values

    Hi,
    I want to exclude 3 values for ZCOUNTRY field in the data selection of an infopackage. I don't want to do this using start routine(in transfer structure or update rules). I just need to do the coding in infopackage level. Can anybody plz tell me the ABAP coding for this in detail?
    Thanks,
    Chandan

    Hi,
    correct, but once you have defined an ABAP routine in your IPack for the country (select type 6 "ABAP" in the IPack selection of the country) why not to exclude the countries directly?
    I've never had this req but the hereunder should work (it should exclude countries US and CA from the selection)
    data: wa_range LIKE rssdlrange.
    READ TABLE l_t_range with key fieldname = 'COUNTRY'.
    MOVE l_t_range-iobjnm TO wa_range-iobjnm.
    MOVE l_t_range-fieldname TO wa_range-fieldname .
    MOVE 'E' TO wa_range-sign.
    MOVE 'EQ'    TO wa_range-option.
    MOVE 'US' TO wa_range-low.
    CLEAR l_t_range-high.
    APPEND wa_range TO l_t_range.
    MOVE 'CA' TO wa_range-low.
    APPEND wa_range TO l_t_range.
    p_subrc = 0.
    hope this helps...
    Olivier.

  • How to exclude records from infopackage

    Hi All,
    I am trying to exclude records based on characteristic(ZSCSF) value.I have written ABAP routine in infopackage.
        l_t_range-sign      = 'E'.
        l_t_range-option    = 'EQ'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    During scheduling of infopackage i am getting below error message.
    For sel. field '/BIC/ZSCSF', no selection with SIGN = 'E'; OPTION 'EQ' allowed
    i am getting error message for below code too.
        l_t_range-sign      = 'I'.
        l_t_range-option    = 'NE'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    I am only able to execute below selection.
        l_t_range-sign      = 'I'.
        l_t_range-option    = 'EQ'.
        l_t_range-low       = '0-3 CASE CARB MV TRB CUP'.
    Please suugest me can we exclude records in infopackage using type 6(ABAP routine).If yes,coule you please provide code.it will be great for me..
    Thanks in advance,
    Bandana.

    One suggestion is, you select all the options for characteristic(ZSCSF) values(if they are not many) from the source DSO.
    Remove the one which you want from internal table.
    And append the rest in the l_t_range table.
    But the best way is, to delete the records in the start routine.
    Thanks.

  • Exclude selection parameters in infopackage

    Hi guys!
    I've been asked to create an InfoPackage to extract "all product types except <specific type>".
    If I were in an R/3 Abap Report, it would be easily achieven by passing an 'E' in the "sign" field of the corresponding select-option. But since I'm to do this in an InfoPackage, I don't know what to do.
    I tried by using an abap routine in the InfoPackage, but i get the message:
    For sel. field 'PRDHA', no selection with SIGN = 'E'; OPTION 'EQ' allowed
    Does anyone know a way to do an exclusion parameter in an InfoPackage? Thanks!

    Hi.
    You can exclude values by including all the values around the ones you dont want:
    Let's say you don't want types 103 and 506. In your infopackage, input three intervals:
    001-102
    104-505
    507-999
    You can add more rows for your product type selection by hitting the "insert duplicate row" button, next to the check-button on the bottom left corner.
    Regards
    Jacob

  • Exclude values in infopackage

    Hi Firends
    I have an infopackage and the following data slections.
    company code
    profit center
    now i want to exclude few profit center values at the time of loading.
    can any one explain how we are going to do this.
    Regards
    Sundaresan

    Hi Sundaresan,
    U can write ABAP code in selection tab of ur infopack..
    Sample Code:
    Define a structure... like
    Data : ls_range type l_t_range.
    Data : l_idx type i.
    Define a internal table for profit center.
    Data : lt_profit like /bi0/0PROFIT_CTR occurs 0 wiht headerline.
    --> Select 0PROFIT_CTR
    Select PROFIT_CTR from /bi0/comp_code into corresponding fields of lt_profit.
    --> Delete the 0PROFIT_CTR you dont want from this internal table.
    Delete lt_profit where PROFIT_CTR = 'XXXX'.
    read table l_t_range with key
    fieldname = '<Fideld Name>'.
    l_idx = sy-tabix.
    --> To delete the existing value(if any or bland value)
    Delete l_t_range where fieldname = '<Fideld Name>'.
    --> To Create selection
    Loop at lt_profit.
    l_t_range-sign = 'I' ("Include").
    l_t_range-low = lt_profit-0PROFIT_CTR.
    l_t_range-OPTION = 'I'.(Inlcude)
    append l_t_range.
    endloop.

  • Excluding of records from extraction

    Hi Experts
    1. I am in need of code to exclude the records for a particular value of the fields AUART and                 VBUND                                   
          For records with the following criteria should be EXCLUDED
              Sales Order Type (AUART):  ZCP
              Trading partner (VBUND):  1261
          I know that we can write the code at start routine of the transformations but what to write in
          the start routine of transformations
    2. I have an extractor bringing data from ECC to info cube with alternative unit of measure
        Now I need to undo these conversions in the current extractor and bring in these values from a
        Custom Z table from ECC using generic extractor  
      And I am doubted in how to undo these conversions from the current extractor to the cube
    Please help me
    Thank you

    Hi
    1. Open the transformation and click on start routine
    2. The ABAP editor screen appears and you can find this part in the abap editor of start routine "$$ begin of routine - insert your code only below this line        -
    ... "insert your code here"
    3. Please delete the line "insert your code here" completely and paste the code which i gave you.
    4. Check for syntax errors and activate the transformation.
    5. Also activate the DTP.
    Also please dont not put the code below "begin of global or 2nd part of global".
    Plz lemme how many records you have in rsa3 without any selection. The infopackage will just fetch the records from the source and it will not do any transformation.
    Hope it helps.

  • Date range selection in abap code in infopackage

    Hi!
    I have a field called "OPEN_DATE".
    When the infopackage is runned, I need the abap code to fint the current date, and from that, make a date range from the first day of current month to the last day of current month
    Ex:
    Current date = 12.12.2008
    Abap code should extract 01.12.2008 - 31.12.2008
    Thanks!

    Hi helge,
    Data: l_idx like sy-tabix.
    Data: date_low like sy-datum,
             date_high like sy-datum.
    Date_low = sy-datum.
    date_low+6(2) = '01'.
    CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN                  = Date_low
    IMPORTING
       LAST_DAY_OF_MONTH       = date_high
    read table l_t_range with key
    fieldname = 'OPEN_DATE'.
    l_idx = sy-tabix.
    Pass Range values to L_T_Range Table.
    Move date_low to L_T_Range -Low.
    Move date_high to L_T_Range -High.
    L_T_Range -Sign = u2018Iu2019. *****(Here: I u2013 Include, E u2013 Exclude)
    L_T_Range -Option = u2018BTu2019.****( Here: BT u2013 Between )
    modify l_t_range index l_idx.
    p_subrc = 0.
    Regards,

  • Use ABAP Routine in Selection Tab of Infopackage

    I am trying to use the ABAP routine in the InfoPackage SELECTION Tab to "EXCLUDE" a value. For example, I want to load all the Material types, except ZUN1. But, when I write in the ABAP, l_t_range-sign = 'E' instead of 'I' or l_t_range-option = 'NE' instead of 'E', I get an error saying these values are not permitted.
    Is there any way to exclude any value from Selection in the InfoPackage?
    Regards,
    Milind Vad

    Hi dear and welcome on board!
    You have two options:
    include everything you want in your IP
    load everything and exclude what you don't want in the start routine in transfer rules
    No other ways...
    Hope it helps!
    Bye,
    Roberto
    ...and please don't forget to reward the answers...it's THE way to say thanks here !

  • ABAP Routine in InfoPackage for selection

    Hello,
    I have 2 InfoPackages for loading from ODS1 to ODS2. InfoPackage 1 is restricted via ABAP Routine to load only certain customer numbers.
    InfoPackage 2 is supposed to load all other customer numbers - therefore the ABAP Routine makes ranges that exclude the customer numbers selected in InfoPackage 1.
    Now I face the fact that the selection of InfoPackage 2 is much to small in numbers. Problem is, the ranges only work when entered manually - but via ABAP entry these ranges don`t work. I can`t understand why this problem happens. Do you have an idea?
    Example (first number is from, 2nd number is to)
    InfoPackage 1:       customer numbers     
    5| 5
    100|100
    999|999
    InfoPackage 2: customer numbers
    0|4
    4|99
    101|998
    1000|99999
    But selection of InfoPackage 2 does not work propberly...
                                                                                    Thanks for your help,
    Angelika

    Hi,
    no, that was just a typing mistake. Sorry.
    The problem is, that in Monitoring I can see the selection and it looks good.
    But when I check the number of datasets selected it is far to small. Therefore I don`t believe the selection works.
    I tried manually to put all the ranges selected by ABAP Routine in InfoPackage 2 in another InfoPackage 3 - the selection is identically to InfoPackage 2 (but not made via ABAP, but manually) and in Monitoring the selection looks absolutly alike.
    But the manuall InfoPackage 3 selects far more records than InfoPackage 2.
    I can`t understand the problem. Can you? Can you give me advice?
    Thanks,
    Angelika

  • Can't find 0FYTLFP OLAP Variable in InfoPackage Data Selection tab on 3.5

    On BW 3.5, when generating an InfoPackage with the datasource as Purchasing Data(80PUR_C01), under Data Selection tab, for the InfoObject 0FISCPER, I selected 7 (OLAP variables)for the Type column, then click the button next to it and under the column of Details for Type to bring up a window, but when expending the OLAP Variable field list, can't find the following value in the list which shows up on BW 3.1:
    0FYTLFP     0FISCPER Cumulated to Last Fiscal Year/Period (SAP Exit)
    How to make the above value show up in the OLAP Variable list?   I thought maybe the variable 0FYTLFP needs to be installed in Business Contents, but there is no variable object type in Business Content.  It sounds like a SAP Exit, but how to make the SAP Exit value show up on BW 3.5?
    Thanks for everyone's input!

    hey Rohit,
    Besides the three variable values in the list on BW 3.5, now I find a new one in the list, called "0E_ROLE     0SR_ROLE     Role (SAP Exit)", I have no idea why this one shows up now.  Now all the four variables in the list are:
    1. 0CML12LM     0CALMONTH     Last 12 Months Excluding the Current Month
    2. 0CMONTH     0CALMONTH     Current Calendar Month
    3. 0E_ROLE     0SR_ROLE     Role (SAP Exit)
    4. 0S_RQMRC     0REQUID     Most Current Data
    0FYTLFP is still not in the list!   We can't try to create BEx query since our BW 3.5 system is just installed and we have not got to the step to ceate a query.  I try the 2nd way you suggested by pressing F6 on this variable with the typed in value 0FYTLFP, get the following msg "BEx variable 0FYTLFP could not be evaluated - No error message", that means it would not work on BEx query as well, right? 
    What could be the reason that we can't see 0FYTLFP variable in our new installed BW 3.5?  Do you think our BASIS missed installing sth?
    Thanks
    Message was edited by: Kevin Smith

  • InfoPackage-Request Selection Through Routine (To Delete)

    Hello,
    I have come across a situation where I don't want to delete a request from an infocube. 
    Our current process always deletes requests that have the "Same or More Comprehensive" Selections (using the standard options).  However we have one request that we do not want to delete.
    In the area of the infopackage that you can specify the details for "Deleting Request from InfoCube after update",  I would like to use the "Request Selection Through Routine" option available under "Exceptions" to implement a routine.
    I believe i could then code a way to exclude the particular request from the deletion process.
    The problem is that i cannot find any resources with examples or code samples to help me figure out how to code this.
    Any help would be great!
    Thanks,
    Nick

    Hello Nick,
    You receive a table l_t_request_to_delete with all the requests in the cube you are able to delete. Now you simply need to delete your request number from the table, e.g.
    DELETE l_t_request_to_delete WHERE sid = '12345'.
    Best regards
    Dirk
    P.S.: You could also do the same by deleting all the requests except the one you want to keep, compress the cube and then continue data loading.

  • Data selection tab of infopackage

    hi all,
    how do we select data from infopackage if you do not want a certain value?
    I wrote ABAP code to select not as:
    L_t_RANGE-SIGN = 'I'.
    L_t_RANGE-option = 'NE'.
    L_t_RANGE-low = 'Y'.
    But I got errors. Sign 'I' with 'NE' is not allowed. Please advise.
    Linda

    Linda,
            <b>Exclude Option won't work in the Infopackage data selection routine.</b>
    You can use SIGN equals to I only and option values EQ, CP and BT.
    Try append all the required values. use BT as well as eq.
    If you want to permenantly exclude those to BW. you have 3 good options along with Infopackge Selection.
    1. <b>User Exit in the Source System.</b>
    2. Start Routine in the Transfer Structure.
    3. Start Routine in the Update Rules.
    all the best.
    Regards,
    Nagesh Ganisetti.
    *assign points if it helps.

  • Special Characters in InfoPackage Data Selection

    Hi Experts,
    Is it possible to include special key such as * in the data selection tab in the infoPackage? e.g. *AB
    I have created a custom DataSource to extract all work order with costs data.
    However we only need work order data with revision number that finishes with 'AB' for reporting. (if I do not apply this selection, extracted data will be too big).
    i.e.
        REVNR
        00000012AB --> to be included in extraction
        00000231AB --> to be included in extraction
        00012322AB --> to be included in extraction
        Y07WK06    --> excludes this record
        00000007AB --> to be included in extraction
    Can this be achieve by using '*AB' in the data selection screen?
    Currently, SELOPTS of custom DataSource is been set to '0'. (where can I change this SELOPTS value to something else?)
    If special key is not allowed in the data selection screen, can you suggest any alternative solution?
    Kind regards,
    Steve

    Hi steven,
       Yes you can do this one at info package level by selecting the ABAP Coding at Type (variable change for selective values) at selection tab of info package.
      Here you need write ABAP coding according to your business requirements….
      or
      You can drop unnecessary data at update routine.
    Regards,
    PRK
    Message was edited by: PRK

  • Excluding particular Company Code

    Hi Experts,
    We have Company Code as one of the selection field in the Info Package (In Data Selection Tab) . Now we need to load data Excluding one particular Company Code. Do we have any option in the Info-Package level to Exclude specific Comapny Code.
    Waiting for the Prompt response as it is bit urgent..
    Thanks in Advance...
    XYS Redd
    Regards,

    Hi Reddy,
    <b>Sample Code:</b>
    Define a structure... like
    Data : ls_range type l_t_range.
    Data : l_idx type i.
    Define a internal table for company codes.
    Data : lt_comp like /bi0/comp_code occurs 0 wiht headerline.
    --> Select company codes
    Select comp_code from /bi0/comp_code into   corresponding fields of lt_comp.
    --> Delete the company codes you dont want from this internal table.
    Delete lt_comp where comp_code = 'XXXX'.
    read table l_t_range with key
             fieldname = '<Fideld Name>'.
             l_idx = sy-tabix.
    --> To delete the existing value(if any or bland value)
    Delete l_t_range where fieldname = '<Fideld Name>'.
    --> To Create selection
    Loop at lt_comp.
    l_t_range-sign = 'I' ("Include").
    l_t_range-low = lt_comp-comp_code.
    l_t_range-OPTION = 'I'.(Inlcude)
    append l_t_range.
    endloop.
    <b>OR</b>
    If you want to exclude only 1 company code, Using range include all by creating multiple selections in the infoObject selection Tab(No need to go for the coding, Bcoz it is not changing dynamically).
    Ex: if you have company codes like 1000,1500, 2000, 3000 & 4000 and you want to exclude 3000 then
    In selection
    Comp_code : from(1000) - 2000(to)(include 1000,1500 & 2000).
    comp_code : 4000(another selection in same infopackage).
    Save the infoPackage.
    Hope this Helps
    Srini

  • NOT EQUAL in the InfoPackage Data Selection

    Hello,
    <u><b>I need to build a NE, NOT EQUAL <>  in an InfoPackage</u></b>
    I need to exclude some DataSets from beeing loaded.
    The DataSets to be excluded can be distinguished by a
    certain value of a an InfoObject.
    For example:
    All DataSets with  0COMPANY_CODE NOT EQUAL "0001" should not
    be loaded.
    How can I set in the InfoPackage DataSelection a filter
    to exclude some DataSets ?
    Thank You
    Martin Sautter

    Hello Chitrarth Kastwar ,
    basically it would be a trivial task in SQL ....to code :
    <i>
    SELECT *
    FROM
    WHERE  0COMP_CODE not in '0001'
    </i>
    or
    <i>
    SELECT *
    FROM
    WHERE  0COMP_CODE =  '0030'
    OR          0COMP_CODE =  '0040'
    OR          0COMP_CODE =  '0050'
    </i>
    .. but thats BW  - It generates much turnaround for consultants :).
    Thread
    /community [original link is broken] threadID=507511&tstart=0
    seems to be something like this.
    ...I get the following Conversion Routine for Type 6:
    <i>
    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:   ...
    $$ end of global - insert your declaration only before this line   -
        InfoObject      = ZVPUNITH
        Fieldname       = /BIC/ZVPUNITH
        data type       = CHAR
        length          = 000045
        convexit        =
    form compute_/BIC/ZVPUNITH
      tables   l_t_range      structure rssdlrange
      using    p_infopackage  type rslogdpid
               p_fieldname    type rsfnm
      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/ZVPUNITH'.
              l_idx = sy-tabix.
              modify l_t_range index l_idx.
              p_subrc = 0.
    $$ end of routine - insert your code only before this line         -
    endform.
    </i>
    Because I have to exclude 1 value out of 5 I can also include 5 values in the
    selection criteria connected with OR
    This means I have to use an OR only.
    Is it possible with l_t_range to state this and how ?
    Thank You
    Martin Sautter

Maybe you are looking for

  • Late 2009 21.5 Inch iMac not updating to Snow Leopard 10.6.4

    I recently took my Late 2009 21.5-inch iMac (1TB HD) to the Apple Store to get it fixed due to a hard drive crash. I got the hard drive replaced and I thought everything was back to normal. Today, I saw Apple had released a beta for FaceTime on the M

  • Objects on home page are "locked" together

    I hope this is an easy fix but I can't find it.... I have 5 pages to my little website. On all of them except the home page I can grab a text box or a pix and reposition it. On my Home page I have a picture, a tiny text box. I'm trying to add a text

  • How to save the chart as image in the blob?

    Hi, I found a few topics with this problem but none solved the problem. So, I have a chart created in the IR report and want to convert it to an image and save it in blob. I want to print it later or it will send an e-mail I use APEX 4.0 Thanks

  • Problems parsing xml

    I am currently writing a program that receives and xml address, parses the file and finds the name of a certain graphic file named in the xml file. Now if this was Perl I'd be all set, but doing it with java is confusing me a bit. I currently have Xe

  • Where Can I download MMPO_A and MMPO_L

    Can someone please give me a link to locate this patch for PO smartforms?  I tries searching the marketplace but was unable to locate them.  If these forms do not exist anymore please say so.