Custom Exit  help needed

HI ,
I have developed a custom exit , to restrict based on USER who logs in and gets detais for him from my two ODS in the report
the code is some thing like this
FOR I_STEP = 2 .
select zempno from /bic/azhrpe00100 into table itab1 where /bic/zspnm = sy-uname.
select zempno from /bic/azhrpe00100 into table itab2 where /bic/zspnm = sy-uname.
CLEAR L_S_RANGE.
loop at itab1 into temp_zempno1.
L_S_RANGE-LOW = temp_zempno1.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
CLEAR L_S_RANGE.
loop at itab2 into temp_zempno2.
L_S_RANGE-LOW = temp_zempno2.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
SORT E_T_RANGE.
DELETE ADJACENT DUPLICATES FROM E_T_RANGE.
ENDIF.
this is my code , when i debug i can see E_T_RANGE getting the values , for the STEP 2 , but i am getting this error
<b>Error: Error for variable in customer enhancement ZEMPLO</b>

Hi,
For what variable? (Remember => NOT ready for Input! and mandatory input)
a.) encapsulate it by
FOR I_STEP = 2.
CASE I_VNAM.
WHEN <Your Variable>.
Your Coding
endcase.
b.) also assign a high value.
L_S_RANGE-LOW = temp_zempno1.
L_S_RANGE-HIGH = temp_zempno1. "as well as for zempno2.
L_S_RANGE-SIGN = 'I'.
hth
cheers
sven

