Variable for value range

Hi
I want to use a variable for giving a value range in a customer exit.
My scenario is that i have to find the total of quantity for the previous fiscal year. i have declared a variable with the following parameters :
Processing type : Customer exit
variable represents: Interval
variable is not ready for input.
I have to pass the initial and the final fiscal periods. I have written the code for it as
        l_s_range-low  = l_frstyr.
        l_s_range-high = l_lstyr.
        l_s_range-opt = 'BT'.
but when i execute the query i get an error saying "Variable Z_FP01_1 contains too many values".
How can i solve this problem????
Regards
Sujai

maybe l_s_range already has values for thah variable, or you are doing the addition of values several times because of you are not having in count the i_step variable.

Similar Messages

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • Finding short text description of Fixed values for value range for domain

    Hi,
    When I got to Dictionary: Dispaly Domain and click on tab value range; I get the template showing Fix. Val and its associated short text.
    I want to fetch the short text for a particular fix. val for a domain.
    How can I do that ? What table can I use it ? Or do I need to use some function module ?
    Lets say I want to fetch the short text for a given Fix val. for domain VBELN.
    Please help me out.

    Hi,
    You can use Function Module 'FM_DOMAINVALUE_CHECK' to get the fixed values of any domain.
    Regards,
    Atanu

  • SEM - Balance Scorecard: Run-time Variable for value

    Good day,
    I need to create a CPM Variable for a value that should be entered by the user at run-time. Could you please inform how this would be done?
    Regards
    Grant Carelse

    Hi Ravi,
    Created a basic query with a key figure (Actual Capital Spend) and the characteristic value (Number of Households, this should be manually entered when the KPI is accessed on the scorecard by the user viewing the KPI). What has occurred in the design process is that the CPM variable for number of households does not show up when linking the query to the value field in the Measure. Only the variable folders are showing up.
    Even if the CPM Variable does show up, I was thinking that this characteristic value has to be linked to a second value field so that I can divide the Actual Capital spend by the number of households. Would I be able to do this?
    Regards
    Grant Carelse

  • Customer exit variable for date range for the last day

    Hi,
    If user enters date ranges in variable
    suppose user enters 9/1/2010 to 9/15/2010 and we have to calculate currency conversion based on last day i..e 9/15/2010 . 08
    2)User input is date range 08/01/2010 to 08/30/2010
    I need from the customer exit 08/30/2010 (on last day) to calculate currency conversion.
    Can anyone help me with ABAP code to achieve this customer exit?And please tell me how to proceed step by step
    Sridhar

    create a variable to enter date range (ZDATE1)
    create a key date variable(ZDATE2) with processing type customer exit, should not be ready for input.
    In the exit ZXRSRU01 write below code.
    DATA: l_s_range TYPE rsr_s_rangesid,
          loc_var_range LIKE rrrangeexit.
    WHEN 'ZDATE2'.
        IF i_step = 2.
           read table i_t_var_range INTO loc_var_range
                    with key vnam = 'ZDATE1'.
            CLEAR l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
        ENDIF.

  • Control Document Posting for value range

    Hi All,
    I have requirment in which if a user tries to post a doument via T Codes ( FB01, FB50, FB60, FB70, FBV2 and a custom program which would use BAPI / BDC) and if the total amount of the document ie >999 $, the document should not get posted instead it should get parked and a workflow should be triggered for Approval.
    I think i need to use FIPP~CREATED event to trigger the workflow.
    But is there any FI configuration that i need to do so that the document does not get posted but automatically gets parked if it's value >999 $ and user tries to post it.
    How can I achieve this functionality of not allowing a user to Post but to Park if amount >999$.
    I tried searching BAIDs not able to fnid a suitable BADI.
    What is the functionality of configuration in tcodes OBWA and OBWJ.
    Thanks in advance.
    -Sameer.

    Hi Atif,
    Thanks for the response.
    How can we do this using Exit / BADI?
    Is it that we will have to display an error message to the user that he cannot post the document for the particular amount and will have to select/click the PARK option instead of POST option ?
    Thanks,
    Sameer.

  • RRI Problem: Transferring Value to a Value Range Global Filter

    Hi experts,
    I am facing a problem with the transfer of value during RRI jump. I have the following query definition:
    Sender Query: Customer ID, Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    Receiver Query: Billing Date, Valid From (<= replacement path "Billing Date"), Valid To (> replacement path "Billing Date")
    The problem lies in Valid From and Valid To. In both queries, I have defined a filter replacement path variable with value range for these two characteristics:  Valid From (<= Billing Date), Valid To (> Billing Date). However, no values will be transferred to the Valid From and Valid To in receiver query and this triggers an uncaught exception during RRI call.
    Could anyone please shed some light in this issue?
    Thanks,
    Joon

    Hi Suman,
    yes, both queries are from the same InfoProvider. When I provide static single values for the From (<= 31.12.2010) and To (> 31.12.2010) dates in global filters of the receiver query, I get the correct result. If I instead select the Replacement Path variables I get exception.
    Regards,
    Joon

  • Restrict Characteristic on value range in Query Designer

    Hi,
    In 3.5, it was possible to restrict a filter in the query designer on a value range, even if the start- and end values of that range did not exist in the master data.
    In 2004s, it is possible to restrict single value filters to a non-existing masterdata value. However, for value ranges, this does not seem to be the case. Do you know any workaround for this?
    Regards,
    Daniel

    of course, BI 7.0 support value range for restrict.Please kindly release more information about your case .
    Value Range
    • Instead of selecting single values you can quickly gather multiple characteristic values using this next option. This choice provides the following additional options:
    1. Between
    2. Greater than or equal to
    3. Less than or equal to
    4. Greater than
    5. Less than
    And you can reference following URL on this topic
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    Edited by: Brian on Oct 22, 2008 3:08 PM

  • Default value for variable are not within permitted value range (precalc)

    Hello BW community
    Issue:
    I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the  precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
    The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
    Error:
    The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
    The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
    So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
    Best regards and thanks
    Christian
    PS-1: System BW 701 / SAPKW70105
    PS-2 : there has been a SDN entry with the same topic but not resolved too.
    link: /thread/980839 [original link is broken]

    Hello,
    Thanks for your response.
    I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
    oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
    Thanks,
    Jai

  • Can we create range variable for Query Key Date

    Hello Gurus,
    Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
    so, Please let me know if we can use Range variables for Query Key Date ??
    Thanks in advance,
    Regards,
    Aarthi

    Hi Aarthi,
    This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
    The default key date value is the date on which the query is executed, that is <Today>.
    Hope this helps...

  • Which BW variable is used for date(range) when creating a portal service

    Hi,
    Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
    Thanks
    Abhai

    Hi Arun,
    its just a portal service which would be called when  searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I  and for single value variable we VAR_VALUE_EXT_I
    in the similar manner i want BW variable to be used for range of values.
    Thanks
    Abhai

  • Delete values for a range

    Hi ,
         I want to delete records only for a given range. Below is the script it deletes the records based on the given MP range.
    And in this Switch table screen shot i have a switchID and ControlPointID column as main reference . For the given range only those records will be deleted. Now i want to delete a different table called SSDB_WIUDATA only for the controlpointIDs deleted on
    this switch table. The scenario is ControlpointID will be same even out of the given range also.but switchID will be different So it was easy to delete the records in switch. But while deleting in WIU data i have  WIUDataID and ControlPointID as main
    column reference . How do i delete the values from WIUData only for the values deleted in switch table? Here ControlPoint ID will be same even out of the range also. So i should delete only within the range that is deleted in Switch table. I dont have Milepost
    refernce also in WIU table.i have only ControlPointID as reference. Pls help me 
    IF (CURSOR_STATUS('global','Switch_cur')) >= -1 
    BEGIN 
    DEALLOCATE Switch_cur 
    END
    DECLARE Switch_cur CURSOR FOR
    Select SwitchID,ControlPointID FROM SSDB_Switch
    WHERE Milepost BETWEEN @BeginMP AND @EndMP 
    AND SubdivisionID = @subdivisionID
    OPEN Switch_cur
    FETCH NEXT FROM Switch_cur INTO @SwitchID,@ControlPointID
    WHILE (@@FETCH_STATUS=0)
    BEGIN
       set @Swi = (select Talon_LocEqup_ID from Mapping
       where SSDB_ControlpointId_Asset_Id = @SwitchID and AssetType='PTC-Switch')
    Delete from tbl_equipmentObjectPropertyValues 
    where equipmentObjectPropertyValue_object_guid_fk = ''+@Swi+''
    Delete from tbl_objects
    where object_guid_pk = ''+@Swi+''
    DELETE from Mapping
    where SSDB_ControlpointId_Asset_Id = @SwitchID
     DELETE FROM SSDB_Clearancepoint
     WHERE SwitchID = @SwitchID
    DELETE FROM  SSDB_TurnoutSpeed
    WHERE SwitchID = @SwitchID
     DELETE FROM SSDB_SwitchRelationship
     WHERE SwitchID = @SwitchID
     DELETE FROM SSDB_Switch
     WHERE SwitchID = @SwitchID
      FETCH FROM Switch_cur INTO @SwitchID,@ControlPointID
         END ----Cur End
    CLOSE Switch_cur
        DEALLOCATE Switch_cur        
    Deepa

    Below is the table structure of Switch and WIUData
    CREATE TABLE SSDB_Switch (
    SwitchID int IDENTITY PRIMARY KEY,
    ControlPointID int,
    WIUDataID int,
    MilepostPrefix varchar(5),
    MilepostSuffix varchar(5),
    Milepost decimal(10,3) NOT NULL,
    TrackName varchar(20) NOT NULL,
    Latitude decimal(15,8) NOT NULL,
    FOREIGN KEY(WIUDataID) REFERENCES               SSDB_WIUData(WIUDataID),
    FOREIGN KEY(ControlPointID) REFERENCES          SSDB_ControlPoint(ControlPointID)
    CREATE TABLE SSDB_WIUData (
    WIUDataID int IDENTITY PRIMARY KEY,
    ControlPointID int,
    DeviceStatusTableID int NOT NULL,
    BeaconFlag varchar(1) NOT NULL,
    ConfigCRC varchar(8) NOT NULL,
    EncryptedHmacKey varchar(64) NOT NULL,
    WIUAddress varchar(64) NOT NULL,
    WIUID decimal(12,0),
    WIUName varchar(40),
    WSRSType varchar(17),
    InsertDate Datetime NOT NULL DEFAULT getdate(),
    UpdateDate Datetime,
    InsertUser varchar(50),
    UpdateUser varchar(50),
    FOREIGN KEY(ControlPointID) REFERENCES SSDB_ControlPoint(ControlPointID),
    FOREIGN KEY(DeviceStatusTableID) REFERENCES SSDB_DeviceStatusConfiguration(DeviceStatusTableID),
    FOREIGN KEY(BeaconFlag) REFERENCES SSDB_BeaconFlag(BeaconFlag),
    FOREIGN KEY(WSRSType) REFERENCES SSDB_WSRSType(WSRSType)
    Below is the screen shot for Switch for a range of 170 to 172 Milepost.For this range i have control point ID as 48. And even ControlPoint ID is same for 173 Milepost also. In switch i have deleted only for the range.
    Below is the screenshot for WIU table . Here i have only ControlPointID as reference. Even in this table i should delete only the records deleted in switch table.
    Deepa

  • Validation for the select option value range of selection screen

    Hi All.
    if i wish to validate the selection screen parameter for a value range(select options),is it possible?
    what should i write in code.Also,m using FM DD_DOMVALUES_GET to get the values for a specific domain name.
    Please reply.

    Hiii,
         Yes it is possible.... Can you give me the piece of code ... about the select option
    and also the value range against which you want to validate the select option.
    So that i can help you with the coding tips...
    Thanks in advance..

  • Variable for 0FISCPER displays od values

    Hi
    I have created a query containing a interval variable for 0FISCPER. The Query is based on a multiprovider that is build on a single ODS containing WBS line items loaded through 0CO_OM_WBS_6. When the query is run and the variable box appears I press the selection button for 0FISCPER. It displays som od values for selection that does not exist in the ODS. fx. 001.0010. When i select such a value it is converted to 001.2010. The ODS only contain data for 2003-2006.
    Can you help me to understand what causes this, so i am able to fix it.
    Chris

    1.     On the Administrator Workbench: Modeling screen:
    a.     Choose Source Systems.
    b.     In the right hand window select the source system from which you would like to transfer the global settings.
    c.     From the context menu choose Transfer global settings.
    2.     On the Transfer global settings: Selection view in the frame Transfer global table contents select the checkboxes for the settings you want to use from your R/3 source system:
         Fiscal year variants to transfer fiscal year variants
    3.     In the frame Mode choose Update Tables.
    4.     Choose Execute.
    5.     Choose Back twice.
    Then try your reporting......

  • How to pass pageFlowScope variable value as bind variable for VO

    Hi,
    I have one fixed lov (not based on datasource), if i select any value in that lov i want to pass this value to a pageFlowScope variable.
    After this i want to use this value as bind variable for VO. whenever the vo executes thereafter this bind variable should filter that vo results.
    My jdev version: 11.1.0.0
    Thanks in advance,
    SAN

    san-717,
    can you elaborate on the use case instead of the implementation you don't get done? I understand you have data displayed in a tree: so lets assume the tree structure is Locations, Departments and Employees according to the Oracle HR sample schema.
    1. What is the LOV supposed to do ?
    2. Where is the LOV located ?
    3. What values does the LOV show ?
    4. Is the LOV a select choice component or a real LOV (with search dialog)
    5. Where is the bind variable used ?
    To me it sounds like you want to filter the tree data based on the select choice value. However, you wont do this by passing the bind parameter to all View Objects involved as they may not have the attribute in their query. So your use case is important to answer the question
    Frank

Maybe you are looking for

  • Problem in Procedure compilation

    CREATE OR REPLACE PROCEDURE leave_emp (p_id IN employees.employee_id%TYPE) IS BEGIN DELETE FROM employees WHERE employee_id = p_id; log_execution; END leave_emp; While i am compiling the above procedure, i got the below error: CREATE OR REPLACE PROCE

  • Wvc54gca doesn't recognize wag200g in wifi

    Hallo, ethernet between router and camera is ok with a cable but without cable it doesn't work. I have tried help step by step on linksys website but without success. i have a ssid and a 64-bits wep key. I connect to camera at http://192.168.1.110 (f

  • Value help in webdynpro applications

    Hi,   I have implemented a simple value help application in webdynpro as given in one of the pdf's and it is working fine. I get a value and description pair as popup. I have changed the field name to "Subject ID" as shown below. and it is working fi

  • Font.getFontName(locale) error?

    getFontName(locale) always returns English typeface names, e.g.' Arial Bold' instead 'Arial Fett' as expected in German by specifying run options -Duser.language=de -Duser.country=CH -Duser.variant=Windows Environment: - jdk1.5.0_06 - Win2K Java 1.5

  • Lightroom 5 Entwickeln Modul

    What's the difference between the Cameraraw converter from PS 2014 CC and the "Entwickeln-Modul" in Lightroom 5 CC? Or is the Cameraraw converter a part of Lightroom?