Users Authorization- Restrict value of one variable corresponding to other.

Dear Experts,
I have query regarding BEx Authorization for the given selection screen of any variable for any report :
I have two parameters/variables( Category and Sub Category) which needs to be passed from User. I want to restrict the value of second variable corresponding to the values passed in first variable. For e.g. :  if i passed Category value -Engineering ,Sub Category variable should only show the value related to engineering only other than all the values in sub category field in the selection screen for the user.
Please suggest.

Hi Shikhar,
E.g. Category: Engineering , Arts , Commerce
Sub Categories for Engg. ECE, IT , CSE.
                               Arts : sociology philosophy etc
                               Commerce: economics, accountancy etc
Now Maintain authorization for Char. related to Engineering and create Auth. variable, follow this steps:
Transaction Code- RSECADMIN
Steps to create Authorization based on Division e.g. InfoObject    is 0DIVISION.
Check for 0DIVISION, it must be Authorization relevant checked, if not then maintain 0DIVISION and check Authorization relevant box.
Step 1: Create Analysis Authorization Maintenance using RSECADMIN T-Code, in that add 3 special characteristics i.e. 0TCAACTVT , 0TCAIPROV and 0TCAVALID, these are the mandatory Char. along with that add 0DIVISION for which you want to create Authorization, 0DIVISION details restrict value as 01 (EQ 01).
Step 2: Again goto RSECADMIN -> User tab-> Assignment, enter username (e.g. User1) which you want to restrict. insert Auth. obj. from step1.
Step 3: Now in Query designer, create Authorization variable for 0DIVISION, i.e. process type Authorization.
Execute That query with restricted user (e.g. User1) it will only show the data for Division = 01.
For reference: [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0b7acf2-6121-2e10-5591-eaec182d9315]
Hope this will meet your requirement, let me know if further explanation required.
Regards:
Avinash

