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.

Similar Messages

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

  • How to exclude values in an exit variable?

    Hello experts,
    I try to exclude special values from my selection via exit variable but I get an error of invalid values.
    could it be that something in my selection table is wrong? Do I have to use an other value for SIGN or OPT to exclude values?
    my Coding is:
    l_s_range-low  = '0000000404'.
    l_s_range-sign = 'E'.
    l_s_range-opt  = 'EQ'.
    APPEND l_s_range TO e_t_range.
    I tested my values with include them (SIGN = I) and this works fine.
    settings of the variable are:
    Type of variable:      characteristc value
    processing by:         Customer exit
    variable represents: Multiple single values.
    Where is the Error?
    Thanks in advance
    Johannes

    Hi there,
    I tried once to do that, i.e., with customer defined variable use the exclude sign 'E' for a variable but it doesn't work.
    Don't know why, but excluding values with 'E' doesn't work.
    Although it seems stupid you might consider excluding that value directly in the query in filter, or use BT from a value till 0000000403 and other BT from 0000000405 to above.
    Diogo.

  • Issue in F110 exclude values

    Hi i have issue regarding f110 exclude values.
    In f110 under free selections tab i am selecting document numbers and exclude value check box and i try to post the payment but system is picking that exclude documents also.
    kindly give me your valuable inputs on this is there any customiging settings for this?
    Appraisals are waiting.................
    Thanks in advance
    Regards,
    Nauma.

    Hi
    In Free Selection Tab after you select the Document Numbers, select the Exclude Value CheckBox and give the Document Numbers seperated by Comma.
    Space must not be given after comma and the Document Number must be 10 Digit.
    If your Document Number is 100101, give 0000100101
    Then system will Exclude those Documents.
    Regards
    Venkat

  • Restricting user to exclude values in selection screen

    Hi Everybody,
    I am facing a problem with f.m SELECT_OPTIONS_RESTRICT.
    I want to restrict user, so that he will only be able to exclude values (single, multiple or range) from a selection-option.
    The code snippet is as follows:
    item messages -> restrict selection
      opt_list-name = 'EXCLUDE'.
      opt_list-options-ne = 'X'.
      opt_list-options-nb = 'X'.
      APPEND opt_list TO restrict-opt_list_tab.
      ***-kind = 'B'.
      ***-name = 'A2'.
      ***-sg_main = 'I'.
      ***-sg_addy = ' '.
    ***-op_main = 'EXCLUDE'.
      ***-op_addy = 'EXCLUDE'.
      APPEND *** TO restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
        PROGRAM                      =
          restriction                  = restrict
        DB                           = ' '
        EXCEPTIONS
         TOO_LATE                     = 1
         REPEATED                     = 2
         SELOPT_WITHOUT_OPTIONS       = 3
         SELOPT_WITHOUT_SIGNS         = 4
         INVALID_SIGN                 = 5
         EMPTY_OPTION_LIST            = 6
         INVALID_KIND                 = 7
         REPEATED_KIND_A              = 8
         OTHERS                       = 9
    But this is only including the single multiple and range value. Can anyone throw some light on it?
    Thanks
    Samit

    I took a look at the documentation of this FM to confirm what I was thinking:
    "You can also disable the function allowing users to enter values to be excluded from the selection (SIGN = 'E')."
    So I think this is trying to tell us that we can turn off the ability for the user to enter "exclude" but we cannot turn off the option for the user to enter "include" options.
    When you set ***-sg_main = 'I', it means that only "include" options are allowed.
    I think you will need to do your own validation.
    In the event AT SELECTION SCREEN you can do a LOOP on your selection option name and validate the users selections:
    LOOP AT SO_MINE.
      IF SO_MINE-SIGN NE 'E'.
        SET CURSOR FIELD 'SO_MINE-LOW'.
        MESSAGE E123.
      ENDIF.
    ENDLOOP.
    It has been awhile since I used this FM so please let us know how it goes.

  • How exclude values based on text in web report

    hi ,
    i wanted some clarifications
    how to exclude values based on text in web report.

    hi ,
    we had following  requirement.
    in web reprot we had sales group as a drill down.
    now our client wants we can restict sales group values  based on text.
    like  11 -  XXXX.
    here 11 key value and xxxx is the text.
    as of now we can restrict values based on key values.
    but client wants we can restrict values based on text.
    if you have any ideas on that plz let me know.
    Regards,
    Murali

  • How to display the excluded values in the filter panel using WAD 3.5

    Hi Experts,
    I have a requirement in that we need to display five reports as tables.
    In these queries two of them have multiple excluded values.
    Now i need to display these excluded values in filters pane in my web template.
    appriciate your help in advance.
    James
    Edited by: james_ava on Nov 8, 2010 5:46 PM

    Hi James,
    I believe you are interested in displaying static filters in two of your queries as defined at design time. If so, why not use a Text Element webitem for your display since a Filter Pane is used to filter Characteristics on runtime & display their corresponding filtered values. You may insert two Text Elements for each of your DPs in question, & enable 'Display static filter values' for each. Let me know if this helps.
    Refer foll. help link for more:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/content.htm
    --Priya

  • DTP SP14 exclude values

    Hi gurus
    in BI70 SP14 how to exclude values in DTP filters? there is a button 'exlude values' but it is not active...
    program error?
    tks
    michele

    Did you try F2 in the cell itself ??
    Check if the below note is applicable :
    Note 1055522 - 70SP14: Multiple selection is not possible (> 125 fields)

  • Excluding Values

    Hello,
    Is there a way to exclude values from a query where the 3rd character of a 5 character field is for example "X"?  I've tried +X+ which doesnt seem to work.  Any ideas?  I've been trying this by hard coding this value and excluding it.  There must be another way.
    Thanks,
    TMS

    I also don't think you could achieve this with an easy approach without customer exist.
    You need to have a customer exist and apply your logic in the coding.
    Regards,
    Patricia

  • How to exclude values in report selection ?

    Hello experts,
    I am in NW 2004S BI 7.0 .
    My requirment is to exclude some values in the selection screen of a report in BEX.
    for examaple, out of 200 employees, i want to execute the report only for 198 employees and to exclude two guys.
    Is there any way to achive this in the new version of BEX ?
    Regards,
    Ravi

    Hello Ravindra,
    if you have values fixed for a query to be excluded, you can always restrict the infoobject with these values and click the exclude option when restricting. On the restriction screen where you move values from left to right pane, right click on the values and say "exclude"
    2. if you want to exclude values during run-time, create variables on that object with user input option. during run-time(i.e while query execution), in the selection screen (i.e values input screen for that infoobject), you can exclude these values.
    Hope this helps..
    thanks,

  • Excluding values in Customer exit variable

    Hi,
    I need to excludes some values, but should have a option to include these values in variable screen depends on different users requirement.Default this values will be excluded.Please help me writing this code.
    Will assign points,
    VJ

    Hi,
    You can try using a select option variable without writing any code.
    There you can specify default values as exclusion and if user enters their own values those will be included automatically.
    Else you need to create a dummy variable (user input) to get the user input and other variable (customer exit) to include the values if user enters / exclude default values. If you still need some code sample let me know.
    hope this helps.
    regards
    rajesh

  • How to exclude values in the query designer

    Hi everybody,
    i need your help!
    I need to exclude certain information from a report, but as could enter new values in the future, I see it now.
    Ex.
    CreatedBy contains the following values:
    MSanz
    PRojas
    Soporte
    Soporte1
    Soporte2
    I need to exclude anything value that is Soporte* for first report
    and the second report include anything value Soporte*
    first report
    MSanz
    PRojas
    Second Report
    Soporte
    Soporte1
    Soporte2
    thanks for your help
    Manuel
    Edited by: Manuel Sandoval on May 30, 2008 6:35 PM

    Hi Manuel,
    There are two ways to exclude the fields of Createby.
    1. Excude Soporte,Soporte1,Soporte2 in the first report.  Select createby -->, right click >Restrict> select  Soporte,Soporte1,Soporte2  and pull from left to right > right click(3 fields)> exclude.
    Similary for second report exclude MSanz, PRojas.
    Or
    After restricting include only the necessary fvalues  from right to left for creteby field.
    Best method is include one, for performance point of you.
    Second approach is create two user exit variables. one to include Soporte,Soporte1,Soporte2 (3 values) in the variable and second variable to include MSanz, PRojas. You can maintain these two variables values in the tvarvc table and use these variable  in the reports directly. This approach is very very useful if you want to use this variable in many reports ex, 10 or more. Directly you can drag createby and its corresponding variable.
    Choose the best approach for your requirement.
    Hope it helps.
    (assign me points)
    Thanks
    Lasya.

  • User entry variable with exclude values

    Hello All,
    I created a  user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable.  When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below.  Any useful input will be awarded
    Diagnosis
    Variable &V1& is used in the query in such a way, that an optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
    System response
    Procedure
    If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
    Procedure for System Administration

    Hello ,
    I did try creating a variable with the foll details:
    Variable Type : User Entry / Default Value
    Variable Represents : Multiple Single values
    Variable entry optional
    When I run the query it converts my variable to mandotary entry.  but I want to have optional user entry variable.
    Any help will be awarded

  • MSS General info - exclude values in filter?

    Hi
    We have Employee Group as part of the columns in General data.
    It is possible to Filter, eg to set Reg* and get all "Regular employees".
    But is it possible to filter by excluding a value.
    Example:
    Given following emp.groups:
    Regular Employees
    Temporary Employees
    External
    We want to exclude External employees via filter function.
    Br
    Kirsten

    Hi,
    Please check the below links it will help you in defining the filter on the columns.
    /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter
    /people/kapil.kamble/blog/2006/12/21/how-to-get-ready-made-filter-for-your-web-dynpro-table-with-minimal-coding
    /people/subramanian.venkateswaran2/blog/2005/05/10/filtering-table-values-using-webdynpro
    Table Filter (Generic Method)
    Hope this helps.
    Cheers-
    Pramod

  • BEx variable screen to exclude values from selection

    Hi,
    I have a requirement in the BEx report variable screen here my user want to select values for the variable and
    from the values in selection on right hand user wants to exclude few values.I want the red color exclude button to appear in the screen.can anyone tell me whether there are any commands in WAD for variable personalization.
    Thanks,
    Harsha

    Hi,
    Try this.
    TABLES : ztable.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : p_field1 TYPE field1_in_ztable,
                            p_field2 TYPE field2_in_ztable.
                            p_field3 TYPE field3_in_ztable.
                            p_field4 TYPE field4_in_ztable.
                            p_field5 TYPE field5_in_ztable.
    SELECTION-SCREEN:END OF BLOCK b1.
    DATA : itab TYPE TABLE ztable,
                 wa_itab TYPE ztable.
    AT SELECTION-SCREEN.
          MOVE p_field1 TO wa_itab-field1.
          MOVE p_field2 TO wa_itab-field2.
          MOVE p_field3 TO wa_itab-field3.
          MOVE p_field4 TO wa_itab-field4.
          MOVE p_field5 TO wa_itab-field5.
    INSERT ztable FROM wa_itab.
    IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 28, 2009 4:15 PM

