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

Similar Messages

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

  • How to define variable for below scenario in report

    Hi,
         iam designing a report in that report  if i enter the user selection was for Fiscal Year/Qtr = 2008/Q3, the data retrieved will be the Fiscal Year/Quarter selection and for the last 20 Launch Year/Quarters based on the Fiscal Year/Quarter i.e. from Launch Year/Qtr 2003/Q4 to 2008/Q3.
         how to acheive this in report. plz help me

    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

  • How to define variable for smart form in coding

    hi all,
    i have to create a variable for smart form which is i already created in  smart form but facing some sort of difficulties.
    for example:
    DATA:  formname  TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)
    DATA:  formname  TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)
    DATA:  formname   TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)
    CASE in_mseg-bwart.
      WHEN '101' or '105' or '321'.
      formname = 'FORM_RECEIPT'.
      WHEN '122' or '124'.
      formname = 'FORM_RETURN_VENDOR'.
      WHEN '201' or '261'.
      formname = 'FORM_GOODS_RESERVATION'.
    ENDCASE.
    So this the logic im using but it gave me error like:
    Type  ZCCCL_GOODS_RECEIPT is unknown.
    Kindly tell me if this coding is wrong than what should i use.
    Thanks.

    Declare variable name for smartform as
    Formname type TDSFNAME in import tab.

  • Variable for calender month in BEX Query

    Hi all ,
    I am new to BI .
    Can any one please guide on how to create a month year variable that I can get calculated from a date..
    For Example
    if billing date is 01.02.2009 then my variable should have 02.2009 in Query   .
    Regards,
    Shashank

    Hi Shashank,
        You can achieve this by creating a customer exit variable for calendar month.
    Function module :
    READ TABLE i_t_var_range WITH KEY vnam = 'Date variable name ' INTO loc_var_range.
       IF sy-subrc = 0.
        year = loc_var_range-low(4).
        month = loc_var_range-low+4(2).
         CLEAR l_s_range.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         CONCATENATE year month INTO l_s_range-low.
         APPEND l_s_range TO e_t_range.
       ENDIF.
    Hope this will help you. Let me know if you have any questions.
    Regards
    Suvarna

  • How to get the Net value in SD Bex query

    Dear All,
    We have a  key figure called Net Value in SD query 0SD_C03_.  But in validating data with ERP system to this bex the value is not matching.
    In this Query we are maintain sales doc category -C and Item category.
    Because the  Net value is depends on all the above mentioned condition.Please let me know the solution to validated the data with ERP to above Bex query.
    Please let me know the possible t codes in ERP to validate  the  above query.
    Thanks
    Regards,
    Sai 

    I dont think you can capture the offset applied value in a exit as the value is dependent on the variable itself and nothing to capture the result after the offset has been applied.
    why dont you capture the variable value itself and apply the logic to do an offset in the customer exit?

  • User Prompt for Date Range in Bex Query Analyzer

    I have a workbook that has two queries. The queries both require the user to enter a date range upon refresh. I want the user to be able to hit refresh, enter the date input into the dialog box and then both queries to use this date range for their input. I have seen this in other book, but when I click refresh on my book it only runs the first query. How do I get the second query to use the first queries input?

    use the same variable in both the queries. this will let the user enter the date in a single variable and this will refresh both the queries.
    rgds, Ghuru

  • How to defined data carrier valued for Linux?

    Hi,
    I am Defining Data Carrier. But I don't understand "Data carrier type" value. Is this PC value data carrier type  for window? So If I want to define value data carrier for Linux. How to defined data carrier valued for Linux?
    Please advise,
    Duypm

    Hi Nikita,
    Refer the below mentioned links for your requirement.
    http://forums.sdn.sap.com/thread.jspa?threadID=412923
    http://forums.sdn.sap.com/thread.jspa?threadID=1639500
    Both have good guidelines on coding as well as configuration part.
    Regards,
    Deepak Kori

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • How to define roles for the reports that i have created using WAD?

    Hi all,
    Can anyone let me know how to define roles for the reports generated using WAD. And what is the procedure for creating and defining roles. Is this process take care of Bw consultant nor the basis guys.
    Can anyone let me know the entire procedure about the roles in bw 3.5
    thanxs
    haritha

    Following links might helps you
    create a role
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/authorizationinSAPNWBI&

  • How to define job for V_V2

    Can anybody tell step by step "how to define job for V_V2"?
    Thanks in advance for the answers.....

    BElow there exist a good document:
    http://www.scribd.com/doc/39230554/Background-Job-Scheduling-in-SAP#source:facebook

  • How to define Discounts for Salesman?

    Hi all,
    How to define Discounts for the Salesman in either the Receivables or Order Mgt Module?
    Rgds

    Hi,
    Please try this:
    Define discount account in Financial Options
    In Payable Options > Payment Tab, uncheck the Check box: "Exclude Tax from Discount Calculation"
    In Payable Options > Invoice Tax Tab, check following Check boxes: "Use Automatic Tax Calculation", "Calculation Level Line", "Allow Calculation Level Override".
    In Payable Options > Withholding Tax Tab, check following Check boxes: "Use Withholding Tax", "Allow Manual Withholding", "Include Discount Amount", "At Invoice Validation Time", "Never"
    At supplier site level in Payment Tab, use the Payment Terms as create in step 1:
    Term Date Basis - Invoice,
    Pay Date Basis - Discount, and
    Check the Check Box - Always Take Discount.
    At supplier site level in Invoice Tax Tab, use the Tax code as created in step 2:
    Calculation level - Line,
    Check Allow Calculation Level Override,
    Rounding Rule - Nearest, and
    Uncheck - Distribution Amount Include Tax.
    Thanks,
    Shikha

  • How 2 define alias for WD Component / Application

    Hi all,
    There are methods in IWDDeployableObject to get WD Component / Application (WDDeploableObjectPart) by alias.
    But how to define alias for them? Where should definition be placed and what is the format? Could anyone share working example or point to related documentation?
    VS

    Noufal & Bharathwaj,
    Probably there is a confusion here: HTTP aliases are related only to corresponding service, and affects how URL is composed / interpreted.
    On other hand, aliases I mentioned are related to  deployment service (in this case: lookup deployable object part by alias). By the way, they cover both WD applications and <b>components</b> (probably component interfaces and more).
    Valery Silaev
    EPAM Systems
    http://www.netweaverteam.com/

Maybe you are looking for