Similar Messages

  • Restrict value of one variable corresponding to value passed in other.

    Dear Experts,
    I have query regarding BEx Authorization for the given selection screen of any variable for any report :
    I have three parameters/variables( Circle ,SSA and Exchange) which needs to be passed from User. Circle(state)->SSA(City)->Exchange(Sub Locality). I want to restrict the value of second and third variable corresponding to the values passed in first variable. For e.g. : if a value Madhya Pradesh is passed as a Circle then SSA selection screen should show only
    City or SSAs of Madhya Pradesh only. Same case with selection screen of exchange variable also.

    Hi Shikhar,
    I think you will have to have Circle (State) as the attribute of SSA(City) and SSA(City) will have to be attribute of Exchange (Sub Locality). Then when you enter a value in Circle variable, the take the F4 help on SSA, then you will get the values which are relevant for the respective Circle. Similarly the Exchange.
    If you enter a wrong value for SSA and Exchange...and click check, then the system should throw an error.
    Apart from this you can also create Authorization objects for all the three objects in RSECADMIN and provide appropriate access to relevant users. In this case the users will see only the authorized values in the F4. However the system will not throw an error during the input of the variables. But will only display authorization error only when you execute the query.
    Good Luck,
    Vikram

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • Multiple values for one variable?

    I've created my first set of variables (using Form Properties>Variables), tweeked some XML sourcecode  and they're working .
    What I'm now trying to figure out is how to have one variable that has 2 values that pop up in 2 different text fields.
    Simple form at this point:
    Item, Model and Service Tag.
    The user selects the item from the drop down list and the Service Tag field is autopopulated from the variables I set.
    How do I get the Model to appear based on the Item selection?
    I tried putting the two values for one variable together but both values appear in the same field.
    Variable info that works: Scan (variable) = MC3090BT (value)
    I also need this particular variable to = Handheld scanner (try to ignore the redundancy).
    I attempted to make MC3090BT as it's own variable with Handheld scanner as it's value, and add to the code below but it didn't work.
    Here's some of the code if it helps:
    <event activity="change" name="event__change">
                   <script contentType="application/x-javascript">if(xfa.event.newText == "Handheld scanner"){
        servicetag.rawValue = scan.value;
    }else if(xfa.event.newText == "Latitude X1"){
        servicetag.rawValue = X1.value;

    Hi, I am trying to do the same thing..passing multiple values to receiving query variable through RRI.  Right now if I assign a query variable of type multiple single values it does not take any value.  It works only if I assign variable of type Single Value.
    In my assignment details the sender query has Generic for type and * for selection type. 
    If any one knows how to pass multiple values to receiving RRI query,  please give the details.
    Thanks

  • Add values to one variable in a loop

    Hello,
    I have a while loop where I read a counter and get values.
    Now I want to add all values to one variable. I think an array won't be good because
    the loop can run a long time and an array is limited.
    And the end I want to have the sum of all values.
    I tried to use shift registers.
    But how can I store the value of the first loop-cycle in a variable and on
    the second loop-cycle take this stored value and add the new value and so on?
    Another problem that is maybe more difficult, is that I need the max and min value
    of all values that has been read.
    That means I need a variable which stores the current value. Then I have to compare the stored
    with the next value and maybe exchange both.
    I would be thankful fo
    r any hints.
    best regards Thomas

    Attached is a picture of a code that does what you want; it calculates the sum of each value, it finds the minimum and maximum (and average)...and it does not create any arrays.
    The value source and the condition to stop the loop is what you need to change...In addition you might want to see preliminary values...if so then add indicators inside the loop.
    MTO
    Attachments:
    sum_min_max.gif ‏27 KB

  • Passing multiple values to one variable in jsp/javabean

    I have a form, which contains an assortment of fields/checkboxes/etc. What I'd like to see is when someone goes through the form and enters text or checks any fields on the form they want, after they submit it to the next page, the next page will display all those values that they entered or checked. Some of these values entered may be strings or integers. I want all those values (checkbox1, checkbox2, etc) to be stored in one variable in a javabean so I can call upon that value at anytime during the session. Any suggestions?

    why do you want to store so many data in just one variable?

  • Move values of one field symbol to other field symbol of different structur

    Hi all,
    i need to move values of one field symbol to other field symbol of different structure.
    I need to perform operations like MOVE-CORRESPONDING on two field symbols of different structure.
    How can i achieve this?
    field symbol 1 have 2 field and field symbol2 have 4 fields....
    Best Regards,
    Vijay.

    Hi,
    You can use -
    MOVE-CORRESPONDING <struct1> to <struc2>.
    In this case it will move the contents of the components from struct1 to struct2 that has identical names.
    You can refer this link also-
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm
    Regards,
    Sujit

  • Fetches more values into one variable

    Hi, inside a cursor loop I'd like to assign, each fetch, a value to a variable, in order, at the end to have a collection of all the values fetched into the same variable.
    The code is the following:
    CREATE OR REPLACE procedure APPS.AAA as
    v_pino varchar2(64);
    CURSOR tks_opened_range IS
    SELECT incident_number AS YP_TKS_OPENED_WITHIN_RANGE FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) BETWEEN 1 AND 11111111111
    AND incident_attribute_2 IN ('ΓΕΝΙΚΗ ΔΙΕΥΘΥΝΣΗ ΤΕΧΝΟΛΟΓΙΑΣ')
    ORDER BY incident_number;
    rec_tks_opened_range tks_opened_range%ROWTYPE;
    begin
    FOR rec_tks_opened_range IN tks_opened_range
    LOOP
    v_pino := rec_tks_opened_range.YP_TKS_OPENED_WITHIN_RANGE;
    DBMS_OUTPUT.PUT_LINE('v_pino: ' || v_pino);
    end loop;
    end AAA;
    This works with the variable v_pino!....but at the end, the value of the variable v_pino is ONLY the last fetched by the cursor.
    Is there a way to declare a variable (or better a collection) or a new type in order to have all the data fetched into this variable and the end of the fetching ?
    I need to know this trick because, after, I have to assign this variable to a pipelined table function.
    Thanks in advance
    Alex
    /

    Great Devang !! Thanks a lot ! It works ! Now I am able to retrieve all the values I need and store them into my variable gino
    I searched on the note you mentioned in your mail in order to pass an array as a variable to a table function (PIPE ROW call), but I didn't find nothing about it.
    Now I explain to you my situation.
    I already implemented a table function that works perfectly. I have 2 cursors declared and 2 PIPE ROW calls.
    FUNCTION statistic_report_2_1 (p_resolv_time_ll varchar2, p_resolv_time_ul varchar2, p_ypiresia varchar2)
    RETURN xxi_statistic_rep_2_1_tab PIPELINED
    IS
    -- CURSORS FOR THE FIRST SHEET - Tickets opened per group and per duration
    -- Cursor for tickets opened within 1 hour --
    CURSOR tks_opened_1_h IS
    SELECT incident_number AS YP_TKS_OPENED_WITHIN_1_HOUR
    FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) < 60
    AND incident_attribute_2 IN (SELECT * FROM TABLE(CAST(xxi_szf_discoverer.ypiresia_values(p_ypiresia) AS xxi_ypiresia_list_tab)))
    ORDER BY incident_number;
    rec_tks_opened_1_h tks_opened_1_h%ROWTYPE;
    -- Cursor for tickets opened between 1 hour and 3 hours --
    CURSOR tks_opened_1_3_h IS
    SELECT incident_number AS YP_TKS_OPENED_BE_1_3_HOURS FROM cs.cs_incidents_all_b a, cs_incident_statuses_b b, Cs_Incident_Statuses_Tl c
    WHERE b.incident_status_id = c.incident_status_id
    AND a.incident_status_id = b.incident_status_id
    AND (b.attribute1 <> '3' OR b.attribute1 IS NULL)
    AND c.language = 'EL'
    AND ((sysdate - to_date(incident_attribute_6, 'dd-mm-yyyy hh24:mi'))*1440) BETWEEN 60 AND 179
    AND incident_attribute_2 IN (SELECT * FROM TABLE(CAST(xxi_szf_discoverer.ypiresia_values(p_ypiresia) AS xxi_ypiresia_list_tab)))
    ORDER BY incident_number;
    rec_tks_opened_1_3_h tks_opened_1_3_h%ROWTYPE;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    -- FIRST SHEET OPEN CURSORS --
    TICKETS NUMBER OPENED WITHIN 1 HOUR
    FOR rec_tks_opened_1_h IN tks_opened_1_h
    LOOP
    PIPE ROW(stat_rep_2_1_type(
    rec_tks_opened_1_h.YP_TKS_OPENED_WITHIN_1_HOUR
    END LOOP;
    -- TICKETS NUMBER OPENED BETWEEN 1 HOUR AND 3 HOURS --
    FOR rec_tks_opened_1_3_h IN tks_opened_1_3_h
    LOOP
    PIPE ROW(stat_rep_2_1_type(
    ,rec_tks_opened_1_3_h.YP_TKS_OPENED_BE_1_3_HOURS));
    END LOOP;
    RETURN;
    END statistic_report_2_1;
    But, in this way and with this syntax, I obtain for each PIPE ROW call only one field filled each time, because I can’t call 2 cursors in a nested loop together (data duplication);
    For example:
    1st PIPE ROW call : only the first field is filled and into the second I have to put ‘’
    2nd PIPE ROW call : only the second field is filled and into the first I have to put ‘’
    ….and I cant’ call with a single PIPE ROW call two cursor variables…..
    Into a Discoverer report this data layout is really bad (you can imagine with thousand
    of records).
    For this reason I thought to use an array variable (gino) to pass to a single PIPE ROW call outside the cursor loop……but it doesn’t work !!!
    Can you suggest me how to resolve this problem….if it possible ?
    Did I have to declare other TYPE or collection ?
    Thanks you so much
    Alex

  • Pass variable value form one Operational mapping to other

    Hi,
    Can a variable value be passed form one Operational mapping to other in Interface determination?
    So that a Condition check to excute the second operational mapping depending on variable value obtained form first operational mapping.
    Can globalContainer could be used in UDF?
    Thankx
    Edited by: kevindass on Aug 25, 2011 9:13 AM

    Hi,
    You can try these two options:
    1) Create a key in Dynamic Configuration and use it to store the value and retrieve the value back in second operation from Dynamic Configuration.
    OR
    2) Use Export and send the value to BPM, then in BPM using the value decide on if to execute the second operation.
    Regards,
    Aravind

  • How to get value od one variable baesd on another variable

    Hi Gurus,
         Is this thing possible?My problem is  i have one variable on "0calmonth2" based on this variable i want to populated the values in another object (0calquarter).i.e.
    If i select " Jan or Feb or Mar" it should populate 1  in 0calquarter similarly, for other month

    Hello Deepak
    Try a function module like this:
    FUNCTION Z_YOUR_FM.
    ""Interfase local
    *"  IMPORTING
    *"     VALUE(I_AREA) TYPE  UPC_Y_AREA
    *"     VALUE(I_VARIABLE) TYPE  UPC_Y_VARIABLE
    *"     VALUE(I_CHANM) TYPE  UPC_Y_CHANM OPTIONAL
    *"     VALUE(ITO_CHANM) TYPE  UPC_YTO_CHA
    *"  EXPORTING
    *"     REFERENCE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
    *"  EXCEPTIONS
    *"      FAILED
    clear export table
      CLEAR eto_charsel.
      data: i TYPE i value 1,
            ls_charsel TYPE upc_ys_charsel,
            l_periv type periv value 'K1',
            l_calmonth2 type UMC_Y_ICHAVAL,
            l_buffer_call TYPE boole-boole VALUE ' ',
            l_subrc LIKE sy-subrc,
            ls_return LIKE bapiret2,
            l_type LIKE upc_var-vartype,
            lto_varsel_all TYPE upc_yto_charsel,
            lto_varsel TYPE upc_yto_charsel,
            lto_chanm TYPE upc_yto_cha,
            wa_varsel like line of lto_varsel,
            l_quarter(1),
            l_quarterc(5).
    Read value of CALMONTH2 variable
      CALL FUNCTION 'Z_VARIABLE_GET_DETAIL'
        EXPORTING
          i_area         = <YOUR PLANNING AREA>
          i_variable     = <YOUR CALMONTH2 VARIABLE>
          i_buffer       = l_buffer_call
        IMPORTING
          e_subrc        = l_subrc
          es_return      = ls_return
          e_type         = l_type
          eto_varsel_all = lto_varsel_all
          eto_varsel     = lto_varsel
          eto_chanm      = lto_chanm.
      IF l_subrc eq 0.
        loop at lto_varsel into wa_varsel.
          move wa_varsel-low to l_calmonth2.
        endloop.
      ENDIF.
    calculate quarter
      CASE l_calmonth2.
        WHEN '01' OR '02' OR '03'.
          l_quarter = '1'.
        WHEN '04' OR '05' OR '06'.
          l_quarter = '2'.
        WHEN '07' OR '08' OR '09'.
          l_quarter = '3'.
        WHEN '10' OR '11' OR '12'.
          l_quarter = '4'.
      ENDCASE.
    passing QUARTER to variable value
      CLEAR ls_charsel.
      ls_charsel-CHANM = I_CHANM.
      ls_charsel-SEQNO = i.
      ls_charsel-sign  = 'I'.
      ls_charsel-opt   = 'EQ'.
      ls_charsel-low   = l_quarter.
      INSERT ls_charsel INTO TABLE eto_charsel.
      add 1 to i.
    ENDFUNCTION.
    Hope this helps...
    regards,
    Ibrahim.

  • Copy values from one Parent node to other Parent Node

    Hi all,
    I have a 2 Parent node each having 3 child nodes. I want to copy the values of all the attributes of all the child nodes of one Parent Node to corresponding other node.
    Both the Parent Nodes as well as their Child Nodes have different name but their attributes have same name.For ex:
    Parent Node -A
    Child Nodes - a, b,c
    Child Node "a" has attributes "x" and "y"
    Parent Node -B
    Child Nodes - d,e,f
    Child Node "d" has attributes "x" and "y" .
    Now I want to copy the values od attributes "x" and "y" from one Parent Node to other Parent node.
    Please help me out.
    Helpful answers will be rewarded.
    Thanxs in advance...

    Hi Jin,
    To use copy service API, u need to satisfy 2 condition for the attributes of source node and target node:
    1. The name of the attribute should be same (including the case of the name)- Abc is different from ABC
    2. Type of the attribute should also be the same.
    copy elements works for copying values from Model node to context and does not work vice-versa. To enable the copying of context node to model node, use copycorresponding API.
    Eg:
    int contextNodeSize = wdContext().node<contextNodeName>().size();
    for(int i = 0; i < contextNodeSize; i++)
         <modelNodeName> modelObject = new <modelNodeName>();
         <contextNodeName>Element contextObject = wdContext().node<contextNodeName>().get<contextNodeName>ElementAt(i);
         WDCopyService.copyCorresponding(contextObject, modelObject);
    This will copy the values from Context Node to Model Node.
    Hope this helps you.
    Regards,
    Poojith MV

  • How to use value from one data set in other data set SQL select.

    Hello all, i have one data set, and i need to get value from that data set into other data set. Something like '?' but without input. I will try to explain it with screenshots:

    If both tables come from the same data source, join the two tables in one data set rather than two as shown. If they are from different data sources, use a 'join data set'

  • Passing a user-entered value of one variable to other.

    Hi Experts,
    I am writing an exit for a variable 'Ref. Date' which is the FROM value of 'Cal. Week' variable.
    Code works fine when written in CASE I_STEP = 2 of 'Ref. Date' . But errs when "Ready for input" condition is unticked. ('Ref. Date' is used for restriction of a KF).
    CAn u pls tell me. Where exactly the code should be written?

    Ok. Done.

  • Restricting values to one infoprovider

    Dear Friends,
    I am retrieving a Bex report from a muli provider, say Z_MULT
    Behind this multiprovider i do have 3 infocubes say Z1, Z2 and Z3. Z1, Z2 and Z3 contains many similar fields one of which is Location. In my report I do want to get the Location details only from one cube (Z1) and Volume details from other 2 cubes. How could I restrict the location values from only one infoprovider?
    Many thanks for helping me
    Thanks and Regards
    OOPs

    Hi,
    when ever we are creation the multi provider in query designer level by default under in Data package dimension u can get the info provider tab
    under that info provider tab u can restrcit the functional location cube1 and value with cube2 and cube3
    it gives data
    but check the logic  and do the data validation also
    some times the data( values ) are coming based on the functional location of the cube2 and cube3 then the values will be in one row and functional locations will be another row
    but in cubes the functional location is same( if your sure) then do as per the above.
    Thanks & Regards,
    sathish

  • How to restrict values in one prompt based on value from another prompt

    Hi
           I have a requirement as follows. I have two fields (objects)
    program code
    contract number
    one program code can have several contract numbers.
    I need to provide prompts on Program code and contract number. when user selects one program from the prompt on program code then contract field should only show contract numbers belonging the program user selected.
    Please let me know how to bring this functionality in Webi report.
    Thanks in advance.

    Hi
    if ur requirement is in query level its impossible.(i mean whn u click on programcode then u have to display in contract at query level)
    if you want to display at report level then  
    The two objects Program and contract have a mapping then place a program object in query filter and use operator equal to and select prompt and run the query then it will ask you to select program .whn on choosing it you will  get filtered contract numbers for that program in report level  . There no need to use prompt for contract numbers object .
    Hope this helps u
    Thanks
    sunil
    Edited by: K.sunil on Nov 7, 2011 9:30 AM

