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.

Similar Messages

  • 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

  • Retrieve values of other exit variable

    hi gurus
    i have to build an input ready query where on rows u have:
    funds center          cost center         profit center     account
    and on columns:
    0fiscper3
    0amount
    the user enter on the variable screen this:
    0comp_code
    0fiscyear
    funds center
    currency
    0account
    So just using the funds center I have to show cost center (matched with funds center on a Z Characteristic that I ve created) and the profit center for every costcenter (consulting 0costcenter on 0profit_ctr attribute).... I m using 2 exit variables  on cmod ( one for getting costcenter and other for getting profit center), but when i have to feed profit center variables I have to retrieve the values for costcenter that were got for this variable... but how can I do this? Can I retrieve the values of other exit variable when filling profit center variable?
    By the way I can use relation characteristic over this infocube because there already is an abap program that makes some logic over this infocube.
    some suggest? point will be assigned
    regards

    hi Ashish Tewari :
    That s the way I was doing...
    in ur example, are u considering 'ZCOST_CTR' as other exit variable? Because it s an exit variable that I fill through funds center variable whis user input...
    If its not, what do u suggest? 
    here s my code, it works but it match every costcenter with all profit centers , which is wrong, every costcenter hast just 1 profit center...
    ** VARIABLE FOR 0costcenter
      WHEN 'ZECCVAR045'.
        IF i_step = '2'.
          READ TABLE i_t_var_range INTO l_s_var_range WITH KEY vnam = 'ZECCGE001'.*this variables contains funds center
          centro_gestor = l_s_var_range-low.
          SELECT * INTO TABLE it_cenges_ceco
          FROM /BIC/MZECFM012
          WHERE objvers   = 'A'
          AND funds_ctr = centro_gestor.
          LOOP AT it_cenges_ceco INTO ls_cenges_ceco.
            l_s_range-sign = 'I'.
            l_s_range-opt  = 'EQ'.
            l_s_range-low  = ls_cenges_ceco-/BIC/ZECFM012.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        ENDIF.
    ** VARIABLE for profit center for each cost center
       WHEN 'ZECCBE010'.
        IF i_step = '2'.
          BREAK-POINT.
          CLEAR it_cenges_ceco.
          CLEAR ls_cenges_ceco.
          CLEAR centro_gestor.
          READ TABLE i_t_var_range INTO l_s_var_range WITH KEY vnam = 'ZECCGE001'.
          centro_gestor = l_s_var_range-low.
          SELECT * INTO TABLE it_cenges_ceco
          FROM /BIC/MZECFM012
          WHERE objvers   = 'A'
          AND funds_ctr = centro_gestor.
          LOOP AT it_cenges_ceco INTO ls_cenges_ceco.
              CLEAR ls_ceco.
              ceco = ls_cenges_ceco-/BIC/ZECFM012.
              SELECT SINGLE * INTO ls_ceco
              FROM /BI0/MCOSTCENTER
              WHERE objvers   = 'A'
                 AND costcenter = ceco
                 AND dateto = '99991231'.
              l_s_range-sign = 'I'.
              l_s_range-opt  = 'EQ'.
              l_s_range-low  = ls_ceco-PROFIT_CTR.
              APPEND l_s_range TO e_t_range.
          ENDLOOP.
    *     BREAK-POINT.
        ENDIF.
    ENDCASE.

  • Passing multiple single values in Customer Exit Variables

    Hi,
    I have one requirement to Pass multiple single values in Customer Exit Variable.
    If the user gives 2010 i need to get value previous fisacal year(2009),if its 2009, we need to get 2009.
    Just requirement is like how to pass multiple single values?
    Thanks.

    Hi..
    For this create a variable- Types of variable= Characteristics Value> Processing type as Customer Exit-->Reference Char as Fiscal year..
    Try this code..
        when 'xxxx'.
          DATA: lv_zp0003_month(2) TYPE n,
                  lv_zp0003_year(4) TYPE n.
          CLEAR: lv_zp0003_month, lv_zp0003_year.
          lv_zp0003_month = sy-datum+4(2).
          lv_zp0003_year = sy-datum(4).
    If the month is January the year is set to previous year
          IF lv_zp0003_month = '01'.
            lv_zp0003_year = lv_zp0003_year - 1.
           l_s_range-low = lv_zp0003_year.
    Else the year is set to actual
          ELSE.
            l_s_range-low = lv_zp0003_year.
          ENDIF.
          IF l_s_range-low = l_s_range-high.
            l_s_range-opt = 'EQ'.
          ELSEIF l_s_range-high IS INITIAL.
            l_s_range-opt = 'EQ'.
          ELSEIF l_s_range-low LT l_s_range-high.
            l_s_range-opt = 'BT'.
          ENDIF.
          l_s_range-sign = 'I'.
          APPEND l_s_range TO e_t_range.
    Hope this helps.
    Regards.
    AKG

  • Cannot determine a value for an exit variable in the Formula fn w/p empty

    Hi All,
    We have an exit variable Z_EX_AR_VAR, the would read a hierarchy node input variable (Z_HN_AREA), which is furthur based on a hierarchy input variable (Z_HR_AREA), and wouuld return the first leaf of it.
    We have implemented a input ready query based on this exit variable and it is getting the first node and is input ready and saves the data to the database.
    It works well in the query when we have filtered the characteristic with the hier and hier node and the exit variables.
    We need to use the same value to be used in the Fox function.
    As per the requirement, the Fox function has to process the zero (empty) records.
    So, we have customized formula function to process emptry records.
    And in the function of type formula function that processes empty records, we have used the following statement.
    DATA AR type ZAREA.
    AR = VARI ( Z_HN_AREA, HIENM=Z_HR_AREA, 1).
    We are getting the following error message:
    Cannot determine a value for the variable Z_HN_AREA.
    Planning function ended with errors.
    What is that we are doing wrong here. Is it with the 'Process Empty Records' function that cannot read the variable.
    How come this variable is working in the query and it is not working in the FOX.
    We have done the variable to variable binding in the WAD also. Still the same problem.
    Any ideas? Thanks in advance.
    Best Regards,
    - Shashi
    Thanks in '

    Hi All,
    Michael Wolf from SAP confirmed that we cannot use VARiable read functions in the customized Formula function that processes the zero (empty records) as he spoke to SAP AG about the issue.
    Hence we have made a work around by creating a valid record using a dummy key figure in the Custom Formula function that processes empty records so that in the next step, the regular Formula function would get executed, where we could access the variable values by using VARV, VARI functions.
    Thanks,
    - Shashi

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

  • How to view output of SAP Exit variables

    Hi All,
    I want to view the data of standard SAP Exit variables. For example, for displaying the current date, SAP has provided some variables to use in the report. Can you please guide me where to get all the variables and how to see the output of these variables.
    Thanks.

    Hi,
    1) In Business Content all the variable will available.
    2) If you will proper standard variable in your report, there is no need to check still you need to check then use RSRT tcode, give the report name and execute with EXECUTE+DEBUG option.
    3) for example current calender day data need in report then standard exit variable to you character sticks or depend upon same logic directly use in your key figure, in this case for that key figure value always current day date.
    4) it may helps you and elaborate your idea and explore your issue for further discussion.
    Thanks & Regards,
    Srinu.Raport

  • How to Find Code for SAP Exit variables.....

    Gurus:
    The SAP Business Content Query "0FIAR_C03_Q0005" uses several BC variables of 'SAP Exit' type for determining "Date" values. I would like to see the code used in these variables. Can anyone please suggest how I can find it?
    For examople, the variable on Posting Date is "0P_KEYD2". What is the ABAP code for this? Please give me the Steps..!
    Thanks in Advance......PB

    Generally SAP doesn't give access to the code behind SAP exit variables, but you can find what the variable is doing using help documentation. Here is some info i saw on SAP help for your variable
    0CWD Current workday
    0DAT Current calendar day
    0P_KEYDT Key date of due date
    0P_KEYD2 Key date of posting (from key date of due date)
    0P_KEYD3 Key date of clearing (from key date of due date)
    0P_KEYD4 Key date of posting (posting date)
    0P_KEYD5 Key date of clearing (from key date of posting)

  • Value for user-exit variable  is invalid

    Hi Gurus,
    My Value for a Fiscal Year Prd returns a invalid value for the 12th month of each year( for Example 12/2004, returns the error "Value 200313 for User-exit variable is invalid.
    This is the code that is being used.
    *Rolling 12 months for entered month
    when 'ZCALM12'.
          clear: v_mth, v_yr.
          REFRESH E_T_RANGE.
          CLEAR L_S_RANGE.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                   WHERE VNAM = 'ZCALMON'.
            exit.
          endloop.
          v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
          v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT = 'BT'.
          concatenate v_yr v_mth into L_S_RANGE-LOW.
          L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
          APPEND L_S_RANGE TO E_T_RANGE.
    Thanks in Advance.

    Hi Ravi,
    when 'ZCALM12'.
    clear: v_mth, v_yr.
    REFRESH E_T_RANGE.
    CLEAR L_S_RANGE.
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZCALMON'.
    exit.
    endloop.
    <b>-->> Here, you are not checking any thing.</b> <i>On which logic you are reducing year by one and increasing month by 1..?</i>
    v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
    v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
    -->><i>IF month is 200512 you will get output from above code is :</i> please check.
    v_yr = 2005 - 1 = 2004
    v_mth = 12 +1 = 13.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    concatenate v_yr v_mth into L_S_RANGE-LOW.
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
    APPEND L_S_RANGE TO E_T_RANGE.
    Try to debug the code by keeping break point after When. and execute the report, you will be debugging mode.
    Hope it Helps
    Srini

  • Table look up using value from customer exit variable

    I have a customer exit variable, CURRMON, which the user enters in the format MM/YYYY. From this entry, I would like to do the following to calculate and display the number of business days in the selected month:
    Do the following to get Business Days in month.
    Use the KF "FBA Day"  (CTAFBAD) from the CTA_M01 infocube and write ABAP routine.
    1. Based on user entry cal month get the last calendar day .
    2. Do a master data look up (CTAFBAC is the master data object), using the last calendar day from step 1.
    3. CTAFBAD is the attribute of CTAFBAC so move the value of CTAFBAD to the result, and display this result
    Can anyone help me with this?

    Hello,
    You can use i step = 1 in SMOD transaction and write the code there.
    l_s_range-low = sy-uname.
    append ls_range to e_t_range.
    regds,
    Shashank

  • Current filter values in Customer Exit variables

    Hi!
    I have a pretty hard question here that I would be impressed if someone has an answer to:
    The scenario is:
    I have a customer exit variable that should de dependent on the current filter setting in the query. Is it possible from within the customer exit code get information about the current filter(s)?
    I know that I can access other variables values, but in this case I would like to know which values that has been filtered on within BEx (after the popup screen).
    Regards
    Marty

    You asked for:
    1. In the field I_S_RKB1D-COMPUID (or GENUNIID I'm not quite sure) you get the internal query name.
    2. Look in RSZELTXREF with SELTUID = I_S_RKB1D-COMPUID.
    3. The filter values have LATYP = FIX (if they are in the filter box).
    4. Search table RSZRANGE with ELTUID = RSZELTXREF-TELTUID.
    5. Don't wonder if this doesn't work anymore after an upgrade
    Best regards
    Dirk

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

  • How to get back a BW exit variable in a WEBI

    HI,
    I have created an exit variable on 0CALDAY (calendar day) in a BW query which return me the current day. I have created an univers based on this query.
    When I create a WEBI on this univers, the exit variable is not taken into account. Even if I put the calendar day in the filter section.
    Can anybody help me please ??
    Regards.

    Hi Jon,
    BEx exit variable will not appear in BOBJ universe/report and it can be seen in BOBJ universe/report when the BEx exit varaiable created is used as prompt value/selection at BEx.
    Once, BEx exit variable is added in BEx prompt/filter, the same can be used as filter in BOBJ universe/filter.
    Regrads,
    Chithambar.

  • How to pass values between user-exits?

    Hi,
    I have to use two user-exits for changing tolerance limit of POs. In one, I have to check for the condition and in another, I have to change tolerance limit.
    How to do it?
    Thanks in advance.
    Regards,
    Arun Mohan

    Hi Arun,
    Use EXPORT and IMPORT.
    Means EXPORT value from on exit and IMPORT the value from another exit.
    In One Exit :
    EXPORT (OBJ_TAB) TO MEMORY ID 'ABCD'.
    In Second Exit :
    IMPORT (OBJ_TAB) FROM MEMORY ID 'ABCD'.
    Lanka

  • How to load value to a static variable on the run

    hi all
    i have a question about static variable. i need to have a variable to keep a value from DB shared by all instances. the variable is given value when the first instance is created. but from time to time, the value in DB may change, but i still need to maintain this shared value among instances. the static variable has life time as long as the program runs, does that mean if i need to change the value, i need to stop the program, and restart to load the new value? thanks.

    can the static variable be accessed within a
    non-static method, for instance, set the value by
    setXXX() method?Yes, and oddly enough, that usually how I access all my variables...
    Example...
    public class StaticTester {
           static String theString = " My Message ";
           public void setMessage(String mess){
                      theString = mess;
           public String getMessage(){
                      return theString;
           public static void main(String[] theArgs){
                      StaticTester myTest = new StaticTester();
                    System.out.println(myTest.getMessage());
                    myTest.setMessage(" a New Message ");
                 System.out.println(myTest.getMessage());
    }Hope this helps...
    - MaxxDmg...
    - ' He who never sleeps... '

Maybe you are looking for

  • How to make a entire column editable in an ALV grid

    Hi all,          I am trying to make a column editable in an ALV grid. For that I wrote the following code. In the below code I have set the 'edit' field of ls_fcat to 'X'. But Iam getting Runtime error. Can anyone help in resolving this problem or s

  • Unable to edit the site in sharepoint designer 2013

    Hi, I have created a custom list for one of my requirement, and I want to change the look and feel of the custom list view, so I was trying to edit this list in SharePoint Designer 2013, I'm able to open the list in SPD 2013, but unable to edit anyth

  • Iphone 6 sounds sometimes Disorted on phonecall

    hello, on some phone calls the sound is sometimes - especially when the other participant is speaking loud -  very distorted and crackling through the built in  speaker or loudspeaker or through car Bluetooth connection. Not through the whole call, b

  • Beckup from old iPhone s5 to new iPhone 6

    HI How do I return the previous iPhone's backup the new iPhone I want   Return all application software   I mean For example : all calls of whatsapp and viber and skype I did them beckup thanks.

  • Txt pro file manager problem

    I suggest to solve this problem with new version of software update but it answered it cant be .ok if it cant be solve with update please guide me to solve this problem.mobile phone with out file manager doesn't have any mean and its very hard to wor