Customer Exit With Multiple Ranges

Hi Experts,
I have created a customer exit for my query. The values from this customer exit are multiple intervals.
I|BT|2005001|2005006
I|BT|2005002|2005007
I|BT|2005003|2005008
Is it possible to pass these interval values to a selection-options variable in my query? What type of variable should I use? Thanks in advance.
Juice

Hi San,
Thanks for the reply. I tried setting the variable as interval but when I run the query in RSRT, i recieve an error message and then it won't display anything.
However, when I set the variable to selection-options, the intervals seem to overlap. Instead of displaying like (as in RSRT ABAP Debugging mode):
I|BT|2005001|2005006 -> Jan 2005 to June 2005
I|BT|2005002|2005007 -> Feb 2005 to July 2005
I|BT|2005003|2005008 -> March 2005 to August 2005
It displays Jan 2005 to August 2005 in the query.How can I correct this?  Please help. Thanks.
Juice

Similar Messages

  • Formula date variable ,which is processing by 'Customer exit' with ready in

    Hi ,
    I need to create 1 variable which takes date from user and do some calculation.irrespective of any date char.
    so I have created Formula date variable ,which is processing by 'Customer exit' with ready input .
    But when selection screen pop up date formula variable comes with the format yyyymmdd.
    but i need dd.mm.yyyy. i have checked my profile and it is dd.mm.yyyy.
    Waitin for reply

    Hi Babu
    Did you get the answer to the query....if yes please drop me a mail on this as I have the same requirement and thanks in advance...
    my id   [email protected]
    REgards
    Amit

  • Custom Event with multiple EventTypes

    Hello All, First thanks for all those who tryied to help me and apologize for my approximative english.
    I would like to create the more properly as possible a Custom Event with multiple EventTypes, like the MouseEvent typicaly. 
    With Some EventType which permit to acces to some attributes and other not. But I'm totaly lost,  The second solution if someone knows how, is to explain to me how to do to acces to the code of the MouseEvent.as 
    Thanks! 
    Ps: you will find below the basis of the code i have begin. 
    package fr.flashProject
        import flash.events.Event;
         * @author
        public class SWFAddressManagerEvent extends Event
            public static const CHANGE_PAGE:String = "change_page";
            public static const ERROR_404:String = "error_404";
            public static const HOME_PAGE:String = "home_page";
            private var _page:String;
            private var _params:Object;
            public function SWFAddressManagerEvent(type:String, pPage:String = null, pParams:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
                super(type, bubbles, cancelable);
                _page = pPage;
                _params = _params;
            public override function clone():Event
                return new SWFAddressManagerEvent(_type, _page, _params, bubbles, cancelable);
            public override function toString():String
                return formatToString("SWFAddressManagerEvent", "type", "page", "params", "bubbles", "cancelable", "eventPhase");
            public function get page():String { return _page; }
            public function get params():Object { return _params; }       

    I am not sure what you are trying to accomplish but event can have only single type. Event type is just a string that is typically a constant - exactly like your constants.
    When dispatched, each event INSTANCE has only one type. Again, these types are described in a type parameter by a string. Each dispatched MouseEvent DOES NOT have multiple types but ONLY ONE. It does have multiple constants that are used to assign type at runtime as does your event.
    If you are talking about multiple parameters, you already do that in your custom event class. You have _page and _params. Nothing stops you from adding more parameters.
    Also I am not sure why you need getters for _page and _params.

  • Is there a way to get firefox to warn me when exiting with multiple windows open?

    When I click File > Exit in the menu, I want firefox to warn me if I have multiple windows open.
    I don't want it to warn me about multiple tabs though.
    Is there a way to get it to do that?
    I would prefer to just hit the red X in the top right corner, which would avoid this problem, However, if it is the only firefox window I have open, then the red X will often not properly shut down firefox exe, so next time I try to launch firefox it won't work and I have to end task on firefox exe! I was told to use File Exit to improve the chances that firefox will properly close, but doing so introduces this new issue.
    thanks

    That doesn't work.
    Once I set it to true, if I have one window open with multiple tabs, and try to exit, it comes up with a warning box, which I don't want.
    Then if I check it to say 'don't show this again', the next time I run firefox the showQuitwarning setting has been set back to false. So then when I have multiple windows open and I file exit, all firefox shuts down with no warning.
    The reason I want this is because I can *see* the tabs of the window I am in when I am clicking on file|exit, so visually, I'm not going to close anything that I didn't mean to close because it's right there visible to me at the top of the screen (the tabs are seen at the top of the screen) in the same area as where I am looking at and clicking File Exit.
    But other firefox windows are not visible up there so it is easy to forget that they are open, since a lot of times I don't have any other windows open (if I *always* had other windows open then I would not forget them and be in more of a practice of checking the taskbar for them)
    And this is all because I can't hit the red X in the top right corner without increasing the odds of hung firefox processes that don't truly exit (thus making me unable to start another session later without Ending Task which isn't good).
    The hanging is daily but random and not reproducible, so it's very difficult to troubleshoot or fix.

  • 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

  • Customer Exit with Function Module

    Hi BW Gurus,
    I have written customer exit to get the total number of days of the month. But it is executing the function module at all...
    Below is the code
          slppmm TYPE t009b-bumon,
           slppyy TYPE t009b-bdatj,
           totnod TYPE t009b-butag.
    When 'VPF_0CALDAY'.
        IF I_STEP = 2.
          loop at i_t_var_range INTO loc_var_range WHERE vnam = 'VPS_SYS_DATE'.
            CLEAR : slppyy,slppmm,totnod.
            slppyy = loc_var_range-low(4).
            slppmm = loc_var_range-low+4(2).
            CALL FUNCTION '/SDF/RBE_GET_DAYS_PER_MONTH'
              EXPORTING
                par_month = slppyy
                par_year  = slppmm
              IMPORTING
                par_days  = totnod.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = totnod.
            append l_s_range to e_t_range.
          endloop.
        endif.
    Please assist me any error code.
    Thanks
    Ganesh Reddy.

    Hi Problem is resolved my self.
    par_month = slppyy
    par_year = slppmm
    I made above change i.e yy to yy and month to month
    Thanks for all your help.
    Thanks
    Ganesh Reddy.
    Edited by: Ganesh Reddy on Sep 16, 2010 4:38 AM

  • Writing a custom component with multiple fields.

    Does anyone have some pointers on writing a custom component that properly handles multiple input fields?
    An example usage might be as follows:
    Assume the following java classes:
    public interface Address {
        //... getters/setters for Address.
    public class Company{
        Address getAddress(){...};
    }The tag usage might be something like the following:
    <custom:address value="#{myCompanyBean.address}" />
    Extending UIComponentBase I can easily render the output and create all the needed input elements. I'm also able to properly retrieve the submitted values in the decode method. But I'm unsure how to handle the "UpdateModelValues" step. Do I simply over-ride processUpdates, or is there more housekeeping to be done?
    Thanks.

    I'm guessing that doing addChild inside createChildren causes an infinite loop.
    Why aren't you just doing this with MXML?  it would be a lot simpler.

  • Custom Dimension with multiple children defined as "Never Share"

    Hyperion Planning - 11.1.1.3
    There is Custom dimension "Appliance" with root defined as a "Never Share". It has multiple level 0 (SubAppl1, SubAppl2, SubAppl3 etc) members with "Store". Data is some times loaded at root level and some times at the lower levels and at times both. What is the expected result?
    When POV is Appliance and when it is drilled down?
    For Ex:
    For Jan -
    Appliance is 100, No other members loaded with data.
    For Feb -
    Appliance is 30
    SubAppl1 is 10
    SubAppl2 is 10
    SubAppl3 is 5
    POV
    Appliance Jan - 100
    Appliance Feb - 30 or 25? and why?
    Trying to understand the behavior or "Never share" in this scenario.
    Appreciate your feedback.
    Edited by: 847514 on Mar 28, 2011 11:17 AM

    Never Share has no bearing on your sample. The Never Share flag is to prevent a implicit sharing which will happen when you have one parent with a single child under it. Your structure is not setup such that an implicit share would occur based on your example.
    I really do not recommend loading data at upper level members as this means you can never run a normal aggregation on your data. If you were to aggregate your data and you happened to have the AGGMISSG set to true you would see the data in your january example of 100 was removed due to the level 0 members not having any values.
    So the question of your February being 30 or 25 is did you load 30 to February Appliance or did you load to the level 0 and then aggregate?
    Regards,
    John A. Booth
    http://www.metavero.com

  • Custom Infotype with multiple long text fields

    Hi,
    We have a need to create a custom Infotype (in PA or PD) that will contain more than one long-text area.
    I've searched this forum and found that there are generally two approaches :
    1. use the HR clusters for long-text and setting the ITXEX field in PA
    2. using SAP standard text area (SO10) and functions such as READ_TEXT, SAVE_TEXT, etc.
    The problem with (1) is that it can only store one long-text.  We need to have many.  Please correct me if we can hold more than one long text in the cluster...?
    With regard to (2), I'm just not sure that this is the correct place to store the long text...?
    If I was to adopt option (2), could I just use the key of PA9nnn (ie: PAKEY) as the key/TDNAME for STXH?
    Are there any other methods to store long text?
    As well, is it possible to create a custom Infotype in PD?  Can we use PM01 to create PD infotypes?
    Thanks,
    Raj

    Raj
    Sorry I'm not much help on the two questions you have raised...you have probably already got answers by now anyway..however FYI check out link below for enhancing PD infotypes (use transaction PPCI).
    enhance infotypes

  • BPC 7.5 MS - Sorting with multiple Ranges

    Hello All.
    I have a report with two row ranges, because it is necessary for the expansion of two dimensions in rows: DimA and DimB.
    Now, I want to apply sorting based on one property of DimA, but I need to sort all the records retrieved by the evdre.
    The system is sorting each range separated, but I want to sort the values as I had only one range, is it possible?
    Thanks in advanced.
    Best regards,
    Fernando

    Hello Melanie.
    Thanks for your quick response, but that´s not the question. Maybe I did not explain my problem well.
    In my report, I am using two RowKeyRanges. Then, the data retrieved in my report is like "separated" based on
    the ranges. Is I use SortRange, it orders each range independently.
    An example:
    I have dimension DimA and DimB in rows. I define two ranges because I want to retrieve the following data:
                               DimA: MemberA1, MemberA3 | MemberA2,MemberA4
                               DimB: MemberB1                     | basmembers
    I need all basmembers from DimB for MemberA2 and MemberA4, but only MemberB1 for MemberA1 and MemberA3.
    Ok, that works, but now in the report, if I use SortRange, I saw the records in that order: MemberA1, MemberA3, MemberA2,MemberA4, because SortRange orders each range independently.
    My question is: Can I use 2 ranges, but order them together? Is it possible to order all the records retrieved (of both ranges) with SortRange?
    Thanks for your help.
    Best regards,
    Fernando

  • Customer Report with multiple conditions?

    Hello <<text removed>>
    I have a project that I am curious if it is possible using BW and BEx Analyzer.
    I have a Cube that contains Customer, Brand, Revenue etc....
    Lets say i have the following values
    Customer: 1,2,3,4,5,6
    Brand:      1,2,3
    I need a report, series of reports, or a workbook that can provide the following.
    a. List and count of customers that purchased $500+ of only Brand 1
    b. LIst and count of customers that purchased $500+ of only Brand 2
    c. List and count of customers that purchased $500+ of only Brand 3
    d. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 2
    e. List and count of customers that purchased $500+ of Brand 1 and $500+ of Brand 3
    f. List and count of customers that purchased $500+ of Brand 1, $500+ of Brand 2 and $500+ of Brand 3.
    I think you get the point
    This report should look at the previous 12 months of data.  And the Customer should not appear on the report more then once because that is how the criteria presented above should work.
    I was able to get this to work for a,b,c by restricting a query to the brand and using a condition of $500+ for revenue
    I was also able to get this to work for d and e by using the resolution for the single brand as a value set as input for the dealers in a similiar query restricted to a different brand.
    Anyway I hope i can find some ideas/approaches that would meet this requirement!
    Thank you,
    Nick
    Edited by: Matt on Jan 13, 2011 9:06 AM

    Hi Nick,
    See if this works.......
    Put customer in Rows.
    Create 3 restricted key figures for Revenue one with each brand. gets difficult if you want to do this for many brands...
    Create a calculated key fig and use the expression revenue_rkf1 > 500. this expression in the calc key fig returns 1 if revenue is > 500, othewise returns 0. Similarly create 2 more CKFs with expressions using the other RKFs for revenue.
    Now report may look like this:
    Customer      brand1         brand2          brand3
    Cust1...........            0..........                   1............                    1
    Cust2...........            1..........                   1...........                     0
    Now add logic to get customers who bought brand 1 > 500 and brand2 > 500 and other combinations. For that create different formulas like brand1brand2, brand 2brand3, brand1brand3, brand1brand2+brand3.
    Now report may look like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4
    Cust1..........0............1..........1........1......2....1.....2
    Cust2..........1............1..........0........2......1....1.....2
    cust3..........1............1..........1........2.......2....2.....3
    Now create 4 calc key figures. In CKF1 use expression for1 > 1. This checks if value in formula1 is greater than 1, if yes puts 1 otherwise 0. Use the same expression for CKF2 and CKF3 using for2 and for3. Create CKF4 with expression for4 > 2.
    Now the report looks like this:
    Customer      brand1         brand2          brand3     for1        for2       for3       for4    CKF1      CKF2     CKF3       CKF4
    Cust1...........0...........1...........1.......1......2.....1.....2......0........1.......0........0
    Cust2...........1...........1...........0.......2......1.....1.....2......1........0.......0........0
    cust3...........1...........1...........1.......2......2.....2.....3......1.........1.......1........1
    Count of CKF1 gives the number of customers who bought brand1 for 500+ usd and brand2 for 500+ usd.
    Count of CKF4 gives the number of customers who bought all brands for more than 500 $ each.
    The repot gives the data needed but may not look good with number display against customers.
    Regards,
    Murali.
    Edited by: Murali Krishna K on Jan 7, 2011 10:52 AM
    Edited by: Murali Krishna K on Jan 7, 2011 11:10 AM

  • How do I try to create a custom poster with multiple photos?

    Each time I try to do a Photo Project and make a custom poster, the software stops working?  Has anyone else had this problem?  Thanks

    hi Motz
    it is alot of work., are u comfortible with pse Elements editor?
    david :>

  • Custom LayoutSet with multiple Menus

    Hello All -
    I am trying to implement a custom layout set that will contain the basic tree\list layout but have 3 menu's
    1.  Standard Menu Bar Control
    2.  A Button Menu
    3.  A Link Menu
    I have been playing with my layout set and see  you can get the menu bar from your layout set configuration using the lines..
    ControlFactory cf = ControlFactory.getInstance();
    Control c = null;
    com.sapportals.wcm.repository.IResourceContext context = getProxy().getResourceContext();
    c = cf.getControl("MenuBarControl", context)
    I am unsure where the String MenuBarControl comes from however and what it would be to get the Link or Button Control...
    Thanks in advance for your help on this one.

    Hi Brandon
    To render the extra two Menu bars you need not define additional Collection renders , because the layout set can identify Menu Bars separately from Collection renders. To have more more Menu Bars you will have to modify the layout set code to something like this ...
      private void createControls() {
         this.controls = new Control[5];
         ControlFactory cf = ControlFactory.getInstance();
         Control c = null;
         IResourceContext context = this.getProxy().getResourceContext();
         c = cf.getControl(cf.MENU_BAR_CONTROL, context);
         this.controls[0] = c;
         if (c instanceof IMenu) {
           ((IMenu) c).setProxy(this.getProxy());
           ((IMenu) c).setPushStack(true);
           ((IMenu) c).setGroup(IParameterName.UI_GROUP_MASS_KEY);
         c = cf.getControl(cf.MENU_BAR_CONTROL, context);
         this.controls[1] = c;
         if (c instanceof IMenu) {
           ((IMenu) c).setProxy(this.getProxy());
           ((IMenu) c).setPushStack(true);
           ((IMenu) c).setGroup(IParameterName.UI_GROUP_MASS_KEY);
    //repeat again for third menu bar
    However I have not tried getting a button into a menu bar. Links are possible as you are aware
    Regards
    Pran

  • Where Used List with multiple/range of material

    Hi there Gurus!
    We have requirement to have multiple material on CS15(Where-used List Single-Level Material).
    IW13 won't work since there are spares/eqpmnt that has no PM Order yet.
    We are looking at developing SAP Query for this using but I am reluctant if this will work since it's from bottom going up.
    Has anyone tried this? Any tip/watchout?
    Your very valuable input is highly regarded and will be rewarded.
    Thanks a lot in advance!

    Hello Thyagarajan,
    Thanks for clarifying the requirement.
    Can only input one material in selection screen of CS15 and what we want is functionality to enable multiple material entry. Thanks!
    Hi Pete,
    Thanks for your input.
    When you copy CS15 and modify to enable multiple material entry, what other options did you consider before deciding on copying CS15? Does your other options include SAP Query? Do you think it will meet our reqmnt? Thanks!

  • Customer Exit Variable Value

    Hi Everyone,
    I've been searching around this forum and couldn't find what I'm looking for hence resulted me starting a new thread here. I'm a fairly beginner in ABAP and I come across a problem where I have no idea on how to solve it.
    Basically, I have a customer exit with multiple variables and it is being filtered out by certain criteria, the question is when I did not fill in any input and execute the query, the result is return as expected however, if i fill in an input that is not supposed to display, it will display as well, and when I debugged, there's no value  E_T_RANGE in the export  Sorry, I might cause some confusion here, but I'm not sure on how to re-phrase my current situation
    I'm guessing that, the variable stores the value eventhough it's being filtered based on the criteria, is that possible? My question is, is it possible to clear the current value in the variable and export the value (E_T_RANGE) ?
    Regards,
    Kilo

    Hi Kilo,
    thanks a lot.
    This is what SAP documentation says about usage of this exit:
    "With this enhancement to global variables in reporting you have the
    option of determining your default values for variables. You can use
    this enhancement for variables, for which 'Processing by Customer-Exit'
    has been selected in the variable maintenance. This is valid for all
    variable types (characteristic value, node, hierarchy, formula and text
    variables). You use the Exit EXIT_SAPLRRS0_001 for this.
    You could, for example, establish the default value of a characteristic
    value variable depending on the user."
    In your exit, first thing to do is check what variable has been passed in parameter I_VNAME. Check if this variable has been set for 'Processing by Customer-Exit' in reporting.
    I think the way to exclude certain values is to use the SIGN 'E' in the range, i.e.
    l_s_range-low = '<variablevalue to exclude> '.
              l_s_range-high = ' '.
              l_s_range-sign = 'E'."Exclude
              l_s_range-opt  = 'EQ'.
    Also, I think the exit is called 3 times per variable name, for you I_STEP = 2 and I_VNAM = 'Z_MUL_O_ZBO00021_091' is relevant.
    I have limited experience with BEX reporting so you may check SAP Help for [Customer Exits in Reusable Query Components|http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm]. There is info about  [Dependencies for Variables of Type Customer Exit with sample source code|http://help.sap.com/saphelp_nw70/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm]. Check also R. Prem Kumar's very good article [Using User Exit for Variables in BEx Reporting|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d09d4588-3832-2c10-e185-f778d9dbea85?quicklink=index&overridelayout=true].
    Hope this helps you to solve the issue.
    Note: When asking a question, give a short description of what you are doing and what you want to achieve in business terms and natural language. Add relevant technical details and help is just around the corner.
    BTW: Did you search and/or find the information in the links I gave? G*gle was my servant here.
    Regards,
    Clemens

Maybe you are looking for

  • Best Practice?: Snapshot Production for Costco Printing

    I've got another LR user friend that asked me to think of a good way to crank out 4x6 images for some overdue family photobooks. My thinking is to have 2 presets, one for vertical, and one for horizontal. The presets would have a 4x6 crop, some clari

  • WinXP home - icons arranged alphabetically Z-A

    Hi, I have no idea why my computer's started doing this, but now all my MS explorer windows arange al the icons in them first with shortcuts, then folders Z-A, then files Z-A, although if i arrange by type, the file extensions are A-Z, but the file n

  • Put more than number of rows into a single row

    i have to insert data frm source table to destination table ,bellow i mention the source table and in wich format i want the output also mention it,i want some plsql procedure or function to insert data right format in destination table . one thing u

  • [svn:fx-trunk] 11449: Adding OSMF to our framework.

    Revision: 11449 Author:   [email protected] Date:     2009-11-04 17:09:57 -0800 (Wed, 04 Nov 2009) Log Message: Adding OSMF to our framework.  The osmf.swc builds automatically as part of our build process.  I'm also adding new video classes that us

  • Finding number of tables created in a day

    Hi, Can anybody tell me how to find the number of tables created in a day ? Thanks in advance. !!!!