Code to 2 DSO fields in 'Customer Exit'

Hello,
For my Customer Exit code, I want to read 2 fields (BEG_FORPER & END_INPER) from DSO 'ZHRPY_O50' & append them to 'Customer Exit' variable 'ZACTDATE'.
Could someone help me with this code?
Thanks!

TABLES: /BIC/AZHRPY_O5000.
DATA: BEGIN OF INTERNAL_TABLE OCCURS 0,
        BEG_FORPER TYPE /BIC/AZHRPY_O500-BEG_FORPER,
        END_INPER TYPE /BIC/AZHRPY_O500-END_INPER,
      END OF CRM_SALO00.
SELECT /BIC/ZBEG_FORPER /BIC/ZEND_INPER
    INTO INTERNAL_TABLE
    FROM /BIC/AZHRPY_O0500
ENDSELECT.
Make minor syntax check to the above code and that will read the data from the activate table and put it into internal table. Now you need the code to read from internal table and place it in customer exit variable.
DATA: L_S_RANGE LIKE RRRANGESID OCCURS 0 WITH HEADER LINE.
CLEAR l_s_range.
Look at INTERNAL_TABLE.
l_s_range-low = INTERNAL-TABLE-BEG_FORPER .
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-HIGH = INTERNAL-TABLE-BEG_END_INPER .
APPEND l_s_range TO e_t_range.
ENDLOOP.
Check the syntax and make the necessary changes.
thanks.
Wond

