Anding of the Input Variables in a BEx Query

Hello,
I have following scenario: If the report is executed by user1, then one set of shipto's should be visible (also if that user enters a valid shipto, then only that should be visible) AND if the report is executed by user2, then any shipto's should be visible.
If I take two input variables for Shipto, one of them I give to user for input and the other I populate in the exits (I_Step = 1) by checking the user type and populate the 2nd input variable accordindgly then the list of shipto's for that user is given.
The PROBLEM occurs when the user also enters a Shipto, then the Output shows: List of Shipto's derived thru the exit plus the ones that user has entered, WHEREAS it should be that if the user has entered a Shipto then only that should be visible, i.e. it should be an 'AND' operation not 'OR' between two variables.
I hope this can be achieved by some way. If you have an idea about the same, it will be of Great Help.
Many thanks for your help.
Best Regards,
Sumita

Hi Sumita,
I think concept Valueset can be used here.
You define your values of "shipto" for user in a table and than accordingly you can use this in BEx.
I will see if I can find some more solutions.
Hope this helps.
Regards,
Ashish

Similar Messages

  • Date Format for the input Variable

    Hi all,
    I got an issue with Date format we enter in the input variable screen for the BEx Analyzer.
    We have given a format of MM/DD/YYYY. But when the users accessed the report, it is not taking the format of the variable i.e MM/DD/YYYY but it is taking the format of the users system.
    If the user's system format is DD/MM/YYYY, it is accepting the input inthe same format only.
    Why this strange behaviour?
    My questions are
    Is the input for BEx system specific? or variable specific?
    Rgrds
    Kumar

    Hi,
    I think it is user specific... you can maintain the date format for user ....
    Go to SU01 transaction or.. Go to SYSTEM -> User Profile -> Own data
    Here in defaults tab you can see the date formet for user...
    Hope this helps...
    Thanks,
    Vikrant Mahajan

  • Im trying to watch movies from my macbook pro to my new vizio, but when I connect the minidisplayport to HDMI cable to input 2, and switch the input from my remote to that input, nothing happens.  What am I doing wrong?

    I am trying to watch movies from my macbook pro (2010) on my new vizio tv.  I connected the minidisplayport to HDMI cable (bought from the apple store) and switched the input to the right input but nothing happens. What am I doing wrong?

    Hi T,
    Open Sys Prefs > Displays and check the settings there.

  • Copy control for dates and disable the input

    Hi All,
    I have the following problem: I'm trying to copy dates in a follow-up order from the source order (which works fine by implementing the CRM_COPY_BADY method DATES) and disable the input of the copied dates in the follow-up order (which doesn't work).
    In the change-parameter CT_INPUT_FIELDS you can specify the fields which have to be copied and furthermore you can control the modifiability of the field in the follow-up order via the parameter CHANGEABLE (e.g. 'A' means field can not be changed). This technique is the same in all methods of the copy BADI.
    Unfortunately it doesn't work for the dates. As I said already, the date is copied but can be changed by the user in the follow-up order.
    Anybody an idea?
    Thanks and best regards, Lutz

    Dear John,
          Actually, I have tried with copy requirement 2.However, it works for copying a different customer with the same sales area as original. Yes, I may need to ask developer to solve my solution. But I would like to keep it to be the last choice. I tried to search "How to copy document between inter-company businees"; but the I still not get what my custome's want.  Anyways, thank you very much for sharing idea.

  • HT2508 My amp has an USB input but when I attach my mac pro to it, and set the input to the USB setting, no sound comes out. I looked at the system settings, but none of them produce a different outcome. How can I send the music through the USB out to USB

    My amp has an USB input but when I attach my mac pro to it, and set the input to the USB setting, no sound comes out. I looked at the system settings, but none of them produce a different outcome. How can I send the music through the USB out to USB in?

    AFAIK cameras offer their own built-in format utility for inserted SD cards.  You should use that.  Otherwise, refer to the manual that came with your camera to determine precisely how your SD cards need to be formatted to work properly.  Personally, I'd suggest Partition Scheme: MBR, and Filesystem: FAT32.
    Try to limit the number of formats you perform on the SD cards, though, as you're reducing their lifespan.  I believe formatting causes re-writes to a portion of the SD card that has fewer read/write cycles than the rest of the card as a whole.

  • Developing maths wave equation and make the equation variable.

    Hi expert..
    i am having difficulties to create  a program using mathematical wave equation and make the equation variable in 2 wave. e.g
    square wave=2*a/pi*atan(tan(pi*t/period)) or sine wave= a*sin(2*f*t).i need to change the frequency and amplitude between 2 wave together separately.can anyone help me please..
    Attachments:
    Draft pgm1.JPG ‏29 KB

    Sorry I didn't attach the VI. I have now attached the VI and a screenshot of the block diagram.
    Good Luck!
    Tom
    NIUK
    Attachments:
    forforum.JPG ‏88 KB
    example2.vi ‏13 KB

  • Extract the "bind" variables for a given query running in 10g.

    how can we extract the "bind" variables for a given query running in 10g? The performance of a query may vary based on the parameters supplied to it. For example, a query like the following
    SELECT * FROM CUSTOMER_ORDERS WHERE CUSTOMER = :CUST_ID
    .might run differently when the :CUST_ID is "123" who may have very few orders versus "456" who may have tens of thousands of orders.
    So, if we see a spike in the system due to a query, we need visibility into what the exact query syntax and values are for any database session. We're aware of an Oracle view called V$SQL_BIND_CAPTURE, but what we're finding with this view is that it's only a snapshot of variables that are refreshed on an interval. That view does not give us a live view into what values are being used in the various sessions in realtime.
    If someone ould provide us with some SQL (or other means) to do get a realtime view into the SQL and variables currently running in the database, it would be greatly appreciated.

    In addition to what's been said in the other thread, you could add a layer of logging either in the database or out.
    v$sql_bind_capture and the associated ash view dba_hist_sqlbind contain sample data.
    You could up the sample rate but it's not advisable - it's still just a sample.
    If you're on 11g, this is where adaptive cursor sharing might help.
    Not help in finding the values of your binds, but help in using different plans where there is such a skew for different bind values and the plan is perhaps wrong for customer 456.
    The problem when you're got such a skew and you're using bind variables is that the two don't really go together.
    When the query is next parsed and you've got bind variable peeking enabled, you might get the 123 plan is that is the bind value at parse time and then run into problems for 456 or even vice versa.
    See http://jonathanlewis.wordpress.com/2009/05/06/philosophy-1/ for a discussion on binds and histograms which reflects the reasons for using either.

  • BEx analyzer variable screen Copy  and paste the input values functionality

    Hi all,
    in bw 3.5 we have functionality on the variable screen we can do directly copy the values and paste in the input screen. But in BI 7.0 BEx analyzer I am not able to find it. Is it required to apply any patches?
    Please guide me on this.
    Thanks

    Hello All,
    We have a similar issue only in 2004s query designer when we execute a query via the web. We have the variable set up to accept multiple single values and we can pick multiple single values and add them, however, we cannot paste a list of, for example, personnel numbers from an excel spreadsheet into the web selection box to add multiple single values at one time.  Does this functionality exist?
    Regards,
    Ann Bohn

  • How to change the input variable xml structure before invoking an ext. serv

    Hi all;
    I have a bpel. in my bpel i have an invoke activity which calls an external webservice. I call my bpel with the input below.
    *<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
    *<SOAP-ENV:Body>*
    *<requestCustomerAccountBalance xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<header xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<application xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</application>*
    *<operationDate xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">03/14/2011 14:51:37</operationDate>*
    *<operationName xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</operationName>*
    *<transactionId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">3424342</transactionId>*
    *<userId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">tuba</userId>*
    *</header>*
    *<msisdn xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">5356474828</msisdn>*
    *<applicationName xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</applicationName>*
    *<channel xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">CSI</channel>*
    *<clientTimeStamp xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">03/14/2011 14:51:37</clientTimeStamp>*
    *<transactionId xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">3424342</transactionId>*
    *<accountType xmlns="http://impl.ejb.service.almanak.baca.turkcelltech.com/">ACC</accountType>*
    *</requestCustomerAccountBalance>*
    *</SOAP-ENV:Body>*
    *</SOAP-ENV:Envelope>*
    Before invoking the ext. service i want to change the input as follows.
    *<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://impl.ejb.service.almanak.baca.turkcelltech.com/">*
    *<soapenv:Header/>*
    *<soapenv:Body>*
    *<impl:requestCustomerAccountBalance>*
    *<!--Optional:-->*
    *<header>*
    *<!--Optional:-->*
    *<application>?</application>*
    *<!--Optional:-->*
    *<operationDate>?</operationDate>*
    *<!--Optional:-->*
    *<operationName>?</operationName>*
    *<!--Optional:-->*
    *<transactionId>?</transactionId>*
    *<!--Optional:-->*
    *<userId>?</userId>*
    *</header>*
    *<!--Optional:-->*
    *<msisdn>5356474828</msisdn>*
    *<!--Optional:-->*
    *<applicationName>CSI</applicationName>*
    *<!--Optional:-->*
    *<channel>CSI</channel>*
    *<!--Optional:-->*
    *<clientTimeStamp>20101010</clientTimeStamp>*
    *<!--Optional:-->*
    *<transactionId>676767</transactionId>*
    *<!--Optional:-->*
    *<accountType>ACC</accountType>*
    *</impl:requestCustomerAccountBalance>*
    *</soapenv:Body>*
    *</soapenv:Envelope>*
    HOW TO ACHIEVE THIS.???
    Any comment would be appreciated.
    Best Regards

    You can go through the below thread for removing the namespce
    Removing namespace from xml  created
    http://beatechnologies.wordpress.com/2008/09/25/stripping-namespace-from-an-xml-using-xquery/
    Edited by: 333333 on Mar 17, 2011 6:44 PM
    Edited by: 333333 on Mar 17, 2011 6:45 PM

  • Passing variables to a BEx query dynamically

    Hi All,
    We have a requirement to pass values for variables dynamically to a Bex 7x query because we do not want to prompt any variable screen to the user. I tried few steps as suggested in SAPBEXsetVariables range but still have some questions unanswered. So request your thoughts on the same.
    Below procedure has been followed.
    1. Open Bex Analyzer
    2. Navigate to Bex Analyzer (menu) -> Design Toolbar -> Insert Button. This will switch on the Design Mode.
    3. Click on the button, select "Workbook-Specific Command" and click on next (Data provider need not be worried about at this point as it can be changed later also).
    4. Select "Process Variables" and click on Finish.
    5. One more window with an heading "Properties of Button" will be shown with fields like "Name of Button", "Range", "Button Text", "Command Range" and few other.
    6. On the right side of this window, list of Static Parameters can be created.
    7. As an example, i created below parameters
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    and created a range having below details and provided this range in "Command Range" field (in button properties)
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    8. This DID NOT WORK for me. Actually nothing was happening when the button was pressed.
    After some investigation, i figured out that i need to have one command like below
    CMD          
              1     
    SHOW_VARIABLE_SCREEN
    Without this neither the variable screen was shown nor it read the parameter values from the excel range provided.
    Once this was done, the input screen was shown and with the values that i provided in my excel range.
    Here are my questions. Pls provide your valuable inputs.
    1. Why am i forced to have a command for "SHOW_VARIABLE_SCREEN"? Is this mandatory? problem with this is that user will always be shown a input screen which we don't want (in fact the very reason for this exercise is not to show the parameter screen but to supply values to it from the back end). Is there some setting that i need to do to get rid of this?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Thank you. Looking for a sooner response.
    Lohith

    Hi All,
    I figured out the mistake that i have done. Looks like the order of the commands is very important.
    In my case, i had something like below
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    I should not have the PROCESS_VARIABLES as my first command. Instead should have DP_1 or the SUBCMD as first argument. So below order worked for me.
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    CMD                         0          PROCESS_VARIABLES
    So, i don't need to have "SHOW_VARIABLE_SCREEN" command as i don't want to show the screen.
    But my second question is still unanswered. Can you through some light on it?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Lohith

  • BICS - Passing variables to a BEx Query

    Hi Experts,
    We are currently developing dasboards in Dashboard Design (XCelsius) using BICS. Since we want to leverage the 'create once, reuse many times' principle, we would like to populate our (data intensive) dashboard using 8 connections that fill out different values in one and the same BEx Query. The results (8 crosstabs) will be put in our embedded sheet on 4 different tabs.
    All data has to be refreshed before components are loaded (so this option is set for all connections).
    Furthermore, we set the 8 connections with the following parameters:
    [definiton tab].[input values].[variables].[BEx variable] > link to a cell containing tech name of input value
    [definition tab].[input values].[filters].[key figures] > link to a cell containing the tech name of the key figure we want to display in the crosstabs.
    Now, we are facing 2 problems:
    1. The variables are not automatically passed to the BEx query (we see a BEx web variable input screen on launch)
    2. The key figures are not filtered (we did set the tech key i.e. 8KPM8AAGH55L3ONGZC0Y27FBG)
    Does anyone have similar experiences, using BICS and (ideally) found a solution yet? I'd like to avoid creating 8 different BEx queries to solve this. Thank you in advance!
    KR, Bart Santing

    Hi,
    You have to map the excel cell to the exact keyfigure or vriable.
    For example.
    I have two filters in my BEx Query. Calendar Year & Country
    For mapping these filters expand the ==>Filters in Data Manager of xCelsius. Then you can see Calendar Year and Country. Map Calendar Year to an excel cell as well as map the country to another excel cell.
    Do this same for variable also.
    Thanks,
    Ajish George

  • Variable Selections in BEx Query Variants

    I am trying to save a variant for a BEx query that uses a floating date range.  I want the date range to move with the calendar.  I r/3 this is done with the variable selection.  In BW 3.5, I don't see how this is possible.  I only see options for TVARVC which are user exit selections.  Can someone point me in the right direction.
    Regards,
    Kevin B

    Hi Kevin
    Your requirment is that date range should move with calendar (ex. In first week , the date range should be from 1 to 7 of the current month & in  second week the date range should be from 1 to 15 of current month) ...if it is like this then you can go ahead with - create a variable and do the coding with sydatum (system date ) and embed the required logic. But if your requirement is completely random then you can not use this.
    Hope this helps
    Regards
    Pradip
    (Rewarding points is the way of saying thanks on SDN !!)

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

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Count and Percentile calculations for various Lines in BEx Query.

    Dear Experts
    I working on a BEx Query at the moment and the output is required in the format below:
    This and another report (which will be displayed above this report) will go into a WAD eventually.
    I have Key Figure for 'Document Count' but not sure how to get the percentage displayed in the second line and also for the Top 3 Reason Codes (not having anything displayed across 'Top 3 Reason Codes' though). I have tried Selection and other ways but nothing worked so far.
    Do I have to use Cell Editing by any chance or is there a way to work-around this.
    Thanks in advance for your help.
    Kind regards,
    Chandu

    You can achieve your report format by creating a Structure in rows with Cell definitions. Define each cell in COunt Document KF according to the row logic.

Maybe you are looking for

  • Where are Thunderbird e-mail files stored on my computer?

    I have read the suggested articles and followed the instructions as best I can, but I still cannot figure out how to get to profile (the path revealed in "Troubleshooting Information," by clicking "show folder," was not what I found on my computer---

  • Help with Java JAR file opbfuscation.

    I am looking for a free (no $) for use on commercial java code code obfuscation program, which can beat the Jode decompiler. I have tried Proguard, and I have tried Joga (using Jode itself for obfuscation is too complex for my purposes). Is there a s

  • Showing a photo not as an attachment

    I would like to send multiple emails with a gif. is it possible to send so the gif is already displayed and not sent as an attachment?

  • What can i replace an iframe with? (Death to double scroll bars!!)

    So the site I'm working with has a ton of links all directed to an iframe.  The iframe is set to a fixed size and will not expand/contract with the linked content so i end up with two scroll bars. Here is the web site. I was hoping for a 'quick' fix

  • Can I send invites on my calender appointments on my iphone?

    I don't have a clue what microsoft exchange is either. It has something to do with it. My friend just got a new ipad 2 and it works just fine. Is it just a ipad thing? I go to calender, press the + sign, enter the details, but their is nothing that s