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

Similar Messages

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

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

  • Dynamic selection parameter in infopackage included in process chain

    Hello,
    I have a process chain that contains three infopackages, they are launched sequently.  All of them have selection parameters calculated based on a parameter ID set in SAP memory by program, with ABAP sentence "SET PARAMETER ID.. ",..so the routine in the package executes a "GET PARAMETER id..." sentence.
    The result is that no problem with first infopackage, the value is properly read, but for the other infopackages the value is not recovered from memory.
    Any idea?
    Regards, Inma

    Hi
    Did you resolve this issue ?
    I have same issue

  • Exclude selections not working on virtual infoprovider

    Hi,
    I have a Bex report which is based on virtual infoprovider. This virtual infoprovider have load structure of BW Datasource -> IP (PSA) -> DTP
    Infopackage runs every night in FULL mode and brings in latest data in PSA, and whenever report is executed, inturn DTP is executed in background to fetch data at runtime. Query works fine when run open or with INCLUDE selections on variable screen. But whenever it is run with EXCLUDE selections on variable screen, it gives below error -
    - Error reading the data of InfoProvider
    - Invalid selection condition in the data request
    - Error in substep
    Is there any restriction using virtual infoprovider like you cannot query with exclude selections? I also tried running report with "<> 10" selection on variable screen but still get same error. Any ideas on this?
    -Abhijit

    Do both sets not say to
    set Client certificates, select Ignore?  
    I'm skimming so may be missing something. 
    You can have session persistence using IP affinity, but depending on what you want to publish and achieve you may need to inspect the traffic on the LB.  I was curious as it adds a bit more complexity.
    And is Outlook 2010 upto date?  What is the exact build string on a client that is getting the prompt please?  This is a person bugbear of mine:
    http://blogs.technet.com/b/rmilne/archive/2013/07/18/patching-exchange-don-t-overlook-outlook.aspx
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Drill-Down Report Printing Problem for Selection Parameters

    Dear Experts,
    Have tried to configure Drill-Down Report for Vendor Balances,
    Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
    User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
    Input Parameter Screen
    Report Output Screen
    Print Preview Screen (First Page - Selection Parameters)
    Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
    Thanks
    Regards
    P

    Hello Ms. Preeti,
    Thanks for your reply, Have designed the report through FKI0 (FKI*)
    Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
    Thanks for your help
    Kind Regards
    P

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • Multiple Data in selection tab of infopackage

    Hello,
    I need to select in a InfoPackage from a InfoObject multiple values, which means
    I need to implement a logical OR in the selection of an InoObject in a InfoPackage.
    How to set up L_T_RANGE ?
    Thank You !
    Martin Sautter

    For dynamis selects this is also helpfull:
    Re: ABAP Selection in infopackage
    THank You
    Martin

  • BI: Virtual Provider for ECC Report with same selection parameters

    Dear all,
    I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
    Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
    It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
    As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
    Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
    Please mention if i miss any point in explaining problem.
    Feel free to ask for any query.
    Many thanks.
    Hoping for positive and quick responses.

    please create 2 reports as given below.-
    REPORT  ZSZP_00007.
    parameters a(5) .
    parameters b(5) .
    parameters c(5) .
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'A' or screen-name = 'B' .
      get parameter id 'aaaaaaaaaaa' field a.
      get parameter id 'bbbbbbbbbbb' field B.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    start-of-selection.
    your logic
    REPORT  zszp_00005.
    PARAMETERS a(5).
    PARAMETERS b(5).
    START-OF-SELECTION.
      SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
      SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
    your logic
    SUBMIT zszp_00007 VIA SELECTION-SCREEN.
    i hope this approach will solve your problem.
    thanks
    Swanand

  • ABAP Routine  for 0FISCPER  select data in InfoPackage

    Hi all,
    I need to write a routine which has to return values from the last FISCPER to the current FISCPER in the data selection of the infopackage.
    Do somebody already do it?
    Thks

    Try this:
    Global Declarations
    CONSTANTS: c_1(1) TYPE n VALUE 1,
               c_fiscvarnt TYPE /bi0/oifiscvarnt VALUE 'Z1',  "Use whatever your default Fiscal Year Variant is"
               c_i(1) TYPE c VALUE 'I',
               c_bt(2) TYPE c VALUE 'BT'.
    DATA: l_tabix LIKE sy-tabix,
          l_fiscper3 TYPE /bi0/oifiscper3,
          l_fiscyear TYPE /bi0/oifiscyear,
          l_min TYPE /bi0/oifiscper,
          l_max LIKE /bi0/oifiscper.
    Routine
    CLEAR: l_fiscper3,
           l_fiscyear.
    CALL FUNCTION
      'DATE_TO_PERIOD_CONVERT'
    EXPORTING
      i_date  = sy-datum
      i_periv = c_fiscvarnt
    IMPORTING
      e_buper = l_fiscper3
      e_gjahr = l_fiscyear.
    CONCATENATE: l_fiscyear l_fiscper3 INTO l_max.
    l_fiscper3 = l_fiscper3 - c_1.
    IF l_fiscper3 LT 1.
      l_fiscyear = l_fiscyear - c_1.
      l_fiscper3 = c_1.
    ENDIF.
    CONCATENATE: l_fiscyear l_fiscper3 INTO l_min.
    READ TABLE
      l_t_range
    WITH KEY
      fieldname = 'FISCPER'.
    MOVE: sy-tabix TO l_tabix,
          c_i TO l_t_range-sign,
          c_bt TO l_t_range-option,
          l_min TO l_t_range-low,
          l_max TO l_t_range-high.
    MODIFY
      l_t_range
    INDEX
      l_tabix.
    p_subrc = 0.
    Edited by: Dennis Scoville on Dec 7, 2009 11:07 AM

  • How to identify the selection parameters of already executed transactions

    Hi,
    I like to identify the selection parameter of already executed transaction.
    SM20 shows me which transaction was executed on which day and by whom.
    But it does not give me it is executed with which kind of selection parameters.
    For example, MD02/03 was executed many times, I like to know who execute it with parameter "2" for "create purchase req.".
    How can I know it?
    Regards,
    Kenichi Kaneda

    Hi,
    I don't think so that SAP stores this information anywhere.

  • Issue with Exclude Selection in Bex

    Hi all,
       I have created a query to display the Top 10 Customers.
    Here I have excluded all the customers apart from the Top 10 since they differ
    based on different regions. There are 4 different regions and the customers differ
    for all of them. Here the issue being I dont get the exact percentage of Orders and
    Sales because of these excluded values. Here I cant use include selection since i
    need different top 10 customers for the 4 regions.
        How to compute percentage with Exclude Selection? Could anybody help?
    Points would be surely assigned.
    Regards,
    Sunitha.R

    Dear Anil,
         I have my Orders, Sales, percentage calculations in columns and the excluded
    Top 10 customers in rows. I get the individual percentage values for each customer.
      My scenario being :
      Orders 06  : Values computed with Calculate Result as Summation - Properties.
      Orders 07 : Values computed with Calculate Result as Summation - Properties.
      Orders % : Here I have given Calculated Result as Nothing - properties.
           I get the individual percentages say :
         <b>                  Orders 06              Orders 07        Percentage</b>
    <b>Customer 1 : </b>       12.1                       91.2                    75.5
    <b>Customer 2 :</b>          7.6                          7.9                   104.3
    <b>
    Overall Result:</b>         19.7                         99.1                 Wrong Value
        Considering the above example, total percantage is computed wrongly. The excluded value's total is not considered at all. Can you now give me your suggestion?
    Regards,
    Sunitha.R

  • Unable to have field in selection screen of Infopackage

    Hello Gurus,
    I have a small problem,
    I am unable to bring on field in selection screen in Infopackage,
    even thou the object is ticket in DataSources selection option,
    I have noted that the object is of type DEC is it something to do with,
    Or is their any other way to have this object in selection screen of Infopackage,
    Please help me on this,
    Thanks & Regards,

    Bhanu its field type is DEC that’s why its not coming in selection screen in Infopackage .This is a big problem in our Development as this field is SPRIO(Procurement Priority) and we want to restrict this field with conduction SPRIO EQ 1.
    Our DataSource is based on Infoset , Bhanu is it possible to restrict this Field in Infoset writing some code. As their is option in Infoset for CODE we tried this but didn’t work.
    or any other way to restrict this field with 1.
    I really appreciate your reply.
    Thanks Once again.

  • How to give Selection Parameters text in Standard SAP reports?

    Hi,
    I am enhancing one of the standard reports, J_3RF_TAX_EXECUTE_CHAIN. Added few parameters to selection screen.
    But I am not able to give text to the selection parameters.
    I checked with Modification overview, its not allowing me to put text to custom Selection screen parameters.
    Regards
    Mohinder Singh Chauhan

    Hi Friends,
    I had created a dynamic selection text for a select-option created using Implicit Enhancements.
    The select-option field is for MARA-MTART and the dynamic text i had given in the code is "Material Type".
    But my client wants it to refer to the data dictionary reference so that it will print the labels given there and especially in the logon language.
    Generally it can be done by selecting the checkbox next to the select-option, available in the Text Elements/Selection Texts Screen of the ABAP  Editor.
    So how to check that box(i.e., how to refer the data dictionary reference) dynamically?

Maybe you are looking for