Query Customer Exit - Multi Single Values

Hi SDN,
Is it possible to return multi-single values in a customer exit for a query variable or only a range?
I have 2 characteristics (NUMC), an item ZITEM and a group ZGROUP.  An item can belong to many groups.
ZITEM           ZGROUP
1                     1
1                     2
2                     3
4                     1
I would like to create a variable in Query Designer for ZITEM that returns a list of single values for ZITEM (not a range).  For example, Group 1 should return items 1, 4.
The relationship between ZITEM and ZGROUP is not defined in master data (compounding).  Currently, I have a DSO which has ZITEM and ZGROUP defined as a key.  I would like my query variable-customer exit to read the DSO and return a list of single values of ZITEM.
I'm assuming making ZGROUP a compounding infoobject of ZITEM would solve the issue in query designer because I could restrict on ZGROUP.  I have not used this approach because it would require modifying standard extractors.
Another option I explored was to create an Infoset between my InfoCube and the DSO which has ZITEM & ZGROUP.  Unfortunately my InfoCube has NonCulm. Key Figures and therefore cannot be used in an infoset.
Does anyone know how to create a multi-single value customer exit or have any ideas on how to solve this problem?
Thanks!

I was able to create a customer exit which performed multi-single values.
Psuedocode:
1) Create Internal Table and populate it with DSO data for Group and Item
2) In Customer Exit, loop through internal table for the group you want
3) In loop, append l_s_range to e_t_range (this will add multi-single values)
WHEN 'ZCX_FLWGRP60'.
    IF I_STEP = 2.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'EQ'.
      "get multi single values for flow types
      LOOP AT l_t_flwgrp INTO l_s_flwgrp
        WHERE /BIC/ZFLW_TP_G = '60'.
        l_s_range-low = l_s_flwgrp-FS_FLW_TP.
        append l_s_range TO e_t_range.
      ENDLOOP.
    ENDIF.