Maybe you are looking for

  • MPG to Final Cut Pro , convert mpg files to FCP freely

    Why need to convert/import MPG files to Final Cut Pro? Final Cut Pro is the premium choice for any Mac video editing, and it is widely used by Mac users now. These MPEG standard files can be these different codes and cause failure in importing to Fin

  • Recurring problem in Project Saving

    This has happened often. I am working on a project that should initially take up between 0.5 to 1 Meg on my hard drive, yet once saved, I noticed it has tied up 65 Megs... I have no Locked tracks Most of my Real Instruments are loops (already on My H

  • Model in my JList not reflecting the new value I added to it?

    uness I create a new model object and modify it then my code does not work as I want. Adding new data to the exitsting model causes the JList to display blank when I refresh the screen. I have created my own implementation of an editable Model. When

  • Installing APEX on a website hosted by an external hosting service provider

    I have an external hosting service provider who provide hosting service based on LAMP stack. Has anyone on this forum installed APEX on the servers of these hosting service providers.. Would appreciate inputs. Thanks

  • Tiger 10.4 and Safari

    I just loaded a newly purchased copy of Tiger on my 2 year old E-Mac, G4. It loaded well but now Safari runs slow and will not access my email on Yahoo. It accesses some sites, however slowly. It will not open yahoo mail. At my office I can access th