Customer Exit Variable and Condition in a Query (Sequence of Execution)

Hi,
  For a query i defined a Customer exit variable and a condition....
Which will first execute...wether it is a  Variable and then Condition or vise versa
Is there any way we can control sequence of execution
My requirment is first to execute the condition and the variable how can i control this
Thanks

Hi
In your customer exit you will be having a field by name I_STEP which will help you to handle the time of execution of the variable.
Assign points if helpful
Prathish

Similar Messages

  • Customer Exit variable and Filter routine in DTP does not works?

    Hello Experts,
    Does anyone know what might be the possible reason - A customer exit variable working fine on the OLAP side does not work in a DTP??
    I have also tried to use the Filter routine, which does not give me the right results..I am trying to fetch a Fiscalyear period maintained in an infoObject as follows in my Filter routine..
    ata: sel_period like /BIC/PZPARAM-/BIC/ZPARAMVAL.
    DATA: zperiod type /BI0/OIFISCPER.
              SELECT SINGLE /BIC/ZPARAMVAL INTO sel_period
              FROM /BIC/PZPARAM
              WHERE /BIC/ZPARAM = 'ZPCA'
              AND objvers = 'A'.
              zperiod = sel_period.
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = 'FISCPER'.
              l_idx = sy-tabix.
              l_t_range-iobjnm = '0FISCPER'.
              l_t_range-fieldname = 'FISCPER'.
              l_t_range-sign = 'I'.
              l_t_range-option = 'EQ'.
              l_t_range-low = zperiod.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.
    Please let me know if I am making any mistakes above..
    Kind Regards,
    Kadriks

    Hi
    1.  CLEAR l_t_range-high. is missing in your code befor assigning values to l_t_range.
    2. use simple append l_t_range after the l_t_range asisgnments. remove below code :
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    3. I dont think you need to assign infoobject.
    4. Clear sel_period and zperiod is also missing
    Hence your code should be  :
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = 'FISCPER'.
    CLEAR l_t_range-high.
    l_idx = sy-tabix.
    l_t_range-fieldname = 'FISCPER'.
    l_t_range-sign = 'I'.
    l_t_range-option = 'EQ'.
    l_t_range-low = zperiod.
    append l_t_range .

  • How to identify what customer exit variables are used in which query?

    Hi all,
    When i happened to check the CMOD transaction code i can find a list of customer exits are used. But i want to know what are those customer exist are used in which query? can anyone let me know the procedure of identifying it.
    Thanks a lot
    Pooja

    hii pooja
    check the foll links
    Very Urgent: Customer Exit Variable
    customer exit variable
    MIssing Authorisation for customer exit variable query
    Authorization variable or customer exit variables
    if it is helpful assign points
    thanks.

  • I have created a customer exit variable and keep getting yellow message

    I've created a Cusomter exit varialbe and when I run the query I keep getting this to pop up. 
    initial range-sign for cusomter exit variable timezone is corect
    initial range-opt for cusomter exit variable timezone is corect

    Hi Immich,
    there might be the case in your customer exit where you are setting the variable value to blank.
    for e.g.
    cust_name = '  '.
    where cust_name is your variable that ur filling up using the customer exit, instead of setting it to blank set its value to '#'.
    i.e.
    cust_name = '#'.
    It will work fine and you will not get this message any more.
    Hope this helps to you, and correct me if my understanding is not right.
    Thanks

  • Passing messages from BW customer-exit variables to WebI

    Hi
    Is it possible to pass messages from a BW customer-exit variable to WebI?
    We have a scenario where we have some validation done on a customer-exit variable, and under certain conditions a message should be returned to the user running the WebI report. Ideally, then report should stop executing at this time.
    The ABAP is in place, and I can return an error message. If the query is run in RSRT / Web Template, the error message is correctly displayed and processing stops.
    However, in WebI, if the error condition is met, a rather messy looking generic error message is displayed. In this case, the error number I've used in the ABAP is 000, which WebI then interprets as somthing to do with query dimensions could not be retrieved, or a null pointer exception.
    I am not interested in the WebI error message that is being generated ... I know why it is being generated.
    All I'd like to know is whether it is possible to pass an error message from within the customer exit code back to WebI.
    Any ideas?
    Regards,
    Andrew

    Hi,
    I think that the problem is the User Exit is called anew for every query, so the global tables you declared will be empty for the query2.
    One way to do this is create a table using the SE11 and populate it with the Variable from Query1, and use this data to populate the Variable2 of Query2.
    Hope it helps.

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

  • Customer Exit with offset as input to other Customer Exit variable?

    Hi Experts
    I have a query which uses a Customer Exit variable "A" with an offset. My problem is then that I would like to use the outcome of "A"+offset as input for another Customer Exit variable "B" in the same query.
    Is this possible somehow?
    Summing up by example:
    Lets say that A return 001 and the offset is 3, then we got the value 4.
    Can I somehow get this value (4) and use it in another Customer Exit variable in the same query?
    Kind regards,
    Torben

    Sure
    I have 12 rows in a query. One for each month.
    Each row is restricted on cust exit A and cust exit B.
    A has an offset - the offset is the number of the month, which means 1 for January, 2 for february and so on. Cust exit A returns 001. So the value for Januar is 002, February is 003 and so on.
    In cust exit B I need to get the result of cust exit A+offset. 002 for January, 003 for February and so on.
    So, how do I get the A+offset for each row?
    Kind regards,
    Torben

  • I_step = 2 : Customer Exit Variables

    Has anyone had problems with i_step = 2 in customer exit variables in 2004s queries and web templates.
    When the web template is first executed the call takes place directly after the variables values are entered.  This works as expected.
    If you return to the variable screen to change the variable values the call does not take place.
    We are on SP11.
    I have tested the same customer exit variable using a 3.5 Query and Web template and it works in both cases explained above.
    Has anyone had a similar problem?

    Hi MM
    Thanks for the pointer.  Unfortunately this did not help.
    It is interesting to note with 2 identical queries, 1 developed in the 3.5 Query Designer and the Other in the 2004s Query Designer.
    Both queries have the same customer exit variable.  The variable exit is called correctly on all calls (1st and 2nd) when the 3.5 query is executed. 
    The 2004s query does not yield the correct result in the new BI Web runtime.
    Also as we have just applied SPS11 to our development system, only our Development System has been effected.  Our QA and Production systems on SPS 10 are not effected.
    Cheers
    Ian
    PS> I have submitted a OSS note to SAP.
    Message was edited by:
            Ian Carbonel

  • Text Variable replace with Customer Exit Variable

    Dear Experts,
    I created a text variable based on replacementh path (instead of customer exit). The reference characteristic is same that as my customer exit Variable and replace it by Key.
    I want to replace it with already Existing Customer Exit Variable but it is not displaying in the List Box even though existing variable option is mandatory.
    Can any one Suggest me the answer for this.
    Regards
    Supraja.K

    I do not think you can select Customer Exit variable, if you see the type is selected to Char Value Variables and it is not editable.
    It would be suggested to go for Customer Exit procesing type for your text variable.
    Cheers,
    Neel.

  • Change customer exit variable in selections over Dropdownbox

    Hello Experts,
    we are on NW2004s, SP12.
    I have a customer exit variable (0CALYEAR) in two columns. In the first column the customer exit variable and in the second column the customer exit variable with an offset -1.
    Now I want to change the year in a dropdownbox. Under <=BW3.5 that was not possible, only over a how to paper.
    I can fill the dropdownbox in the web template but when I change the year, it jumps back to the year selected by the customer exit. How can I change the variable in the new web application designer (2004s) during the navigation? Has any one experience with such a problem?

    Hallo Frank,
    how can I change the variable values in the WAD?
    The parameters of the variable: mandatory, customer exit, reference characteristic: 0calyear, single value, not ready for input.
    My coding:
    DATA: l_s_range TYPE rsr_s_rangesid.
      DATA: i_s_var_range   TYPE  rrs0_s_var_range.
      DATA: i_calyear(4) TYPE c,
            i_duedate(4) TYPE c.
      IF i_step = 1.   " Variable nach Selektionsbild bearbeiten
        READ TABLE i_t_var_range
        WITH KEY vnam = 'CALYEAR_X01'
        INTO i_s_var_range.
        i_calyear = i_s_var_range-low.
        i_duedate = '0210'.
        IF sy-datum+4(4) GE i_duedate.
          i_calyear = sy-datum(4).
        ELSE.
          i_calyear = sy-datum(4) - 1.
        ENDIF.
    Rückgabetabelle füllen
        CLEAR l_s_range.            " Range-Tabelle füllen
        l_s_range-low  = i_calyear.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'EQ'.
        APPEND l_s_range TO e_t_range.
      ENDIF.
    Thank you for your fast reply!
    Regards
    Jens

  • Customer Exit variable of Query not working in View

    Hi,
    I have a customer exit variable in my query to calculate the last 6 month period on Calendar month. I have used 0CMONTH for the same and then using offset of 6 on its value range to get it.
    Now, I have many views based on this query, which should ideally be having the same filter condition for the calendar month, but it is not happening. Although, it is working fine for the query! The views do not seem to be catching the selection correct.

    Hi there,
    As far as I Know, yes they exist. The only difference here, is that you build a query with a selection screen, and  you execute the query with some selection parameters, and therefore all customer exit variables, offsets, etc, will be read and changed at the runtime execution of the query, and you can rearrange your query visualization drilling down free char., making filters, etc. and storing that visualization in a view.
    If you save your view and execute it afterwards, you'll get the same selection parameters to input, the same offsets, etc, that you have with the query, but with a visualization stored by you.
    So that should have been working.
    Diogo.

  • 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

  • Drill Down and customer Exit variable

    Hello together and A Happy New Year!
    Please help me with the following topic:
    I have a query with 4 selections(fields) in the columns.
    In the first selection (F1) I have resctricion to Posting Period via Period to (a user entry variable).
    In F2 I have restriction to Posting Period via Period to cust (customer exit based on value of V1 - introduced by the user)
    In F3 I have restriction to PP via Period from, Period to (between: user entry variables)
    In F4 restriction to PP fia Period from cust, Period to cust (between: customer exit variables)
    In the query, if I select in the selection screen Period from 1 and Period to 3, for example, when I make the drill down, only  3 (Period to) is displayed instead of 1, 2 and 3.
    If in the query designer I remove from the columns F1 and F2, then the drill down is working properly (having intervals in the other fields: F3 and F4).
    Do you have any idea why drill down is not working properly with all 4 fields in the columns?
    Thank you,
    Iuliana

    Hello,
    Is there anyone who could help me?
    Thank you,
    Iuliana

  • Query Drilldown does not Invoke Customer Exit Variables

    We have a problem with performing a drilldown in a BEx Analyzer reprot, basically the client is a Trading company and they have inter company trading. We are using the Profit Centre as one of thre u201CFree Characteristicsu201D in the query and hence we are able to drilldown on a Characterictc by Profit Centre.
    We are using a couple of BEx query variables (Customer Exit variables) to determine the inter-area and extrenal area profit centres and these profit centres will be different based on the level of Hieracry node selected when the query is initially executed. For example if we assume a hierarchy with has one root node, 3 children under the root node and 2 grand-children under each of the 3 child nodes, now if we are at the root Node of the Hierarchy then every profit centre is internal and there are no external profit centres,  similarly if we are at the 2nd node (i.e. one of the child nodes) then everything under that node is internal and everything in the other 2 child nodes is external and so on.
    This is where the issue starts for us, since on the report if we select the the node we want to see the results for at the query rumtime (i.e. the Customer Exit Variables are invoked at I_STEP=2 and they select the other nodes of the hierarcy if any and group them into either external or internal)  then the results are correct. Now if we were to drilldown, i.e. We selected the root node and we drilldown on to see for example of the child nodes then the result are not correct, this becomes apparent when we drilldown further to the grand-child nodes.
    One logical explaination is that when we are doing the drilldowns the customer exit variables are not being invoked in the BEx analyzer report and hence they are not grouping the sums for the internal and external profit centres relevent to node selected in the Drill down.
    Does anyone have any suggestions regarding how to make this query work properly or show the correct results in BEx Analyzer (ideally), I have considered the Workbooks option but the client does not want Workbooks.
    Please let me know if there is a program etc we can customise to ensure that the Customer Exit variables logic is used when the user does a drilldown in the query or any other way to make it work.
    Many Thanks
    Jack

    Hi
    Just to aid anyone who is thinking what to do in a similar situation, I am aware that RRI or using workbooks are a couple of good alternatives (just that these are currently not being considered by the client, hence I am asking here).. Also, if someone has Business Objects WEBI then we can satisfy the requirement by creating a new Webi Report for each of the nodes and displaying it (similar to Workbooks but much nicer and faster) or we can get the Webi to execute the variables again during the drilldown... Unfortunately the client is not using Webi either... So the solution has to be in BEx Analyzer / Query designer based...
    If you have any thoughts on how I might be able to do what I want to do then please feel free, I am quite confident that I am not the 1st person to come accross this issue and someone somewhere has solved this issue. 
    Thanks

  • RSCRM: Query date with customer exit variable

    Hi All,
    Is there any way to run the RSCRM transaction with a query with a customer exit variable for a date characteristic?
    The issue is that the query ran ok but the variable is not being updated when the RSCRM query is running with a background job or a process chain.
    Thanks in advance
    EV

    I do not think you can select Customer Exit variable, if you see the type is selected to Char Value Variables and it is not editable.
    It would be suggested to go for Customer Exit procesing type for your text variable.
    Cheers,
    Neel.