Similar Messages

  • Function module needed for customer exit variable need to use in Bex report

    Hi Experts,
    I have a requirement where i need to get Cummulative result between two interval periods.
    If user gives single mandatory input value - 002-2009
    for one Scenario:-
    Project start Date   untill Pervious year i.e  December 2008
    Where project start date will get from one of the field in my BW CUBE
    can anyone help for the customer exit function code for this scenario. As i am into BI i dont have idea in ABAP.
    Please help sample cod for this .
    Thanks,
    Anil.

    I had created one customer exit which had fullfill my requirement.

  • Query - customer exit help

    I asked this question previously, but did not clear answers. Just for clarification - in my DSO there is just one date field (0calday), one characteristic (ZTYPE) and one key figure (ZRATE)
    User will enter one date : September 03, 2008 , the query must display all values till the beginning of the month
    September 03, 2008 --- Type 1 - 1.5
    September 02, 2008 --- Type 1 - 2.0
    September 01, 2008 --- Type 1 - 3.0
    September 03, 2008 --- Type 2 - 6.0
    September 02, 2008 --- Type 2 - 3.6
    September 01, 2008 --- Type 2 - 2.8
    Solution : This is how I'm planning to do it:
    Create one variable based on 0calday for user input (Zuserdate). Create another variable (Zdatrange) on 0calday for processing by customer exit. The "to date" is same as the user-entered date and the "from date" DD is hardcoded to "01" and MM/YYYY is derived from user entered date? Is this the approach? I'm not very well aware of ABAP coding so would appreciate your help.
    Thanks.
    Anita. K.S.
    Edited by: Anita Savant on Apr 12, 2009 10:14 PM

    Dear Anita,
    Your approach right. Try the following code in the customer exit.
    CASE I_STEP.
       WHEN '2'.
         CASE  I_VNAM.  " Name of your customer exit variable
            WHEN 'ZDATRANGE'
            READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE WITH KEY
                                                                    VNAM = 'ZUSERDATE'
                                                                  IOBJNM = u20180CALDAYu2019.  " Get user input date
            IF SY-SUBRC = 0.
              L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.      " high value = input
              L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(6).  " low value, e.g.200701
              L_S_RANGE-LOW+6(2) = '01'.                               " for 1st day
              L_S_RANGE-SIGN = 'I'.
              L_S_RANGE-OPT = 'BT'.
              APPEND L_S_RANGE TO E_T_RANGE.
            ENDIF.
         ENDCASE.
    ENDCASE.
    B.R
    Charlie
    Edited by: Charlie on Apr 13, 2009 3:33 AM
    Edited by: Charlie on Apr 13, 2009 3:34 AM

  • User Exits-Help Needed

    Hi friends,
    I need a small help.I am implementing a custom enhancement for Sales Orders.
    For this,I am using the User Exit SAVE_DOCUMENT_PREPARE in the standard program MV45FZZ(Include in SAPMV45A).I wrote a small logic,that gets triggered each time a Sales Order is created or Changed through VA01 or VA02 respectively.
    For <b>VA02</b> i.e., <b>change</b> my logic works pretty well.I am capturing the current Sales Order Number using <b>XVBAP-VBELN</b> and implementing my logic.
    But while <b>creation</b> i.e., <b>VA01</b>,I am using the same logic and trying to capture current Sales Order through <b>XVBAP-VBELN</b>(not yet saved).
    But,<b>XVBAP-VBELN</b> is blank when I am debugging.
    Where does the Sales Order Number get saved,while it is being created i.e., before being saved.
    Regards,
    Imran.

    check the value of <b>vbak-vbeln</b> in the subroutine <b>userexit_save_document</b>
    Also make a note of the following
    <b>USEREXIT_SAVE_DOCUMENT</b>
    Use this user exit to fill user-specific statistics update tables.
    The user exit is called up by the FORM routine BELEG-SICHERN before
    the COMMIT command.
    Note
    If a standard field is changed, the field r185d-dataloss is set to
    X. The system queries this indicator at the beginning of the safety
    routine. This is why this indicator must also be set during the
    maintenance of user-specific tables that are also to be saved.
    <b>USEREXIT_SAVE_DOCUMENT_PREPARE</b>
    Use this user exit to make certain changes or checks immediately
    before saving a document. It is the last possibility for changing or
    checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine
    BELEG_SICHERN.

  • Custom Trigger help needed

    How do I include values from existing recordsets in a SQL statement
    within a Custom Trigger?
    For example, my page has a few recordsets. Assume one of the recordsets
    tells me what state the current user lives in. $row_rsCurUsr['state']
    There is an Insert form on the page with a Custom Trigger (after)
    attached. I need the Custom Trigger to perform another action (insert,
    update, delete, whatever) but it needs to use the $row_rsCurUsr['state']
    value. How can I do this?
    I've tried something similar to:
    $triggerSql = "INSERT INTO anothertable (id, state) VALUES
    ({SESSION.kt_login_id},{rsCurUsr.state})";
    and
    $triggerSql = "INSERT INTO anothertable (id, state) VALUES
    (".$_SESSION['kt_login_id'].",".$row_rsCurUsr['state'].")";
    but neither seems to work.
    Alec
    Adobe Community Expert

    Ok. How about executing a SELECT inside a Custom Trigger and accessing
    the resulting rows to use in PHP code also in the trigger?
    Example - within the Custom Trigger execute:
    $sql="SELECT * FROM table";
    How do I execute it? With the regular DW code like:
    mysql_select_db($database_conWV, $conWV);
    $sql="SELECT * FROM table";
    $result = mysql_query($sql, $conWV) or die(mysql_error());
    $row_result = mysql_fetch_assoc($result);
    $totalRows_result = mysql_num_rows($result);
    or with some ADDT code like:
    $result = $tNG->connection->execute($sql);
    If I do the "ADDT" way, how do I access the rows?
    $result['column'] or something?
    Alec
    Adobe Community Expert

  • Exception occuring during Application exit.Help needed fast

    The Error attached is printed on the console when I exit my Application.My Application is Swing application which reads two or more xml schemas at a time from a local directory and displays the schemas in Tree like structure using JTree,so that mapping can be done using java drag-n-drop apis.
    But during System.exit(1) (on Application Close) the exception Attached gets printed.I have invoked Syste.gc() to enforce garbage collection but to no effect.Please help to solve this problem.
    Thanks
    Pallav
    --ERROR printed on console
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0
    Function name=(N/A)
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(WToolkit.java:183)
         at java.lang.Thread.run(Thread.java:479)
    Dynamic libraries:
    0x00400000 - 0x00405000      S:\software\jdk1.3.1_06\bin\java.exe
    0x77F80000 - 0x77FF9000      C:\WINNT\System32\ntdll.dll
    0x77DB0000 - 0x77E0A000      C:\WINNT\system32\ADVAPI32.dll
    0x77E80000 - 0x77F36000      C:\WINNT\system32\KERNEL32.DLL
    0x77D40000 - 0x77DAF000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78046000      C:\WINNT\system32\MSVCRT.dll
    0x6D420000 - 0x6D4F9000      S:\software\jdk1.3.1_06\jre\bin\hotspot\jvm.dll
    0x77E10000 - 0x77E75000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000      C:\WINNT\System32\WINMM.dll
    0x6D220000 - 0x6D227000      S:\software\jdk1.3.1_06\jre\bin\hpi.dll
    0x6D3B0000 - 0x6D3BD000      S:\software\jdk1.3.1_06\jre\bin\verify.dll
    0x6D250000 - 0x6D266000      S:\software\jdk1.3.1_06\jre\bin\java.dll
    0x6D3C0000 - 0x6D3CD000      S:\software\jdk1.3.1_06\jre\bin\zip.dll
    0x6D020000 - 0x6D12A000      S:\software\jdk1.3.1_06\jre\bin\awt.dll
    0x77800000 - 0x7781D000      C:\WINNT\System32\WINSPOOL.DRV
    0x75E60000 - 0x75E7A000      C:\WINNT\System32\IMM32.dll
    0x77A50000 - 0x77B45000      C:\WINNT\system32\ole32.dll
    0x6D1E0000 - 0x6D21B000      S:\software\jdk1.3.1_06\jre\bin\fontmanager.dll
    0x10000000 - 0x10007000      D:\Program Files\Yahoo!\Messenger\idle.dll
    0x72800000 - 0x72846000      C:\WINNT\System32\ddraw.dll
    0x728A0000 - 0x728A6000      C:\WINNT\System32\DCIMAN32.dll
    0x0D4F0000 - 0x0D503000      D:\PROGRA~1\INCRED~1\bin\ImHook.dll
    0x779B0000 - 0x77A45000      C:\WINNT\system32\OLEAUT32.dll
    0x6D340000 - 0x6D348000      S:\software\jdk1.3.1_06\jre\bin\net.dll
    0x75050000 - 0x75058000      C:\WINNT\System32\WSOCK32.dll
    0x75030000 - 0x75044000      C:\WINNT\System32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\System32\WS2HELP.DLL
    0x77840000 - 0x7784C000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\System32\DNSAPI.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x77950000 - 0x77979000      C:\WINNT\system32\WLDAP32.DLL
    0x777F0000 - 0x777F5000      C:\WINNT\System32\rasadhlp.dll
    0x77830000 - 0x7783E000      C:\WINNT\System32\RTUTILS.DLL
    0x74FD0000 - 0x74FE1000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x6D2C0000 - 0x6D2DB000      S:\software\jdk1.3.1_06\jre\bin\jpeg.dll
    0x77920000 - 0x77942000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\System32\PSAPI.DLL
    Local Time = Thu May 29 17:43:20 2003
    Elapsed Time = 396
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_06-b01 mixed mode)

    to bbritta,
    Sorry it did not help.By the way i am using windows 2000 Server.Application Server is Weblogic 7.0.No exception is shown in the Weblogic console also.
    There is no problem in drawing of maps.Drag-n-Drop is working perfectly.But during application exit this errors occuring.
    Thanks for your attempt.
    Pallav

  • Custom text - help needed

    Hi Guys, I've got to design a Family Tree for a client and they want a very particular style. An arc sits at the bottom centre of the page, and inside the arc there are two names/birthdays/deaths/marriages etc. At right angles outside the arc, more names/births/deaths/marriages are listed. For each new generation there will be a new arc, and each new name etc will be at right angles to the arc below, no matter where they sit on the arc. I've done a really rough example of what they want.
    So basically my question is this: can it be done easily? (typing on text paths, scripts etc etc..)  I really don't want to have to put each new name into an individual text box and rotate to the correct angle, if I can help it. There are up to 8 generations and several hundred names. Family tree goes back to early 1800's...
    Any help would be greatly appreciated!

    It looks like a great opportunity to write a script. After all, it's all just maths; the names 'above' the root can evenly be distributed by dividing the available arc (180°) by the number of names (3), resulting in a separation of 60°, and the initial angle should be half that of that separation. So the first name is at 30°, the second at 90°, the third at 150°, and then there is a remainder of 30° again for the right side.
    These same values should be used for the next layer of this onion (family trees can be smelly too), but this time I think the content should be centered on that angle, so the angle for each single line depends on the number of lines in that branch.
    It sounds perfectly doable with a script, apart for one thing: how are you going to point out what texts must go where?

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

  • Help needed in writting Customer exit - ABAP Code

    Hi Friends,
    I have a scenario in one of the query and need to write a customer exit for the same. Here is the scenario:
    I am using one input variable XXX to get input from user which feeds value to one of the charateristic  lets say "CHAR1" in query. I have one more characteristic "CHAR2" which has to get the value from the same variable XXX. This is not allowed in BI7.0 as the variable is Hierarchy Node type. It gives error that "Variable XXX is used for two different characteristics."
    So i need to create one more vaiable YYY which will get the value from XXX and then YYY will feed value to CHAR2.  I would appreciate if some one could tell me step by step how to write customer exit and give me the piece of ABAP code i need to write in my case.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi Arun,
    1. What should CHAR2 take - Hierarchy node variable or something else ?
    --> CHAR2 is a simple charateristic
    2. In your scenario - why have CHAR1 and CHAR2 ? why not have the user enter values against CHAR2 ??
    --> We dont want user to enter two input as the input values for both Chars are same.
    3. Did you try using a replacement path variable with the CHAR2 variable taking values from Variable on CHAR1 ?
    --> In BI7.0 replacement path variable only take values from Query results. So not able to do the same.
    Thanks

  • Help needed in customer exit code to exclude a value

    Hi Gurus,
    I need to use a Customer Exit Variable to read the values for a characteristic. Based on one indicator I have to include or exclude a value. I am trying to use the code as below. But, it is saying "AError for variable  in customer enhancement ...".
    Code
    the variable is a multiple single values customer exit variable
             zl_s_range-low = z_placc.
             CLEAR zl_s_range-high.
             if z_pl_ind = '1'.
               zl_s_range-sign = 'I'.
             elseif z_pl_ind = '2'.
               zl_s_range-sign = 'E'.
             endif.
              zl_s_range-opt = 'EQ'.
             APPEND zl_s_range TO e_t_range.
    Please help me to solve the issue,
    Thanks in advance,
    Regards,
    aarthi

    Hi Uday,
    Thanks for your response.
    Below is the complete code.
    WHEN 'ZV_CSS11'.
    IF I_STEP = 1.      "Before Pop-up
       select * into table i_tp_tab_pl from /BIC/QZ_TP_PLAC
        where /BIC/Z_TP_PLAC = '11' and
            DATEFROM <= sy-datum and DATETO >= sy-datum.
    if sy-subrc = 0.
         LOOP AT i_tp_tab_pl.
             clear zl_s_range.
             z_placc = i_tp_tab_pl-/BIC/Z_PLACC.
             z_pl_ind = i_tp_tab_pl-/BIC/Z_PGLA_IND.
             zl_s_range-low = z_placc.
             if z_pl_ind = '1'.
               zl_s_range-sign = 'I'.
             else.
               zl_s_range-sign = 'E'.
             endif.
              zl_s_range-opt = 'EQ'.
             APPEND zl_s_range TO e_t_range.
             clear z_placc.
             clear z_pl_ind.
          ENDLOOP.
    endif.
    endif.
    Thanks in advance,
    Regards,
    aarthi

  • Help! Need Abap code in Bex for Customer Exit

    Hi,
    I am new to abap, i need help in creating variable type customer exit.
    i want to create a variable type customer exit the reqmnt is to create a variable that will derive quarter(0CALQUARTER) from FINANCIAL_CLOSING variable.
    Really appreciate if one can provide me the coding for this logic.
    Thanks.

    Hi Yaser,
    Check this below.
    http://scn.sap.com/thread/278890
    Regards.

  • Customer Exit not working - need help in diagnosing

    Hi all,
    I need some help in identifying a Customer Exit issue in our QA system. 
    Currently, in Dev I have a customer exit defined and everything works perfectly.  However, the same code which was migrated to QA works fine when testing at the FM level but not when executing at the report level.  I tried inserting a breakpoint and executing the report, however the breakpoint never populates.  There seems to be a communication issue here.  When executing the report the variable does not call the customer exit FM/program. 
    How do you diagnose this problem?  Is this a BASIS issue?
    I tried testing the query in RSRT and I run into the same issue of nothing happening.  I tried deleting the variable and recreating with only the same results. 
    Is there a config or setting that is related to the customer exit functionality within BW?
    Also, when transporting the customer exit code I did not migrate the FM along with the Include.  Is there a proper way to migrate this?
    Thanks,
    DC

    Thanks for your response.
    I did double check the variable name to be exact.  I think the issue maybe related to the project not being activated.  I will update as I diagnose the problem.
    Thanks

  • Help needed in Customer exit variable

    Hi Experts,
    We have a scenario as below.
    User enters fiscal year period.Based on the fiscal year period,entire year will be selected.
    Row would contains
    0fiscper3(Fiscal months from Jan to Dec)
    Column contains Amount(Actual or Forecast)--There is a restricted keyfigure on amount.If value type=60 then forecast
    and value type=10 then actual amount
    If the user enters 002.2010 then it should give Actual values ie value type=10 for 001.2010 and 002.2010.For all values greater than 002.2010, it should give forecast values(value type=60)
    Report Format.
    Jan----
    Actual Value(value type=10 in the column for amount)
    Feb----
    Actual Value(value type=10 in the column for amount)
    Mar----
    Forecast Value(value type=60 in the column for amount)
    Apr----
    Forecast Value(value type=60 in the column for amount)
    May----
    Forecast Value(value type=60 in the column for amount)
    Jun----
    Forecast Value(value type=60 in the column for amount)
    Jul----
    Forecast Value(value type=60 in the column for amount)
    Aug----
    Forecast Value(value type=60 in the column for amount)
    Sep----
    Forecast Value(value type=60 in the column for amount)
    Oct----
    Forecast Value(value type=60 in the column for amount)
    Nov----
    Forecast Value(value type=60 in the column for amount)
    Dec----
    Forecast Value(value type=60 in the column for amount)
    I know that i have to create a customer exit variable for value type
    But in this scenario.the value for value type may change in each row based on fisper3(month).
    How can i obtain such a scenario in the customer exit
    Your help will be appreciated.
    Thanks,
    Senoy
    Edited by: senoy laxman on Feb 15, 2010 6:42 AM

    Hi Senoy,
    you have to create two customer exit variables for fiscal year period(0fiscper) as given below.
    1. for actual values (value type=10), coding in cmod such that showing values less than and equal to user input values.
    2. for forecasting values(value type=60,)coding such that showing values greating than user input values.
    use the first varible in the first selction and the second varible in the second selection in the given below structure(use the structure in rows)
    use the fiscal period user input varible in the third selection in the given structure below.
    structure
    selection - (Actual)-restrict with value 20 and first customer exit variable .
    selection -(Forecast)-restrict with value type 60 and second customer exit variable.
    Selection - 0fiscper
    Add the key figure 0Amount in the columns or in rows(in the selection of second structure) as per your requirment.
    hope this helps you.

  • Need help with Customer Exit

    HI Guys,
          I am trying to create a Customer Exit in Bex on employee number (zempno) and the technical name of my Customer Exit is Zempnum.
    What i am trying do is, who ever logs in and executes the query, he should get his relavant data, meaning if the employee login he should get his own data, or if the supervisor logs in he should get all the employess under him.
    When i am trying to execute the query i am getting the below error.
    Error: Error for variable in customer enhancement ZEMPNUM
    Diagnosis:
    This internal error is a deliberate termination, since a program status has arisen, that is not allowed to occur.
    The error has arisen for variable ZEMPNUM in the customer enhancement .
    Procedure:
    Please check your customer enhancement.
    Procedure for System Administration
    Notification Number BRAIN 649
    Below is my code
    *& Include ZXRSRU01
    data : itab like /BIC/AZHRPE00100 occurs 0 with header line .
    data : zuid like /BIC/AZHRPE00100-/bic/zempno.
    data region type /BIC/OIZCDOTREG1.
    break-point.
    case I_VNAM.
    WHEN 'ZEMPNUM'.
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    IF I_STEP = 2. "before the popup
    DATA username(20) type c.
    username = sy-uname.
    break-point.
    select single /bic/zempno from /BIC/AZHRPE00100 INTO zuid where /bic/zuserid = username.
    if sy-subrc = 0 .
    select * from /bic/azhrpe00100 into table itab where /bic/zempno = zuid.
    endif.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = ZUID."low value, e.g.200001
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'eq'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDIF.
    ENDCASE.

    HI,
      This is the update code, but still i am getting the same error.
    *& Include ZXRSRU01
    DATA: L_S_RANGE TYPE RSR_S_RANGESID,
    LOC_VAR_RANGE LIKE RRRANGEEXIT. " This is Global
    data : itab like /BIC/AZHRPE00100 occurs 0 with header line.
    data : temp_zempno like /BIC/AZHRPE00100-/bic/zempno.
    *region type /BIC/OIZCDOTREG1,
    data : itab_empno like standard table of temp_zempno.
    *itab_empno like /BIC/AZHRPE00100-/bic/zempno.
    *break-point.
    case I_VNAM.
    WHEN 'ZEMPNUM'.
    IF I_STEP = 1. "After the popup
    *break-point.
    select single /bic/zempno from /BIC/AZHRPE00100 INTO temp_zempno
    where /bic/zuserid = sy-uname.
    Check if he is the supervisor for any other employees
    add them to the internal table
    Check the syntax below.
    if sy-subrc = 0 .
    if sy-subrc = 0 .
    select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspnm = temp_zempno.
    *select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspno = temp_zempno.
    endif.
    endif.
    *Add Own Employee number to the internal table
    *Check the syntax below
    Append temp_zempno to itab_empno.
    *By now, all the employee numbers are added
    to the internal tabe
    *now loop at itab_empno and return all the values.
    CLEAR L_S_RANGE.
    loop at itab_empno into temp_zempno.
    L_S_RANGE-LOW = temp_zempno.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.
    Thanks,
    kris

  • Error creating Customer Exit variable, please help

    Hi Experts,
    This is the scenario, I need to obtain the convertion rate from the table TCURR in order to convert several currencies to USD, so I created a Customer Exit variable that gets the Period and based on that obtains the conversion rate for the last day of the given month from TCURR, the problem is when I created the Formula Variable to get the value from the Customer exit variable I got the following error:
    'ZVARREGEXIT' ALREADY EXISTS; SELECT A DIFFERENT NAME.
    But in not using that name anywhere on my variables creation, Im doing something wrong? How can I check wheres is that variable being used.
    Ideas, comments are always welcome and appreciated.
    Regards.

    Hi Ed,
    Open Admin Workbench (RSA1) and choose Transport Connection --> Object Types --> Query Elements --> Variable --> Select Objects. Find the variable of interest and transfer it back to the main screen, then right-click and choose 'Display Description'. That will show you a "where used" list of queries, workbooks, etc.
    Next, you can use the previous technique to open one of the queries, find the variable in the query, and determine which InfoObject it is associated with.
    Hope this helps!
    Regards,
    Saurabh

Maybe you are looking for