Variable value to be populated based on user authorization

Hi all,
I want to have a variable with single value on plant.
when the user executes the report, value of the variable has to be populated automatically based on the authorization of the login user and it has to show the output without displaying the selection screen.
Kindly guide me of, what type of variable to create and to proceed.
Thanks.
I

Hi
Restriction Plant from user authorization can be achieved by the following steps
1. Plant infoobject should be authorization relevant.
2. make authorization object including plant and restrict to the plant u needed and assign the profile to the user
3. in BEX create variable of authorization type on plant. this variable will get the default values for the plant from the user authorization on the selection screen of the query.
4. if you dont want to display the variable on the selection screen then remove the chek box in variable that " variable is not ready for input"
thanks
radhika

Similar Messages

  • How to set a value in dashboard prompt based on user id

    Hi
    i have a requirment like i need to set a dashboard prompt value based on user's login.i.e.if i login as administrator
    the adminstrator is belongs to circle(my requirment)then the circle name willbe displayed in dashboard prompt .
    if any idea pease help me.
    thanks

    Thanks for yor reply.please you can tellme clearly how to set use 'NQ_SESSION.USER' to set the value to logged in User.i.e i have circle table in that users and circle names will be there.it is teradata database.so how can i set that in to the dashboard prompt and one thing along with that prompt the follwing prompts will be there
    mobile no<>
    date<>
    circle name<"user">
    this is my requirement so please help me step by step what to do for achiving this.
    thanking oyu

  • Reg :getting values loaded in value help in runtime based on user input

    I have a table column named partners with a drop down.when i select a value from the drop down i need to load the values in value help in next column(partner fun) in the table based the the user selection made in the 1st column.plz help me.
    currently the coding used by me is
    try
        String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
        if(partfn.equals("ShiptoParty"))
          wdComponentAPI.getMessageManager().reportSuccess("1");
         IWDAttributeInfo partattributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnersElement.PARTNER);
         wdComponentAPI.getMessageManager().reportSuccess("2");
    //from this part its not working
         ISimpleTypeModifiable part = partattributeInfo.getModifiableSimpleType();
         //ISimpleType part=partattributeInfo.getSimpleType();
         wdComponentAPI.getMessageManager().reportSuccess("3");
    //     Set field label and populate valueset
        part.setFieldLabel("key");
         IModifiableSimpleValueSet partvalueSet =  part.getSVServices().getModifiableSimpleValueSet();     
         wdComponentAPI.getMessageManager().reportSuccess("4");     
         for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
    wdComponentAPI.getMessageManager().reportSuccess("5");
    partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
                 wdComponentAPI.getMessageManager().reportSuccess("custid"+wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr());
        catch(Exception ex)
              wdComponentAPI.getMessageManager().reportSuccess("error in partfn table rfc"+ex);

    hai ayappa,
                  my context structure is
                        partnertable
    _subnode
    _Attribute1
    _Attribute2
                         |_attribute(attribute of partnertable node)
    when i set the singleton property of subnode to false i have another table in the same view wch is getting affected.also when i select the value from partners table attribute i need the subnode s attribute get populated.

  • Restricting values of a dropdown based on user roles

    Hi,
    Is it possible to restrict the values of a custom metadata dropdown based on the user roles (assuming only 1 role is assigned to each user)? Say, based on the role assigned to a user, he/she should see only 3-4 values out of 10 values in a dropdown on the checkin page. Please suggest.
    Thanks.

    You can get pretty close out of the box using some configuration manager applet voodoo
    1)First off create a Table that will contain the options for your list. Create the columns e.g. label and id and then also create a column called dSecurityGroup
    2)Add a view based on the table you just created, choose the Security tab and select "Use standard document security"
    3)Add some values to your view - make sure that you populate the dSecurityGroup column with real values of security groups
    4)Once it is all published, have a look at the checkin and search screens. You should find that UCM will evaluate the options in the same way it would documents - based on the dSecurityGroup value you applied to the row - e.g. you will see an option on the search screen if you have at least R permissions, you will see an option on a checkin screen if you have at least RW permission
    Try it out :-)

  • Look-up name value from XML file based on user entered number value

    My form has an "Employee Number" numeric field and an "Employee Name" textfield. I want the user to enter their employee number and have JavaScript that will "look-up" that employee number in the XML data file and return the corresponding Employee Name into the employee name textfield. I need an example XML data file and form with the appropriate script.
    Can anyone help me with this?

    Hi ,
    Re-read your post, find that the col2 in List1 is people and group type column, SharePoint Lookup type column showing additional fileds option does not support people and group type column, so there should be no OOB method to achieve your
    goal.
    http://techtrainingnotes.blogspot.com/2012/01/sharepoint-not-all-column-types-can-be.html
    I think you can try using InfoPath form to manipulate the correspond col2 value when lookup col1 from List1 then show in list view, or may use custom visual web part to achieve you goal.
    http://sharepointsolutions.com/sharepoint-help/blog/2011/11/get-infopath-to-display-lookup-column-value-not-id/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Passing variable values to the navigation block

    Hi WAD Experts,
      I have a requirement regarding passing variable values to the navigation block. User requirement is first give the selections on the selection screen and then after executign output should display in browser. In the output page we have a navigation block. So when user gives selections those selections should also populate in the navigation block. Your help will be appreciated.
    Prasad.

    Hi,
    if your variable is 'Changeable at Query Navigation' the chosen values will appear in the Navigationblock.
    Variables which are 'Not Changeable at Query Navigation'
    will not appear.
    You can set this Property when you create a Variable.
    Kind Regards,
    Alican Polat

  • Retain variable values across web templates during a web session

    Hi all,
    How can we let web template get variable values from another template's variable values so as to keep the same entry values as previous report run?
    For example 0vendor has a variable (for single, mandory) used in all  vendor related web templates. "vendor1" was entered for the second template.
    I tried to use "SET/GET PARAMETER" in variable user exit. It works in BI with RSRT,  but it doesn't work with Bex or Web template. Looks like web session is not sync with the ABAP stack.
    How about using cookie? How to create/reset cookie in variable user exit? Can we get variable values from web server memory or user session data?
    Please share your thought !
    Thanks for helping!
    David

    Hi Arun,
    All the web templates are randomly run by user, there are no set of templates run after one template. Any templates can run after any other web template.
    Basically we link  web templates with portal menu items. any report can be run by any sequence. The thing the new report need to take the previous selection values from common variables.

  • Populating values of a field based on logged in user

    Hi,
    My requirement is as follows:
    I have a LOV input field. The LOVs for the field should be populated based on the logged in user. Every user will have a group of values associated with him.
    Example:
    USER_ID/NAME BUSINESS_UNIT_ID
    1 B101
    2 B108
    1 B106
    1 B103
    2 B105
    2 B119
    if the logged in user is 1, the LOV field should have values as B101,B106 and B103.
    Can someone help me in implementing this?
    Thanks,
    Ashok

    Hi,
    looks like you have to populate LOV based on logged in user. so make a view object which will return respective values by taking user id as input(bind variable).
    execute the vo after loging.
    ~Abhjit

  • Pass variable and set default value based on user's group

    Hello
    I'm using SharePoint 2010 and SQL 2012. I need to send a variable to the page and based on its value, set default value for a drop down list and send it to other web part to filter the data. Is it possible for certain users to send that value as a default
    and limit user to see only this value in the text field or drop down list; for others - to allow to see the drop down list, but also set the default value for that list?
    The main page was designed in SharePoint designer, using web parts (aspx page). I had setup a connection to Active Directory and already have the code to get user's groups and based on their group, I have that variable pulled into the web page for further
    use. But I don't know how to pass that value as a default value to the web part (currently using SharePoint Filter web part). When I tried to set a default value for the web part - it automatically puts the quotation marks around the name of the variable
    and shows it as a text instead of showing the value of the field.
    Thank you!
    P.s. I have limited knowledge of SharePoint and need guidance (links, examples, recommendations)!
    Alla Sanders

    Thank you for your response. I'll try to give you more details. On PageA I check user's groups and based on the group, assign the value and pass it to the next page (no input from the user, all done behind the scene and user is redirected to PageB).
    On the next page I read that value and would like to send it to the SharePoint List Filter Web as a default value, as well as send it to another web part that displays the list from SQL, filtered using that default value. Ideally, if the user is from Group
    A, I'd like for them to have only one value in that drop down list; if user is from Group B - give him drop down list with 40 items to choose from. Below there is a part of the code and variable fnum has the value from PageA (if I print the value on the screen
    - I do see that it has correct value, so the code that gets groups from Active directory works correctly). If I assign fnum as a default value of the list, it shows "fnum" instead of the value of variable fnum. I connect to SQL database, using external
    content - so the other list that I'm filtering based on the value in that drop down list - is XSLT Data View Web part. I also have 2 more filters on that page, that user will have full access to and based on their input, it is also sent to the XSLT web part
    to filter out more data. Since one of the filters is the date and I am filtering data starting from the date that user chooses - XSLT is the only web part that I was able to make it work with.
    I looked at the link you provided (thank you). It is using Content Query Web part. Will it work with external content, as well as accepting multiple filtering, including custom starting date? I appreciate your help!
    <%
    string fnum = Request.QueryString["field1"];
    %><table cellpadding="4" cellspacing="0" border="0" style="height: 1000px">
    <tr>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" colspan="2" valign="top" style="height: 101px">
    <WebPartPages:WebPartZone runat="server" Title="loc:Header" ID="Header" FrameType="TitleBarOnly"><ZoneTemplate>
    <WpNs0:SpListFilterWebPart runat="server" FilterMainControlWidthPixels="0" RequireSelection="False" ExportMode="All" PartImageLarge="/_layouts/images/wp_Filter.gif" AllowHide="False" ShowEmptyValue="True" MissingAssembly="Cannot import this Web Part." AllowClose="False" ID="g_1ccc4bca_3ba1_480b_b726_adfdb1e9e02d" IsIncludedFilter="" DetailLink="" AllowRemove="False" HelpMode="Modeless" AllowEdit="True" ValueFieldGuid="fa564e0f-0c70-4ab9-b863-0177e6ddd247" IsIncluded="True" Description="Filter the contents of web parts by using a list of values from a Office SharePoint Server list." FrameState="Normal" Dir="Default" AllowZoneChange="True" AllowMinimize="False" DefaultValue="fnum" Title="Facilities List Filter" PartOrder="2" ViewGuid="2da5d8db-6b55-4403-80a8-111e42049f8b" FrameType="None" CatalogIconImageUrl="/_layouts/images/wp_Filter.gif" FilterName="Facilities List Filter" HelpLink="" PartImageSmall="/_layouts/images/wp_Filter.gif" AllowConnect="True" DescriptionFieldGuid="2d97730a-cd0d-4cb9-8b55-424951201081" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="True" TitleIconImageUrl="/_layouts/images/wp_Filter.gif" ChromeType="None" SuppressWebPartChrome="False" IsVisible="True" ListUrl="/Lists/FacilitiesList" AllowMultipleSelections="False" ZoneID="Header" __MarkupType="vsattributemarkup" __WebPartId="{768E2035-0461-4A09-8DDD-CA7020C2B23D}" WebPart="true" Height="" Width="615px"></WpNs0:SpListFilterWebPart>
    Alla Sanders

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

  • Key figure value based on user input.

    Dear Friends,
    We are using BI7.00 and NW2004S. In one of our report to monitor the number of notification closed and the number of notification open upto the user selected month. For this i have created a Query which has selection screen value as month. I have created a condition which will fetch the difference in days (notification completion - notification creation date) based on user entered value.  For example if user enters 10 in the selection screen, report will fetch the notifications which have diffrence in days as 10.
    The condition is okay for the above. What user actually wants is the number of notifications completed and that pending based on the value he enters in the screen. For example he enters 10 in the screen, system should show the values as shown below
                    > 10 days    
    Completed                Pending
              3                           2 
    I tried various options but could not achieve this.
    Experts help expected. Kindly provide solution.
    Regards,
    M.M

    Hi,
    As per my understanding 1 firstly u have to find out
    the no of days (diff between dates notification completion, notification creation date .)
    then u have to create condition on no of days which u
    have find.there u have to create one user entry
    variable for the user can enter his own parametrs.
    Right?????
    If It is right..
    here are the steps..
    1st:in the query designer at key figure coloumn create
    one local formula.in that local formula create formula
    variable with replacement path.in that take reference character
    notification completion.in the next tab take replace ment
    as key.in the last tab select "date".
    2nd: do the same thing for the notification creation date.
    3 rd : create 3 rd local formula and do the substraction
    for the first 2 local formulas.
    4th:create codition on the difference which u have find with
    on that condition u can create one user entry varibale.
    5th:while u defining the query put these 2 dates,i,e
    notification completion, notification creation date in the character block.
    If not system will ignore the formula variable which u created in
    above steps.
    Hope this wil help u.
    regards....KP

  • Selectively executing a mapping rule based on a variable value

    Hi,
    I have written a mapping rule in the following format.
    case #time_unit when 'quarter' then
    logic1
    when 'month' then
    logic2
    end
    In logic1, logic2 i again have nested case statements. Variable time_unit will have a static value hard-coded given (quarter/month) by user before execution.
    So Variable time_unit need not be checked for each row that gets transformed. It hits the performance.
    I want either logic1 or logic2 to be substituted dynamically in the mapping rule window based on the variable value.
    I cannot go for 2 seperate interfaces. How can I achieve this in ODI.
    Please help me.
    Thanks!!

    Sarah,
      I'm not aware of doing other than BPM. If you want the BPM Steps, Please refer below
      Step 1 : Receive
      Step 2 : Transformation
      Step 3 : Send (Syncronous call to the target system)
      Step 4 : Switch(Check the Payload value as per your reqmt)
      Step 5 : Transformation(Switch : False ,If the payload value is not ERROR)
      Step 6 : What you wanna do ( Switch :True)
    If you want more technically, then let me know the source and target systems, I will help you to design
    the complete flow.
    Best Regards,
    raj.

  • User exit to check user variable values

    Hi All,
    We have a user exit variable based on CALYEAR (to have the  last year as default value).
    Therefor, the user could choose another value (year)  but not values later than 2 last years.
    For instance, in 2010, the default value is 2010, and the user could choose 2009 or both 2010 and 2009.
    How can we check the user variable entries, and how can we prevent the user to do this.
    In other words, could you please give us the step number when we have put this checking (1, 2 or 3), and
    If itu2019s possible the ABAP programme to do this.
    Thank you in advance.
    Radjech.

    hi Radjech
    you can reach that with the i_step = 3.
    The step 3 is used for validation. This step checks the variable value keyed in by the user to see if you allow him to proceed the query.
    Here is an example.
    This code it to be included after the i_step = 1 where you give the default value of the year.
    Anyway the I_step = 3 is called only once.
    The case endcase is declared for the whole coding in the user exit. So for example you have
    Case i_vnam
    if i_step = 1.
    your treatment for default value.
    Endif.
    Then you give in the below coding.
    if i_step = 3.
    read table i_var_range into s_var_range with key vnam = zvar_calyear. " here I assume you have defined your simple and unique variable with the same technical name.
    if sy-subrc = 0.
    l_queriedyear = l_s_var_range-low(4) " here you retrieve the value of the variable in a local variable.
    endif.
    l_currrentyear =sy-datum(4). " here you take the current date and put it in a variable.
    if l_currrentyear - l_queriedyear > 2. " here you make the comparison of the current system date and the year of the variable. if it is > to 2 then raise the validation
    raise wrong_value. " here you can use  a raise wrong value
    Endif.
    Endif.
    Or you can combine a message with a raise like follows
    therefore example should be
    if i_step = 3.
    read table i_t_var_range into l_s_var_range with key vnam = zvar_calyear.
    if sy-subrc = 0.
    l_queriedyear = l_s_var_range-low(4)
    endif.
    l_currrentyear =sy-datum(4).
    if l_currrentyear - l_queriedyear > 2.
    Call functinn 'RRMS_MESSAGE_HANDLING'
    Exporting
    I_class = 'RSBBS'
    I_TYPE = 'I'
    I_number = '000'
    I_MSGV1 = 'Year value to big'.
    Raise wrong_value.
    Endif.
    Endif.
    eNDCASE.
    Boujema

  • How to select different Querys based on Variable Value

    Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
    I hope sombody could help me with this
    Message was edited by: Oscar Diaz

    Hi Diaz,
    Can you explain the exact scenario which you are looking for!!!
    regards
    Happy Tony

  • Restrict variable values based on another variable in the bex query...

    I am struggling to restrict the variable values from other varaible in the selection criteria. I have a variable which restricts he organisation(0ORGUNIT) and another to restrict employees.
    When the user selects any organisation unit form the hierarchy, I want only those employees related to that organsation in the varaible selection options.
    Is there any way I can make a variable values dependant on the another variable value in variable selection screen?
    Thanks,
    Your help in this matter will be much appreciated.
    Edited by: Kthapa on Nov 25, 2010 11:08 PM

    Hi Kthapa,
    Did u try using cmod?
    i_step = 1? Used to provide default values for the selection screen variables and
    i_step = 2 for filling up the variables after selection screen.
    Try using based on ur requirement.
    Hope this helps. Revert back for any queries.

Maybe you are looking for