BW Authorizations - Query variable with processing mode as "customer exit"

Hi,
Iam new to BW authorizations and have not yet worked on customer exit before. I was going through the documentation at various sites but I could not get the end to end description on how the query process( when using a variable for an InfoObject) works in case of customer exit.
Let's assume that I am using  a query variable with processing mode as "customer exit" and at the exit I  write some code to extract user's authorizations from a z table. if this is the case, then when an end user runs a query,how will the the system know what value needs to be filled in the variable for the requesting user. Are the user details  also sent to the code along with the query variable? If so how. If I mis-understood the process then forgive me and let me know the correct process.

Hi!
welcome to SDN!
customer exit variables need programing by user. so if you create a customer exit variable, you got to right a program which extracts values into this variable. we can do what ever we want in program, SAP will not deal anything ´with customer exits.
with regards
ashwin
PS n:  Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.

Similar Messages

  • Variables coding for replacement path customer exit

    i have to look up values in query for restricted keyfigure ..
    the values are stored in an ods table as below, as the values changes often during the year.:
    zdate123.......value1.....value2
    1/1/10............90..............91
    1/2/10............94..............87
    in a query i have to grab all the data for Value1 for different dates,
    so i created a variable ZVAR_VALUE1
    and write the customer exit for it as below
        DATA: l_s_table TYPE /BIC/AZODS00.
        data: l_s_range_low,    l_s_range,    l_s_range_sign,    l_s_range_opt.
        DATA: v_today type sy-datum.
        v_today = sy-datum.
    CASE i_vnam.
      WHEN 'ZVAR_VALUE1'.
        IF i_step = 1.
          CLEAR L_S_RANGE.
          SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
          WHERE /BIC/ZDATE123 EQ v_today.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    this gives error
    WInitial RANGE-OPT for customer exit variable zvar_value1 is corrected..
    Error for variable zvar_value1...
    i tried replace variable with query but i cannot use it in restricted keyfigure as it gives error...variable cannot be used in structure
    can anybody help correct the code??

    thank you
        DATA: l_s_range TYPE rsr_s_rangesid.
      and it works
    but now in query outpu t the value comes up as 0.00 for everything
    this is my code exactly as below
    ATA: l_s_table TYPE /BIC/AZODS00.
    DATA: v_today type sy-datum.
    v_today = sy-datum.
    CASE i_vnam.
    WHEN 'ZVAR_VALUE1'.
    IF i_step = 1.
    CLEAR L_S_RANGE.
    SELECT SINGLE /BIC/ZVALUE1 INTO l_s_range FROM /BIC/AZODS00
    WHERE /BIC/ZDATE123 EQ v_today.
    l_s_range-low = l_s_table-/BIC/ZVALUE1 .
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    and there exist the value for today for Value1 in ods

  • Charateristic variable with Processing type "replacement path"

    Hi all
    I am using BI 7.0;
    I have a characteristic ZPL_CNT in one dimensions of a Cube;
    now i want to use the value of  the ZPL_CNT as column in Query.
    So i created a formula and a formula variable with replacement path of processing type:
    setting:
    i created a new formula "Calculated MBZ"
    the formula variables is "ZMBZ" and inserted the variables into "Calculated MBZ"
    Reference characteristic: ZPL_CNT
    Processing type : Replacement path
    Replace variable with: Attribute value
    Attribute: characteristic Reference (constant 1)
    But i find the value in Query incorrect
    Can anyone help me solve this problem?
    Thanks!

    Hi Dragon,
    Can you not drag and drop this characteristic directly in the columns...have I misunderstood something?
    I think when you use replacement path in the formula variable , the fromula variable tries to find the reference characteristic value at each record level in the report and then replaces it with attribute value as defined and may be in your case as the characteristice is not defined in the row , it has problems to identify which value of the characteristic it has to replace.
    Regards,
    Sunmit.

  • Help with DTP with Processing Mode No Data Transfer, Delta Status in Source

    Hi, I am trying to test a Cube to Cube Extraction where I do a full DTP Extraction for a specific account to get the data I need and then a DTP Delta Init by using Processing Mode "No Data Transfer, Delta Status in Source".  
    When I do the DTP Delta init using Processing Mode "No Data" this is done in Dialog mode, but is taking an extrodinarily long time to run as it looks like it is going back through all of the source infocube requests to somehow determine the delta marker.  The source infoCube does have a lot of requests, but I would think this would be a very quick process to set the marker.
    Any ideas why this dtp init delta with no data would take soooo long?

    Hi,  Thanks for the information, but I see in the documentation that this type of proces is run in dialog mode.  Could you point out where this process type would run in background only?   Can anyone tell me why this would run so long?
    No data transfer; delta status in source: fetched
    With this processing mode you execute a delta without transferring data.
    This is analogous to simulating the delta initialization with the InfoPackage.
    *In this case you execute the DTP directly in the dialog. *

  • Reference query variable with space in it

    We are trying to display the results of a query where we have
    no control over the query to be able to do any aliasing. One of the
    query variables is called"Mail List" and has a space in it. >:-(
    Is there a way to have ColdFusion resolve that variable within
    pound signs like normal? I thought maybe #[Mail List]# but that
    didnt work. I know I can alias this out in the query but like I
    said we cant. Is this even possible?

    can you post your code?
    you did replace "yourquery" with your actual query name,
    didn't you?..
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • File2file scenario. Issue with Processing mode

    Doing a file2file scenario.
    The sender comm channel's processing mode is "DELETE"
    Scenario is executed successfully and i see the output message also.
    But the input file is not deleted.
    What could the reason?
    regs
    Kiran.

    Hi,
    This will not happen to this scenario if u select the processing mode as delete.the file shld be delete from the source dir.
    Check it once again and make sure that you have activated the ID objects after u make any changes.
    Do SXI_CACHE also
    Regards
    Seshagiri

  • Connecting Query variable with Table Values

    Hi all,,
    I'm trying to connect a query variable to table column contents. The problem is, there is an additional Date as input which is single value. As a result, the query does not get executed. It gives an error that it expects a single value for the date field.
    Am I doing something wrong. Please guide.
    Regds,
    Srinivasan.

    Hi Srinivasan,
    Sorry but i didnt got exactly what you are trying to do? You have query to which you are passing multiple values from a table. or are you selecting a single row in the table and passing it to the query? How is the variable defined in the query?
    Thanks,
    Regards,
    Vikram

  • Bex variable value manipulation in the customer exit

    Hello Experts - I have a situation where I need to manipulate the value of a variable in the customer exit based on certain conditions. I have a customer class variable defined in the query with the processing by Manual Input/Default Value. I need to restrict the values that this variable gets based on values that are selected for another variable (division). For example if the division value is 01, class variable can not have value 'CB'. Any ideas how this can be accomplished. Any input will be appreciated.
    Rgds,
    Venu.

    Mansi & Guy - Thanks for your input. The query is not used interactively and it is used as dashboard query in VC for which the variables are fed via Adobe Flex application. In detail here is my requirement -
    Division is a mandatory field that is selected on the dashboard (You can think this for query)
    Class is a Optional field (users have option to select multiple values).
    If the users choose particular division (say in my case 04) and not any Class, at the query level, I want to exclude CB which I can do it in i_step3 logic.
    In case if the user selects any class, I want to skip the logic of exclusion in the i_step3 (This is because, I can restrict the user what class they can pick based on the Division they choose, so the i_step3 logic wouldn't be required in this case).
    Basically, I do not want to raise messages and this needs to handled based on user selections.
    Appreciate your help,
    Venu.
    Edited by: Venu on Sep 14, 2009 10:03 PM

  • Code help for formula variable with processing type customer exit

    Hi Gurus,
    I need help in user exit code. I am calculating a formula variable ( demand variability) in the user exit for a range of values given in the selection screen ( i.e processing based on the values given I_STEP = 2).
    i am able to populate the E_T_RANGE table  but the output is sending a single value output.
    Expected Output
    Plant ( sel screen Input) I Material ( Sel screen Input) I Demand Var(calculated O/P)
    1800   I  12345 I   0.609
    1700  I   21355 I   1.234                     
    Actual Result
    Plant ( sel screen Input) I Material ( Sel screen Input) I Demand Var(calculated O/P)
    1800   I  12345 I   0.609
    1700  I   21355 I   0.609(WRONG )               
    Here you can see that its sending the same values for all the plant and material combination.
    I found in debugging that it populates 2 values into E_T_RANGE table in loop. But it is giving out only one value to all.
    I tried to refresh and clear that but its giving the same output. Can we use E_T_RANGE in loop to give out range of values?. how to out put this throught user exit?
    did anyone face this kind of issue and solved it?. Help is needed urgently. any help or guidance is greatly appreciated.
    Regards
    satish.

    Hi Oliver,
    Thanks for the reply. Dont get confused here please. It was an example . For example
    I give one plant as input and 2 materials as input .
    You see the sample code :
    WHEN 'ZPRDEMVA'. ( formula variable name)
        IF i_step = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'ZPRPLTSV'. ( plant variable input)
          CLEAR L_S_RANGE.
            v_werks          = LOC_VAR_RANGE-LOW.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'ZPRMATSV'.
          CLEAR L_S_RANGE.
            v_matnr          = LOC_VAR_RANGE-LOW.
    CALCULATES THE FORMULA VARIABLE (DEMAND VARIABILITY)    
    WE TAKE DATA FROM ANOTHER ODS AND DOES CALCULATION.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          l_s_range-low = sum2.
    DOES ALL CALCULATIONS PERFECTLY AND SINCE THERE ARE 2 MATERIALS AS INPUT, PUTS 2 VALUES IN E_T_RANGE. BUT IN THE OUPUT IT DUPLICATES SAME VALUE TO 2 RECORDS AS I POSTED IN THE FIRST
          Append l_s_range to E_T_RANGE.
          ENDLOOP.
          ENDLOOP.
        ENDIF.

  • Processing type as customer exit

    is it useful in real time
    if it is,
    how to work with this.

    hi Basha,
    see this link
    http://help.sap.com/saphelp_sem60/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Best regards
    vijju

  • Variable creation in bw with customer exit

    hi experts,
    how to create a variable in bw with customer exit?

    Hi
    Create a variable with Processing type as customer exit.
    Then Go to Se38 and ZXRSRU01 program in change mode and there you write the necessary coding how your customer exit variable should process.
    else you can access the include function via CMOD also with selecting the enhancement for reports.
    Regards
    RaM

  • Copy Paste Query Variable

    Hi,
    (1) Can we copy n paste query variable which is difined using customer exit???
    (2) can we change description of the variable only for a particular query? Only for a particular query that description should appear n it should not appear for rest of the queries wherever that variable is used...
    Thanks,
    Geetanjali

    1. You can have only one variable technical names,  you can't copy and past it, you have to define another one.
    2. And also you can't change the discription of the variable for only one query without affecting the others.
    too bad, both are no.
    thanks.
    Wond

  • Set/get variables with RSBBS from  query 1 to query 2

    Hi BW Experts,
    I created a sender/receiver assignment from query 1 to query 2 using RSBBS. For two characteristics I assigned the processing method by “Variable”. Process mode for these variables in the receiver query is by “customer exit”. But I don’t know how to set/get values of these variables.
    Is there any function module to do it ??
    Please help!!
    Dev

    thanks...but i m not used in RSBBS and i m afraid i m lost
    could anyone explain me in detail :
    - what i have to do for setting the sender & receiver,
    - before to set parameter ID in the sender how to get the information of the current line (which will serve for the jump)
    please help! i promise points
    Dev

  • Node variable in query - Processing type customer exit?

    We are on NW 2004S. I created a hierarchy for an info-object along with several nodes and child nodes.
    I also created a node variable in a query for this info-object. I have the following questions with regards to using node variables in a query.
    1) Can I use a node variable with processing type 'Customer Exit". My objective is to set the value of the node variable in the user exit.
    2) If answer to first question is "Yes", how would I code the node value in the user-exit - Example code or some pointers to that effect.
    I really appreciate your thoughts on this issue.
    Thanks,
    Sanjay

    Hi Sanjay,
    As far as I'm aware this hasn't changed in NW2004s, (in any case it still works), so:
    1)Yes you can, no difference with other type variables.
    2)In userexit EXIT_SAPLRRS0_001 (include ZXRSRU01).
    There's different options depending on at which stage you want to change it:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    If you do a forum search on above technical names I think you'll find plenty of coding samples, but if you want something more specific, I'd be happy to help you out.
    Regards,
    Pieter

  • Problem with customer exit variable in BeX Query

    Hi All,
    We have created a customer exit variable in a query and populated with few patterns in customer exit.
    My query has to bring all the records where the address line is containg the patterns passed through customer exit. Here the query is not working as expected.
    It is bringing the values where the address line is exactly same as the pattern and not bringing the records where the pattern is part of the address line.
    For example: Pattern passed in customer exit = 'HOSPITAL'
    The record where address line = 'HOSPITAL' is shown in the rpeort, where the record with address line = 'HOSPITAL ROAD' is not shown in the report.
    I would appreciate your help on this.
    Regards,
    Rakesh

    Hi Diogo,
    Below is the code I am using in the customer exit.
    SELECT * FROM zae_tt_pbuild INTO TABLE gt_pbuild.
          IF sy-subrc = 0.
            LOOP AT gt_pbuild INTO gs_pbuild.
              CONCATENATE '*' gs_pbuild-pbuild '*' into lv_pattern.
              ls_range-low = lv_pattern.
              ls_range-sign = lc_sign_i.
              ls_range-opt = 'CP'.
              APPEND ls_range TO e_t_range.
              CLEAR: ls_range,
                     lv_pattern.
            ENDLOOP.
          ENDIF.
         ENDIF.
    I have tried using '%' instead of '*' aswell but the result is same.
    Thanks,
    Rakesh

Maybe you are looking for

  • I tunes doesn t lauch need quick time 7.5

    my i tunes doesn t want to launch.it asked me an older version of quick time 7.5 or before but i tried and nothing happened HELP

  • Brightness Filter effecting quality and color.

    Hi, Guys. I could really do with your help. I shot a scene in low light conditions so the image is fairly grainy anyway (I shot the scene on an Sony PMW EX3). Some of the shots are a little bright though. I want to darken the image slightly but when

  • What are the step involved in online table reorg in oracle 10g?

    Hi All, Could you please provide the step by step how to perform the online table reorg ? Thaks Bala

  • Control window behavior?

    Experiencing quirky behavior (erratic, but becoming more frequent) with new window opening and movement activities. Often, in onboard applications or Firefox browser, when attempting to reposition windows - as in, move to offer slight "reveal" of win

  • Update to Photoshop CC (14.1) crashes

    I just ran the update to PS 14.1 and it crashed ('update failure', Win7/64). Now PS won't start anymore ('invalid nternal file signature'). How do I fix that?