Maybe you are looking for

  • Crash in native calls to MAPI

    Hi All In the application that we are developing, we have java wrapper over Micosoft MAPI calls to integrate with MS Exchange Server. Our Application can be run in two modes (local and remote). In local configurations, all the calls are in the same J

  • Running out of OS level space.

    Hi, Can you guys help me out in this problem. I am using UNiX as OS and running 9i database Running on SUN Machines. For some reason my oracle partition at OS level is running out of space. It's not because my datafiles are full or any file is reachi

  • Rework Order Processing

    Hi Gurus, I would like to be clarified on the Rework Order Processing. There are some threads that says that I need to use CO07 transaction and create a new Order type. But in rework, what if I need to replace a new component. how will i settle accor

  • How does Aperture store changes

    The difference between iPhoto and Aperture is that when you edit a photo in iPhoto, the app creates an entirely new file to store the changes, while Aperture, on the other hand, can store multiple versions (edits) of a picture in a single file, thus

  • None of the solutioin Manager ST and ST-TAO packages were found

    Hi all, I'm in the middle of installation and configuration of SAP TAO. My SAP TAO was fully connected to the SAP SolMan (SAP EHP 1 for SAP Solution Manager 7.0) and to HP QualityCenter/QuickTest Pro (both with version 10). But I canu2019t connect to