Similar Messages

  • Customer Exit - Fill variable value - Report is showing wrong records

    Hi Gurus,
    I'm building a query where the user will type a date.
    So I need to show in report just the records where Valid From <= User input date <= Valid To.
    I've created to variables for this:
    ZMSCOG07 (Single, Mandatory) = user input variable used in Valid From characteristic restriction.
    ZMPCOG10 (Single, Mandatory) = customer exit variable to get ZMSCOG07 value and to be used as restriction to Valid To characteristic.
    Then in the query I restricted Valid From characteristic:
    Valid From <= ZMSCOG07
    and Valid To characteristic:
    Valid To >= ZMPCOG10
    Follow my code in CMOD transaction:
    WHEN 'ZMPCOG10'.
        IF I_STEP = 2.
            READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
            with key VNAM = 'ZMSCOG07'.
            CLEAR L_S_RANGE.
            if sy-subrc = 0.
                L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
            endif.
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    I already tried to put L_S_RANGE-OPT = 'GE' in the variable range and in the query to restrict Valid To characteristic:
    Valid From = ZMPCOG10.
    But it's not working correctly. The report is just considering Valid From restriction and showing to me all the records where Valid From <= ZMSCOG07. It seems that ZMPCOG10 is not being filled. Could somebody help me?
    Thanks in advance,
    Helder

    Hi Helder,
    I understand your requirement but I don't understand the solution you are using. I think it's a bit tricky.
    What I would do is:
    Create three variables:
    - VAR1: Single value, mandatory, ready for input, customer exit. Used to store "User input date"
    - VAR2: Select option, customer exit, not ready for input. Used to store Valid From restriction.
    - VAR3: Select option, customer exit, not ready for input. Used to store Valid to restriction.
    Then, use this code:
    WHEN 'VAR2'.
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    with key VNAM = 'VAR1'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'LE'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    WHEN 'VAR3'.
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    with key VNAM = 'VAR1'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    I think this should work, and you'll have three independent variables used for one purpose each.
    Hope this helps.
    Regards,
    Diego

  • Customer Exit Variable - Variable Value Error BRAIN 000

    I created a variable which is processed by 'Customer Exit'. This variable is 'optional' and NOT user input required.
    And i have written my code in customer exit under I_STEP EQ 1.
    I used the variable in my query as a default value for a free characteristic.
    The query runs fine and return me the correct result.
    The problem is when i used the same variable as a default value of a free characteristic in another query which has another user input variable for another characteristic, i got a warning message after input a value for another variable.
    Variable Value Error BRAIN 000 <<i>my variable name</i>>
    How to make it work in the second query?
    Please help as I am new to this.
    Thanks,
    CH

    Hi Fernanda,
    Try this:
    DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
    DATA:  fst_date LIKE sy-datum.
       CASE i_vnam.
              WHEN 'ZRANGE_PREVMONTH'.
    fst_date = sy-datum - 1.
    concatenate fst_date(6) '01' into ls_ra_sid-low.
          ls_ra_sid-sign = 'I'.
          ls_ra_sid-opt = 'BT'.
          ls_ra_sid-high = fst_date.
          APPEND ls_ra_sid TO e_t_range.
    ENDLOOP.
    ENDCASE.
       ENDIF.
    Just post here for any queries..
    Regards,
    Loed

  • Customer exit variable - missing values

    Hello experts,
    Has anyone ever encountered this problem?
    We have a customer exit variable, based on 0VENDOR. In the customer exit we simply fill in a variable with the values in this master data table. By debugging we can see how the e_t_range structure gets filled in correctly with all the values in the master data, for example 2,300 values, the same values we expect to see in the report but we don't know why at some point after our code in the customer exit and in the standard code, our variable contains less values and only an incorrect number of values gets displayed in the final report.
    Any ideas on this would be very much appreciated.
    Many thanks in advance,
    Inma

    Hi,
    Are you sure you're losing some values?
    Remember that if no values exist for a master data value on the InfoCube, no line will be shown, so you could see less than 2300 lines.
    You could probably try to show filter values on the query and check if they match with your e_t_range.
    Regards,
    David.

  • Error while executing customer Exit Variable (No value could be determined for variable.  BRAIN 632)

    Hello,
    I created a customer exit variable which has to show the range between the first and last day of the previous month. The query will be executed every first of the month.
    Variable is declared as: Customer exit, based on 0CALDAY, Interval, Mandatory and NOT input.
    When i debug the query, it is making the calculation but its not populating my variable; when I execute the query from RSRT, the output test shows a message:
    ENo value could be determined for variable ZRANGE_PREVMONTH.                            BRAIN               632ZRANGE_PREVMONTH
    Below the code i'm using (SAP 7.4)
    ***Customer Exit to calculate previous month.
    IF i_step = 2.
         CASE i_vnam.
              WHEN 'ZRANGE_PREVMONTH'.
    DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
    DATA:  yyyy(4) TYPE n.
    DATA:  mm(2) TYPE n.
    DATA:  dd(2) TYPE n.
    DATA:  fst_date LIKE sy-datum.
    DATA:  fst_date2 LIKE sy-datum.
    LOOP AT i_t_var_range_c INTO loc_var_range
        WHERE vnam = '0DAT'.
          dd = sy-datum+6(2).
          mm = sy-datum+4(2).
          yyyy = sy-datum+0(4).
          fst_date2 = sy-datum.
          IF dd = '01' AND mm = '01'.
            mm = '12'.
            yyyy = yyyy - 1.
          ELSEIF dd = '01' AND mm <> '01'.
            mm = mm - 1.
          ELSEIF dd <> '01'.
            mm = mm - 1.
          ENDIF.
          CLEAR: fst_date.
          CONCATENATE yyyy mm '01' INTO fst_date.
          fst_date2 = fst_date2 - 1.
          CLEAR: ls_ra_sid.
          ls_ra_sid-sign = 'I'.
          ls_ra_sid-opt = 'BT'.
          ls_ra_sid-high = fst_date2.
          ls_ra_sid-low = fst_date.
          APPEND ls_ra_sid TO e_t_range.
    ENDLOOP.
    ENDCASE.
       ENDIF.

    Hi Fernanda,
    Try this:
    DATA:  LS_RA_SID  TYPE   RSR_S_RANGESID.
    DATA:  fst_date LIKE sy-datum.
       CASE i_vnam.
              WHEN 'ZRANGE_PREVMONTH'.
    fst_date = sy-datum - 1.
    concatenate fst_date(6) '01' into ls_ra_sid-low.
          ls_ra_sid-sign = 'I'.
          ls_ra_sid-opt = 'BT'.
          ls_ra_sid-high = fst_date.
          APPEND ls_ra_sid TO e_t_range.
    ENDLOOP.
    ENDCASE.
       ENDIF.
    Just post here for any queries..
    Regards,
    Loed

  • 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

  • Query:  Customer Exit variable not getting populated

    Hello Experts,  I created a Customer Exit variable (ZPREV_MTH_OPS) in the query designer (7.0).  I also put the necessary code in the function module "Z_BWFI_QUERY_CELL_MANIPULTN", but the query variable is not getting populated when I run the query using RSRT.  The boxes for "Variable is ready for input" and "variable is without context" boxes when defining the variable.
    This is my code in the exit:
    case i_vnam.
        when 'ZPREV_MTH_OPS'.
         break-point.
          if i_step = 2.
            clear l_s_range.
            if sy-datum+4(2) = '01'.
              wa_prev_month = '12'.
              wa_prev_year = sy-datum+0(4).
              wa_prev_year = wa_prev_year - 1.
            else.
              wa_prev_month = sy-datum+4(2) - 1.
              wa_prev_year = sy-datum+0(4).
            endif.
            concatenate wa_prev_year wa_prev_month '01' into wa_datum.
            call function 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              exporting
                day_in            = wa_datum
              importing
                last_day_of_month = wa_datum2.
            concatenate wa_prev_year wa_prev_month '01' into wa_datum.
    *        l_s_range-low = wa_datum.
    *        l_s_range-sign = 'I'.
    *        l_s_range-opt = 'BT'.
    *        l_s_range-high = wa_datum2.
    *        l_s_range-sign = 'I'.
    *        append l_s_range to e_t_range.
            l_s_range-low = '20080901'.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            l_s_range-high = '20080930'.
            l_s_range-sign = 'I'.
            append l_s_range to e_t_range.
          endif.
      endcase.
    I also put a break point the exit, but it's not coming to the breakpoint. 
    Any suggestions?
    Thanks.

    Josh,  the link you provided reminded me to include the code in the include ZXRSRU01 also, instead of just changing the function module.  Thanks for your help and all those who tried to help me.
    case i_vnam.
       when 'ZREL12MTH' or 'ZPREV_MTH_OPS'.
         call function 'Z_BWFI_QUERY_CELL_MANIPULTN'
           EXPORTING
             i_vnam        = i_vnam
             i_vartyp      = i_vartyp
             i_iobjnm      = i_iobjnm
             i_s_cob_pro   = i_s_cob_pro
             i_s_rkb1d     = i_s_rkb1d
             i_periv       = i_periv
             i_t_var_range = i_t_var_range
             i_step        = i_step
           IMPORTING
             e_t_range     = e_t_range
             e_meeht       = e_meeht
             e_mefac       = e_mefac
             e_waers       = e_waers
             e_whfac       = e_whfac
           CHANGING
             c_s_customer  = c_s_customer.
    endcase.

  • Query Custom Attribute List of Values

    Hey All,
    Is there a way I can get the list of values from a 'list' or 'radio button' custom attribute. Even if it's the string with | seperators, I can parse it out. Any help would be appreciated.

    Hi Jasper,
    Based on your role, you can get the value of a custom attribute in IRPT page.
    You can use "Applet.getPropertyValue(AttributeName)" method to get the value.
    But, I am not sure - how to get all the possible values of a custom attribute and display in a drop down.
    The possible solutions would be
    1. Use some external XML properties file and fetch the values from these files.
    2. Use small table in a database & fetch these values or
    3, If the values are small in numbers, you can hard code these values.
    Best Regards,
    Kedar

  • Displaying Customer Exit Variable with derived value from another ODS

    Hi All,
    Sorry if this question has been answered before.  I searched the forums and could not find anything specific to my problem.
    I am new to BEx Query.  Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF.  This query is a payroll query for US/Canada.  This new variable will be based on the user input date for the query.  We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs.  The pay date is stored in another ODS.
    So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2.  Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
    The data displayed off the user input date is displayed in rows.  This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...).  For this to happen  correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
    My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
    Thanks.
    Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
    Edited by: Amir Hasan on Jun 11, 2009 6:25 PM

    Hi Amir,
    What i can understand from u r requirement is you want to few columns that will show something like below,
    User entered date = x
    Period of X to Period of (X-7)       Period of X to Period of (X-14).....
    This can be done by CMOD for variable only.
    Logic steps :
    1) Take the user input.
    2) Find out the period by using T009B table and store in temp variable.
    3) Do day -7 and find out period for the same
    4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
    Let me know if you have any doubt
    Regards,
    Viren

  • Customer Exit working in BEx but not in WAD

    Hi All,
    I am using SAP BW BI 7.0 and recently made a Customer Exit variable (single value) and wrote the appropriate code under a project in CMOD.
    When the query had been run through BEx Analyzer, it is giving desired result-proving that the code was properly written but when we try to see it in web page through WAD or "Execute" button in BExQD then it is giving an error in the web page called "apps.state.raised()"
    What can be the problem? Is it a problem with installtion or patch? Currently it is updated with patch 11.
    Please reply ASAP.
                                          ****Points assured****

    hi Raga,
    is ZCHSTDATE of type date and what is the type of zvstdays? if both are of type date then u can directly add the date and days to get the required date.
    eg:
    zvstdays = zchstdate + zvuser.
    u can consult this thread also: Adding days to a Date
    in the customer exit u have to write a case statement like
    case <field that is catching the bex vars>.
    when '<ur var name>'.
    result = <put ur formula>.
    endcase.
    hope this helps you
    regards,
    Vaibhav

  • Problem with Customer exit

    Hi,
    I have a set of variables:
    ZVAR_002 : Fiscal year period (User entry/mandatory/single value), Ready for input.
    ZVAR_004 : Key date to derive Document Date (customer exit/mandatory/single value) used date as reference characteristic, Ready for input.
    ZVAR_005 : Key date to derive net due date (Replacement path/optional/single value) used date as reference characteristic.
    what i am trying to achieve is to derive a date from ZVAR_002(Fiscal year/period) into ZVAR_004.
    example: 001.2007 - 31.07.2006
                  010.2007 - 30.04.2007
    i want the same value that is on ZVAR_004  to be used by ZVAR_005.
    firstly i do not want ZVAR_004 to be ready for input, but i am getting error when i do not check the input ready box. is this a limitation?
    Because i made ZVAR_004 mandatory when the variable screen pops up i am not able to leave the field blank as it requires me to enter some value. As mentioned above i do not want this variable to be displayed in the first place. i want to derive it from ZVAR_002.
    I am using a customer exit to derive the value of ZVAR_004 from ZVAR_002. I am using the following code.
    WHEN 'ZVAR_004'.
      CLEAR:  t_date.
          SELECT  SINGLE low
          FROM  RSZGLOBV
          INTO  lv_fiscper
          WHERE objvers = 'A'
          AND   vnam =    'ZVAR_002'
          AND   iobjnm =  '0FISCPER'.
          IF    sy-subrc IS INITIAL
            AND NOT lv_fiscper IS INITIAL.
            lv_fiscper_month = lv_fiscper+4(3).
            lv_fiscper_year  = lv_fiscper+0(4).
            CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
              EXPORTING
                I_GJAHR        = lv_fiscper_year
                I_PERIV        = 'EM'
                I_POPER        = lv_fiscper_month
              IMPORTING
                E_DATE         = T_DATE
              EXCEPTIONS
                INPUT_FALSE    = 1
                T009_NOTFOUND  = 2
                T009B_NOTFOUND = 3
                OTHERS         = 4.
            IF SY-SUBRC IS INITIAL.
              l_s_range-low    = T_DATE.
              l_s_range-sign   = 'I'.
              l_s_range-opt    = 'EQ'.
              APPEND l_s_range TO e_t_range.
            ENDIF.
          ELSE.
            CLEAR e_t_range.
          ENDIF.
    What i find is the value that i give for ZVAR_002 is not updated in the in the table RSZGLOBV. Can anybody please help me resolve this issue.
    Thanks in advance.
    Ravi.

    Hi All,
    Fixed the issue myself.
    ZVAR_002 : Fiscal year period (User entry/mandatory/single value), Ready for input.
    ZVAR_004 : Key date to derive Document Date (customer exit/mandatory/single value) used date as reference characteristic, Ready for input.
    ZVAR_005 : Key date to derive net due date (Replacement path/optional/single value) used date as reference characteristic.
    as i have mentioned about these three variables earlier, the variable ZVAR_005 was set to replacement type and gets the value from ZVAR_004, as i require them same value.
    Because my ZVAR_005 reis dependent on ZVAR_004 which inturn is dependent on ZVAR_002 the customer exit variable ZVAR_004 should be checked for ready for input and whcih inturn does not run the customer exit at step 2.

  • Query - Replacement Path for a Customer Exit Variable

    Hi
    New to the field and the board.  Any and All help is greatly appreciated.
    I have created a query which runs based on a date selection. The query have few customer exit variables whose values are set in ABAP. All Key Figures in the query are brought depending on the date ranges that each of the CE returns. Ex - one column is sales for first 10 days, 2nd for second 10 days, 3rd for first quarter, 4th for 2nd quarter and such.  There are about 20 - 25 columns with KF in the query and all are Customer Exit date driven.
    The challenge:- Each column heading should have the name of the month. I tried using Replacement Path. But it works when the selection is based on a constant value but not on value based on variable which is a customer exit. Ex - If I say restrict Cal/Month for July 2013, the replacement path for the Col Heading works fine. But if I say restrict Cal/Month for "ZVAR_SecondQtr_First_Month" the replacement path doesn't work.
    Help Please
    Thanks
    Vidya

    In the text variable that you are using , i guess you have a replacement path. In this instead of using your characteristic for specifying how the value has to replace, use the variable option and give the variable name there
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/565cd22fc95f6ce10000000a1553f6/content.htm
    Hope it helps
    Regards,
    Rathy

  • 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

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

  • How to Pass Select-options Single values as Parameter value to Method ?

    Hi Friends,
    I need to pass select-options values(single values) for s_arbpl to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    Thanks

    hi ,
    when you want to pass  S_ARBPL AS PARAMETER IN SELEC OPTION
    ARBPL SUCH AS  
       WIN002
      WIN003
      WIN004
      WIN005
      WIN006
      WIN007
    IN MULTIPLE SELECTION  S_ARBPL
    THEN
    USE  
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    LOOP AT S_ARBPL .
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    ENDLOOP.
    REGARDS
    dEEPAK .
       THEN SELECT THAT
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.

Maybe you are looking for