Similar Messages

  • Field only known in Customer Exit

    Hi all,
    I know this topic has been discussed quite number of times before on SDN, but still i am confused with this field indicator.
    Based on previous posts in SDN, what i understand is that if we enhance a datasource by appending a field to
    extract structure we check this field.
    If i am not wrong we write the code to populate this field in CMOD.
    I have a bunch of fields appended to extract structure and i see that
    not all fields are checked for"filed only known in CustExit". But still i get data for these fields
    when i do extraction. All these fields are populated in UserExit.
    when data can be extracted even if "field know in custexit" is not checked. what is the significance of this indicator.
    Thanks
    Silpa

    *If fields are part of a standard extractor i can understand them not being checked. But in my case i have Z custom fields some of which are checked others are not.
    Eg: ZZ1, ZZ2, ZZ3, ZZ4. I have ZZ1, ZZ2 checked and ZZ3, ZZ4 not checked for "field known in customer exit" indicator.
    So you mean to say ZZ3 and ZZ4 will not get any values even though there is code for these two fields in customer exit.*
    What I meant was that irrespective of whether or not "field known in customer exit" is set, if in your customer exit you have coded for populating data to particular fields, those fields will get the data from customer exit.
    eg.
    zz1 and zz2 are set with this indicator
    zz3 and zz4 are not set
    If you code for zz1, zz2, zz3 and zz4, you can populate these values in exit
    If not, these fields will not be automatically populated in standard extractors as it can do so only for the fields which are part of standard extractors.
    Your main question was 'what is the significane of "field know in custexit" indicator'
    Its main significance as I have mentioned is that if a field is set with this indicator and the coding is not done in customer exit, that particular field will not get populated
    Edited by: Rahul K Rai on Jul 13, 2010 7:31 PM

  • Sample of plan version customer exit code

    Hi! We have a requirement for Forecast accuracy report to be able to report comparison of current actual v current month forecast and
    forecast 1 month ago, forecast 2 months 2 up to 12 months ago. I'm using Calculated/Restricted Key figures with variables "0FISCYEAR & and 0P_FYEAR" with offset and plan version variable 0VERSION & OP_VERS3 but not restricted. The offset for period/year works but not sure how to link it to a plan version specific to period/year. We don't want the variable for plan version to be fixed. We would like to pull the values of the Cal./Rest key figures for period/year and specific version. In our case, we use versions 1, 2, 3 up to 12 for 2010, and version 1 represents 01/2010 forecast/plan version, version 2 is 02/2010 up to 12/2010 version 12. And for 2011, we use versions 101, 102, 103 up to 112. 101 is version specific for 01/2011, 102 for 02/2011 up to 112 for 12/2011.  Same thing for FY 2012, our versions are 201 (representing version for 02/2012) , 202, 203 up to 212.  We have the same pattern of versions for 2020 as well (starts from 01 to 12; 101 to 112; 201 to 212 up to 901 to 912).
    We would like to be able display the values for 12 rolling months for the version specific to period and year as mentioned above.
    Example - in the query, I enter period/ year "03/2011" and version 103 (which represents the version for 03/2011). The result of the query should show up the following CKF/RKF columns:
    1. Current Actual 03/2011
    2. Current Forecast 03/2011 version 103
    3. Forecast 1 month ago 02/2011 version 102
    4. Forecast 2 months ago 01/2011 version 101
    5. Forecast 3 months ago 12/2010 version 12
    6. Forecast 4 months ago 11/2010 version 11
    7. Forecast 5 months ago 10/2010 version 10
    8. Forecast 6 months ago 09/2010 version 09 up to forecast 12 months ago version 03.
    I think we will need a short coding/customer exit for variable version but donu2019t know what needs to be done if using enhancement.  I created a variable customer exit for plan version "ZVAR_MULTIVERSION_EXIT".  Type of variable is characteristic value, processing type is customer exit, reference characteristic is "0VERSION", other basic settings - multiple values and optional.  Please advise if anything I need to change on the settings for plan version variable.  Then my next question is how to code this scenario or maybe you can provide a sample abap code and how to link the customer exit to the "ZVAR_MULTIVERSION_EXIT" plan version variable.   Please advise and greatly appreciate any help and input you can provide.
    Thanks a lot in advance for your help.
    Ching

    Hi,
    Write the code as follows, it will solve your requirement:
    "Declare work area WA_RANGE with type same as I_T_VAR_RANGE.
    when 'variable_name'.
         IF i_step = 1.
              REFRESH e_t_range.
              data: v_date type sy-datum.
              data: v_mon type I length 2.
              data: v_year type I length 4.
              data: v_month type /bi0/oicalmonth.
              v_date = sy-datum.
              v_mon = v_date+4(2).
              v_year = v_date+0(4).
              v_year = v_year - 1. "Previous Year
              concatenate v_year v_mon into v_month.
              WA_RANGE-SIGN = 'I'.
              WA_RANGE-OPT = 'EQ'.
              WA_RANGE-LOW = v_month.
              append wa_range to e_t_range.
         ENDIF.
    Hope this helps.
    Regards,
    Joe
    Edited by: lazarus_joey on Feb 17, 2012 7:04 PM

  • Difference between user exit/Function exit / Customer exit and BADI

    Hi Guys,
    I am confused with the types of exits-user exit/Function exit / Customer exit and BADI.
    Can you tell me the difference between the different exits/Enhancements?
    Classify the following:
    what is the one which is shown in SMOD under enhancements? There are 3 sections in that - Function module, Screen and includes.
    What is the one which are called using -
    Call Customer-Function 001?
    Regards,
    Guru

    hi,
    The standard applications do not offer some of the functionality you need. The R/3 enchancement concept allows you to add your own functionality to SAP's standard business applications.
    Different types of enhancements
    Enhancements using customer exits
    Customers' potential requirements which are not included in the standard software are incorporated in the standard as empty modification 'shells'. Customers can then fill these with their own coding. Enhancements can relate to programs, menus and screens. Upward compatibility is assured. In other words, SAP guarantees that the jump from the standard software to the exit and the interface which call the exit will remain valid in future releases.
    Enhancements to ABAP/4 Dictionary elements
    These are ABAP/4 Dictionary enhancements (creation of table appends), text enhancements (customer-specific key words and documentation for data elements) and field exits (creation of additional coding for data elements).
    advantages of enhancements
    Do not affect standard SAP source code
    Do not affect software upgrades
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    Various types of customer exits
    Menu exits
    Screen exits
    Function module exits
    Keyword exits
    Menu exit
    Adding items to the pulldown menus in standard R/3 applications .
    Screen exit
    Adding fields to the screens within R/3 applications. SAP creates screen exits by placing special subscreen areas within a standard R/3 screen and calling a customer subscreen from within the standard dynpro's flow logic.
    Function module exit
    Adding functionality to R/3 applications. Function module exits play a role in both menu and screen exits.
    keyword exit
    Add documentation to the data elements of key words defined in the ABAP/4 Dictionary. The system displays this documentation whenever a user presses F1 to get online help for a screen field
    Hope this helps, Do reward.

  • Generic Batch Number assignment via Customer exit

    Hi Folks,
    The client  requirement is as follows:
    Once a user enters a batch number customer exit EXIT_SAPLV01Z_002 should be triggered.
    Here, in this exit via custom logic, i am supposed to create a generic batch code.
    If the user enters a batch code from any tcode be it MSC1N, Purchase order creation, MB11, Process order etc.
    First a validation should be done. Else, if field is blank then a generic batch number is to be created.
    Generic batch would be like PMFGYMDxxx- PMFG- Plant of manufacture, YMD- Date in YMD format and xxx as next.
    My concern is that when user enters a batch code from above mentioned TCODES this Customer exit does not get triggered.
    It only gets triggered when batch number field is left empty.
    Need help!!

    Moderator message - Welcome to SCN.
    But please do not post your requirements and ask the forum to do your work for you - post locked
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and Please Read before Posting in the Performance and Tuning Forum and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • 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

  • Customer Exit to get last day of month from Year/month

    Hi Experts,
    I need to create a customer exit to get the last day of month from Cal Year month input variable.
    Examples
    1)
    User input period: 12.2008
    I need from the customer exit: 31.12.2008
    2)
    User input period: 02.2009
    I need from the customer exit: 28.02.2009
    Can someone help me with the ABAP code to achieve this with a customer exit?
    Help will be appreciated.

    Hi,
    Please use the following code,
    Second one is the suitable solution for you, I can understand that, if it leafe year then you have the problem so use the secon one.
    First one is using Period i.e. 010.2008 (December 2008).
    Secodn one is based on Date/Month.
    Note: Insted of SY-DATUm, you give your variable name
    *******To get the Last day of the Fy Period entered by User in ZFYP***
        WHEN 'ZLDAY_FI'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZFYP'.
            zbdatj = loc_var_range-low+0(4).
            zbuper = loc_var_range-low+4(3).
            CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
              EXPORTING
                i_gjahr = zbdatj
                i_periv = 'V3'
                i_poper = zbuper
              IMPORTING
                e_date  = zzdate.
            CLEAR: l_s_range.
            l_s_range-low = zzdate.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
    Note: in the below code I given SY-DATUM, so you change to your Month Variable like using  
    LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'XXXX'.
    ** Last Day of Current Calendar month
          zzdate = sy-datum.
          CALL FUNCTION '/OSP/GET_DAYS_IN_MONTH'
            EXPORTING
              iv_date = zzdate
            IMPORTING
              ev_days = znum.
          CLEAR: l_s_range.
          l_s_range-low+6(2) = znum.
          l_s_range-low+0(4) = sy-datum+0(4).
          l_s_range-low+4(2) = sy-datum+4(2).
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Jan 27, 2009 2:47 PM
    Edited by: Surendra Reddy on Jan 28, 2009 6:12 AM

  • Fill BEx Variable with more than one value via Custom Exit

    Dear SDN comunity,
    I want to fill a BEx Variable via a custom exit. My problem is, I don't know how to fill this variable with more than one value.
    I try to give you some background info based on an exaple:
    <u><b>Variable-Details</b></u>
    <b>Type of Variable:</b> Characteristic Value
    <b>Variable Name:</b> ZCCD
    <b>Description:</b> Company Code Selection
    <b>Processing by:</b> Custom Exit
    <b>Characteristic:</b> Company Code
    <b>Variable Represents:</b> Multiple Single Values
    <u><b>This is the used ABAP code:</b></u>
    WHEN 'ZCCD'.
    CLEAR l_s_range.
    l_s_range-low = '2002;2004'.
    l_s_range-sign = 'I'.
    l_s_range-sign = 'EQ'.
    APPEND l_s_range TO e_t_range.
    <u><b>The system returns this message:</b></u>
    Value "2002;2004" is too long for variable ZCCD
    appreciate your help!
    //michael

    Eugene, Marcus
    it works now, thx a lot!
    Please find attached the final code:
    CLEAR l_s_range.
    l_s_range-low = '2002'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR l_s_range.
    l_s_range-low = '2004'.
    l_s_range-sign = 'I'.
    l_s_range-<b>opt</b> = 'EQ'.
    APPEND l_s_range TO e_t_range.
    (Delta to Marcus's code is bold)

  • Puzzled about Customer Exits

    Hi everyone,
    I'm trying to get into the field of customer exit coding to enhance reporting capabilities. Now from what I've learned, the way to go is via one of the SAPLRRS0 exits and do the actual coding in includes like ZXRSRU01, which should be located in the customer namespace (since it's a 'Z', as I understand) and hence be modifiable. Still, if I try to edit the file, SAP asks for a developer key, but I thought this was the whole point about customer exits (and what sets them apart from user exits): Since you're not tampering with the original system, there would be no need for a developer key
    I have also checked in SE03 if the customer namespace is modifiable (from what I can tell it is).

    Hi Tilman Budde ,
    Keys are required at 2 levels .
    1. When you try to modify existing sap object ... This is called as object key.
    2. When you try to modify existing sap object ..This is called as developer access key ..Unless your user id have this (developer key) ..even if you have object key you will not be able to modify abap workbench objects..
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • No user input for the field on which i need to write customer exit code.

    Hello everyone,
    Scenario:
    There are differrent lease type and there Start date and expiry date.
    each lease has to return somoe returns on some basis.
    selection screen has four options but none of them is date.
    My understanding:
    I need to get only those leases in my report whose expiry date is greater than system date/current calendar day.
    I am not selecting any date field in selection screen, so i need to get value of expiry date from cube, and than compare it to current date.
    So i need to write a customer exit in which i need to read date and restrict data on this expiry date.
    Requirment:
    Need a code for SAP exit variable which will meet the following requirment
    There are the following 4 variables in the query.
    1) material
    2) product hierarchy
    3) City
    4) lease type
    I need a customer Exit variable (CMOD) that will
    filter the records on the basis of condition-"lease expiry date is greater than current system" and display all the records whose expiry date is greate than Sy Date (Current Date) and also if expiry date is blank.
    kindly give me information on how i can write this code asap; and let me know if need more information.
    Thanks

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Customer exits for currency field in generic extractor

    Hi,
    I had a requirement to create a generic extractor. I've created a generic extractor by name 'ZXXZ_XXX_TAX_ATTR'. This extractor was created based on a table T007V in turn view. It has a currency and a quantity type field. Those two fields were not refering to a table fields but were refering a structure. So as per the note 335342, if we have fields of curr/quan type and are having reference fields as a structure field, we need to populate those fields throught a customer exit.
    As I have read that the same problem has been solved by you with customer exit. So can you mail me the exit code as I am not a good in  ABAP.
    Regards,
    Amol Gaurkar

    Hi Amol,
    Here is the code below,
    TYPES: BEGIN OF TY_T007V,
                     TRKORR TYPE TRKORR,
                     ALAND  TYPE ALAND,
                     MWSKZ TYPE MWSKZ,
                     TXJCD  TYPE TXJCD,
                     DATAM  TYPE DATAM,
                     KSCHL  TYPE KSCHL,
                     KBETR  TYPE KBETR,
                  END OF TY_T007V.
    DATA:  T_T007V TYPE STANDARD TABLE OF TY_T007V,
                T_EXTRSTRU TYPE STANDARD TABLE OF <b><Extract Structure></b>,
    **--    Work Area
               W_T007V TYPE TY_T007V,
               L_TABIX   TYPE SY-TABIX.
    CASE I_DATASOURCE.
       WHEN 'ZXXZ_XXX_TAX_ATTR'.
         REFRESH: T_T007V.
         CLEAR:     W_T007V,
                          L_TABIX.
         T_EXTRSTRU[] = C_T_DATA[].
         IF NOT T_EXTRSTRU IS INITIAL.
    Fetching all the records into internal table T_T007V from the transparent table T007V
           SELECT TRKORR
                         ALAND
                         MWSKZ
                         TXJCD
                         DATAM
                         KSCHL
                         KBETR
               INTO TABLE T_T007V
               FROM T007V
                FOR ALL ENTRIES IN T_EXTRSTRU
              WHERE TRKORR = T_EXTRSTRU-KOKRS
                AND ALAND = T_EXTRSTRU-ALAND
                AND MWSKZ = T_EXTRSTRU-MWSKZ
                AND TXJCD  = T_EXTRSTRU-TXJCD
                AND DATAM = T_EXTRSTRU-DATAM
                AND KSCHL = T_EXTRSTRU-KSCHL.
           IF NOT T_T007V IS INITIAL.
             SORT T_T007V BY TRKORR ALAND MWSKZ TXJCD DATAM KSCHL.
             LOOP AT T_EXTRSTRU INTO W_EXTRSTRU.
               L_TABIX = SY-TABIX.
               READ TABLE T_T007V INTO W_T007V
                                 WITH KEY TRKORR = T_EXTRSTRU-KOKRS
                                                  ALAND   = T_EXTRSTRU-ALAND
                                                  MWSKZ  = T_EXTRSTRU-MWSKZ
                                                  TXJCD    = T_EXTRSTRU-TXJCD
                                                  DATAM   = T_EXTRSTRU-DATAM
                                                  KSCHL   = T_EXTRSTRU-KSCHL
                                 BINARY SEARCH.
               IF SY-SUBRC = 0.
                 W_EXTRSTRU-KBETR = W_T007V-KBETR.
                 MODIFY T_EXTRSTRU FROM W_EXTRSTRU INDEX L_TABIX.
                 CLEAR W_EXTRSTRU.
               ENDIF.
               CLEAR: W_T007V,
                      L_TABIX,
                      W_EXTRSTRU.
             ENDLOOP.
           ENDIF.
           REFRESH C_T_DATA.
           C_T_DATA[] = T_EXTRSTRU[].
           REFRESH: T_T007V,
                    T_EXTRSTRU.
         ENDIF.
    ENDCASE.                           "ENDCASE FOR RETREVING THE EXTRACTOR
    <b>Reward points if this helps,</b>
    Kiran

  • Customer exit to add code when saving a project in CJ02 and CJ20N

    We currently use customer enhancements CNEX0006 and CNEX0007 to add new fields to the project definition and WBS elements.
    We now have a requirement that when one of these additional fields is changed a separate table is updated with the date and username.
    I can check changes in the PAI of screen SAPLXCN1  600 and 700. However at that stage I donu2019t want to update the new table. I only want to do that if the user ultimately saves the changes, which might be in the project definition or WBS. So this can not be done in the PAI of these screens.   
    What I need is a customer exit which allows me to run some code when the project definition or WBS elements are saved. The change could be made in the project definition and then the user could go into various WBS elements before saving the project.
    Is there such a user exit available?
    Thank you
    Karen

    That was exactly what I was looking for.
    Thank you
    Karen
    Edited by: Karen Dean on Feb 11, 2011 5:31 AM

  • Error in the ABAP Code for Customer Exit Variable

    Could you please update me what is the wrong with the below ABAP Code developed for Customer Exit Variable in BW
    i created a Variable (ZVWKNO) of Customer Exit,Single Value ,Mandatory and Variable is ready for input
    In CMOD i had written the below Code:
    When 'ZVWKNO'.
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    But when i execute the query the default value is not populated with Week-1 No in the variable screen
    Please update me what went wrong
    Thanks

    Case ZVWKNO.                "write this with out comments
    When '1'.              "write the value that needs to equal with value in varaible ZVWKNO after when in sungle quotes
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.                                    "check this Week Minimum is '01' and Maximum '52'
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    Prabhudas

  • 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

Maybe you are looking for

  • Discoverer  report does not sum up the column

    Hi All, I am running the discoverer report from discoverer desktop and was trying to use the sum function to sum the total amount of the report. The sum function does not work and it only display Cell Sum: (blank) with no actual data. When i checked

  • How can I add a new vaiable to the file loaded by Property Loader without changing my script

    I have an input file to my script that I load via Property Loader. The number of parameters in the input file may change from test to test.. Is it possible in some way to add a new parameter without changing the sequence file? Is there for example a

  • Looking for Function module through which I can get Logged comments

    Hi, I am new to CRM. On an activity task we have 'Logged comments' section. I am looking for FM that I could use to import 'Logged comments' for an activity task. I guess that I can use CRM_ORDER_READ. I was trying to find some documentation but did

  • How do I optimize the grid size?

    GoLive 7x. In the past, if I remember correctly, when done with a page, I could click the Optimize button in the Inspector, and extra length of the grid would be removed. Now when I do it, extra length is indeed removed, but however, so is extra widt

  • Need to Re-install Safari

    I accidentally erased safari from my computer.  What is an easy way to re-install this program?