Maybe you are looking for

  • Is there a way to disable itunes control from the album art work screensaver?

    i like the screen saver, but more often i endup playing some random track when i try to get out of the screensaver state.

  • Network Drives and Time Machine

    How do I get Time Machine to see and connect to a network drive such as an Iomega Nework backup device? The drive is visible in Finder but when I try to configure Time Machine it is not visible as a backup device drive. Can someone please tell me whe

  • How to print "- ve" sign infront of a number during calculation

    Hi all right now i am getting the values in the output like this 1.95 - but i have to get that as - 1.95 instead, how do we get that. my calculation is  *wa_menge * - 1*  in the code

  • Not getting proper result for TIMESTAMP

    While trying to run below query SELECT GREATEST(TO_TIMESTAMP_TZ(CAST(NEW_TIME(TO_DATE('05/09/08 13:50','MM/DD/YY HH24:MI'),'CDT','GMT') AS TIMESTAMP)) , TO_TIMESTAMP_TZ(CAST(NEW_TIME(TO_DATE('06/09/08 13:50','MM/DD/YY HH24:MI'),'CDT','GMT') AS TIMEST

  • Where to assign zprogram to zform for dunning letters

    Hi All, I have created a new z print program and z sapscript for dunning letters(FI). Where can i assign my custom program so that it is used for printing the dunning z forms. In SPRO where do we maintain this configuration. Thanks, Abhishek