Characteristic Relationship in IP

Hi All,
I have a database table(SE11) which has 4 fields (3 key fields + 1 Data Field). I want to derive the 4th field based on the other 3 key fields in my IP. For that I need to write a Characteristics Relationship exit.
my query is where do i need to write the code for the exit.
please explain in detail by giving step by step method. I would really appreciate if anyone could send me some sample code for the same.
Thanks in Advance.
Deepak Singh

Dear Deepti.
Unfortunatelly , I think I can not do this by filtering characterisitics in input query.
The issue is that to simplify my problem I omitted that I have another characterisitc called ACCOUNT.
So for planning layout at employee level is alway set to value 0001, but for planning at Area level we have more values, so this means that in the second layout, for Account value 0001 , only those areas whcih are plannble in level2 should be close and any other should be open.
Foe example:
Planning at Area, Employee: (ACCOUNT is always = 0001)
PROD; EMPLOYEE1 ; Employee Ratio(not input ready)
PROD; EMPLOYEE2; Employee Ratio((not input ready)
SELL; EMPLOYEE1; Employee Ratio
SELL; EMPLOYEE2; Employee Ratio
Planning at Area:
             0001                       0002                    0003                    0004
PROD    planable                 planable                planable              planable
SELL     NOT planable          planable                planable              planable
ROOT    planable                  planable                planable              planable    
If I restrict SELL area in imput query, then I can not plan for other Accounts.
Thanks a lot.

Similar Messages

  • Characteristic Relationship BI-IP

    Hi,
    I am trying to create the following characteristic relationship on real time planning cube.
    Within the realtime cube I have 0fiscper and 0fiscvarnt being populated.
    I also want to calculate 0calquarter and 0halfyear1.
    For this I have created a DSO which has 0fiscper and 0fiscvarnt as the key and 0calquarter and 0halfyear1 as the data fields. I am populating 0fiscper and 0fiscvarnt during the upload and calculating 0calquarter and 0halfyear1 via a routine.
    I am now trying to create the characteristic relationship, but when I enter the DSO technical name, I get the following error message:
    DataStore object '....' does not have a data field from the InfoProvider; this object is invalid here.
    Any ideas why this happening, all the fields in the DSO exist in the realtime cube.
    Thanks
    DJL

    Hi
    For time characteristics, there are standard characteristic relationships.. dont see why need to create them.
    if it is for fiscvarnt-fiscper combination: guess no need for other things.
    Also if u r specifying DSO name in planning modeler, I guess u can look up the DSO thru F4 help.
    rgds
    Deepak

  • Fields missing in Characteristic Relationship

    Hi Experts,
    I want to derive Currency Key from Company code using Characteristic Relationship. I am using 'With Derivation' and master data attributes. But in the source fields I see only two fields Cost Center and Controlling Area. Not sure why I am missing rest of the fields from the Cube. Does this mean, I have to have Aggregation levels maintained before I look at Characteristic Relationships??
    Thanks,
    DV

    Hi,
    derivation is used to fill characteristic values from other characteristics in the InfoCube. So to derive 'Currency Key' from 'Company Code' means that both characteristics have to be inculded in your InfoCube. I think, Currency Key is an attribute of Company code, so you can create a derivation relation based on characteristic Company Code.
    If you don't need 'Currency Key' in the InfoCube, you also may use Currency Key as a navigation attribute. Then you need not characteristic relationship for this, the system automatically know about the link between Company Code and Currency Key.
    Regards,
    Gregor

  • Characteristic Relationship Error

    Hi
    I am deriving 0fiscper by concatenating 0fiscper3 and 0fiscyear. This works perfrectly in BPS. However, when I define the characteristic relationship in IP I get hte following error when checking:
    Characteristic relationships for InfoProvider ZSEM_C20 are inconsistent
    Relationship 01 is inconsistent
    Contains generic time derivation 0FISCYEAR,0FISCPER3 -> 0FISCPER
    Not permitted 
    The code for this is exacthly the same as for another derivation I did in BPS. How do I do this in IP?
    L.

    Hi,
    In IP, their are default characteristic relationships for time characteristics which are always active. This wont show in the properties of the real time infoprovider (char. rel. tab) but this will be active and cannot be overridden; this is different from BPS where no such automatic chal. rel.s were present.
    Therefore, you need not code them in an IP implementation.
    Hope this clears your issue.
    Edited by: Mayank Gupta on Feb 1, 2008 2:52 PM

  • Characteristic Relationship Challenges in IP

    All,
    I'm having a bit of a problem with characteristic relationships in IP.
    We have a simple planning cube with no data.  It has the characteristics 0CALMONTH, 0MATERIAL, 0SALESORG, 0SALES_GRP, 0SALES_OFFICE, and 0PAYER.  We want to build a query which allows us to plan on specifically designated valid combinations of 0SALESORG, 0SALES_GRP, 0SALES_OFFICE, and 0PAYER.  However, instead of displaying only the valid combinations we desire, things seem to be showing up as the Cartesian Product of the characteristics.
    We thought we could accomplish this through a characteristic relationship and we tried establishing one (first by creating a DSO and then by creating a hierarchy).  But all combinations seem to yield only one of the following results:
    *Only the first level of the hierarchy
    *The Cartesian product
    *The 2nd level of the hierarchy (and only the 2nd level) but unfortunately containing ALL options in master data
    Has anyone here ever managed to do in IP what I'm trying to do (display only certain valid combinations of characteristics)?  If so can you give me a step by step outline of how you did it?
    According to SAP hosting we have all of the latest Service Packs.

    All, the issue is partially corrected.  Instead of fighting with hierarchies, I stepped back and re-attacked this problem by creating a characteristic relationship based on a DSO.  (I had tried this initially but it failed for a reason I will explain below.)
    We do top-down planning and so I need these valid combinations at each level of granularity.  I created a DSO with the key 0SALESORG, 0SALES_GRP, 0SALES_OFFICE, 0PAYER, and populated it with the valid combinations.  However, when I tried to create the characteristic relationship it does not allow me to select 0PAYER as a "Source Characteristic".  This results the relationship being inconsistent.
    So then I created a DSO with the key 0SALESORG, 0SALES_GRP, 0SALES_OFFICE, and populated the valid combinations.  It worked perfectly for my query at that level of granularity but not for the higher level of simply 0SALESORG and 0SALES_GRP and so I found myself creating another DSO and characteristic relationship to handle that level.
    Now I have the valid combinations down to a certain level of granularity displaying properly, but not all the way to the 0PAYER level.  I'm not sure why it has a problem aside from perhaps the fact that 0PAYER is a reference char based on 0CUSTOMER.  Does anyone know why it has this problem with 0PAYER?
    Additionally I have found that I can no longer execute a simple copy function on my cube because it "cannot find reference data for characteristic combination" in an insistance when I planned on a characteristic with a blank value.

  • IP - Characteristic Relationship with exit class URGENT

    Hi experts,
    I need to derive two infoobjects from other one. I know that I have to use a exit class and there implement the ABAP code for especify the derivation.
    I have copied the exit class CL_RSPLS_CR_EXIT_BASE. I suppose that the code of the derivation has to be implemented in the IF_RSPLS_CR_METHODS~DERIVE method. But, does anybody know the structure witch contain the source and target fields where is/are defined?
    Thanks in advanced.

    Hi,
    set a break-point in the factory method get_instance to check whether the class is called. In the planning modeler make sure that you  use an external break-point.
    Or use rsrt an change a cell value: Derivation is called in the delta buffer to derive from the fields contained in the aggregation level. So check also that the source fields are contained in the aggregation level or can be derived via a a chain of derivations.
    Also make sure that all source fields have to be non-initial. The system will not call derivation for initial source fields since in this case there is not unique target, cf. http://help.sap.com/saphelp_nw70/helpdata/en/43/1c3d0f31b70701e10000000a422035/frameset.htm
    Remark: The attached document of note 994853 is about the disaggregation feature but it also contains a section about the characteristic relationships. Observe also that the template exit classes are documented in SE24.
    Regards,
    Gregor

  • IP - characteristic relationship/ data slices

    Hi Guys,
    I am very new to IP and would like to have some help regarding the following with some simple example
    1) characteristic relationship
    2) data slices
    3) locking
    Some examples with the above is much appreciated.
    where can i get some good document explaining this ?
    Thanks in advance...

    Hi,
      Please find below the examples for characteristic relationship and data slice,
    1. Characteristic relationship:
                 Consider that you have characteristics called "Country" and "Continent" in your report (also in aggreagtion level).
    You cannot always expect the end user to enter the correct continent for a country. In this case, you can create a char rel
    based on the relastionship between these two characteristics (attribute, hierarchy or relationship data loaded to a DSO),where the source is "Country" and the target is "Continent". So when ever the user enters country and continent the char rel validates the entry based on the reference data (master data, hierrarchy or DSO data) and throws error if it s wrong. Apart from this by creating "With derivation" char rel, you can even derive continent value from country with out the user even entering the value in thye report.
    2. Data Slice:
              Consider that your planning requirement is you need to plan on a monthly basis which is like during current month you caa plan for the next month. In this case all other months except the next month should not be available for planning. In this case you can create a daat slice of type "Selection" where in you select '0CALMNONTH' and then filter it to the variable '0CMONTH' +1
    where in you "Exclude" this selection. So now all the other months except next month at any point of time will be disabled for planning.
    You can go through the following links for your reference,
    Char rel - [http://help.sap.com/SAPHELP_NW04s/helpdata/EN/43/1c3d0f31b70701e10000000a422035/frameset.htm]
    Data slice - [http://help.sap.com/SAPHELP_NW04s/helpdata/EN/43/1c3d0f31b70701e10000000a422035/frameset.htm]
    Hope this solves your doubt.
    Regards,
    Balajee

  • Creating characteristic Relationship in IP

    Hi all,
    How do I create characteristic relationship in IP?
    I want to derive Employees based on certain Cost Center.
    This works well in BPS.
    But in IP, when I go to Characteristic Relatioship tab, there is no option/button to create a new relation.
    How do I do this?
    All help is highly appreciated.
    Thanks.
    Anand

    Did you try selecting other real time infoproviders. Do remember char-relationships can be created only for real-time cubes not for multiproviders or actual cubes.
    Also check the real time cube that u selected is set to plan mode in RSA1.
    If the problem is not solved, ask the basis team to look into it. probably a refesh to J2EE engine might solve the problem at times.

  • Derive method of characteristic relationship with exit class BI IP

    Hi All,
    We have below four fileds in real time planning cube.
    Quantity
    Unit of measure
    Converted Quantity
    Converted UOM
    We have implemented characteristic relationship of type exit between UOM and converted UOM. We need to populate values of converted UOM using characteristic relationship.
    do we need to implement derive method to fulfil this requirement ?
    if yes, when derive method of exit class is getting called ?
    Awaiting for your reply.
    Regards,
    Mitesh.

    Hi Andrey,
    Thanks for your reply.
    I have tried approach suggested by you however break-point did not stop yet to derive method.
    I will give little more details on what i have implemented, probably it may help you.
    I implemented CREATE method and generated below combinations. No other method has been implemented yet.
    UOM            Converted UOM
    G                 KG
    KG              G
    clear ls_unit.
      ls_unit-unit = 'G'.
      ls_unit-unit1 = 'KG'.
      APPEND ls_unit to lt_unit.
      clear ls_unit.
      ls_unit-unit = 'KG'.
      ls_unit-unit1 = 'G'.
      APPEND ls_unit to lt_unit.
    E_TH_CHAS = lt_unit[] .
    Kindly suggest,
    1. any specific configuration at query level is required to call derive method
    2. what code should i need to write if i want to derive above combination using derive method
    Thanks,
    Mitesh.

  • Characteristic  Relationship in BI-IP

    Hi
    We have an issue creating Characteristic Relationship in BI-IP. We are on BI-7.0 with SPS-12.
    When I am selecting Char. Rel without DerivationChar Combinations Based on HierarchyThe Variable Hierarchy button which was getting displayed before is disappearing. We have more than one hierarchy for Internal Orders, Cost Elements.
    Please let me know how to go about.
    Appreciate your response.
    Regards
    Srinivas

    Hello Srinivas,
    I tried it and it seems to be a bug. Please open a customer message so SAP support can analyze the issue.
    Regards,
    Marc
    SAP NetWeaver RIG

  • BI IP-Characteristic Relationship- invalid combinations are shown

    Dear all,
    we need to create a query ready for input but we need to avoid that the invalid combinations of two characteristic on wors are shown.
    In fact the system presents the inconsistent combination as not editable.
    Could you please suggest how to avoid this?
    Many thanks in advance for help!
    Stefania

    Hi
    the link is ueseful, but I try to explane what we really need.
    We have in the level two chars (ZC1 and ZC2; ZC2 is attribute of ZC1) and here you can see the values
    ZC1               ZC2 
    PREVAI     AI    
    GUASAI     AI    
    PREVBT     BT   
    GUASBT     BT   
    The requiremet is that the user can plan by ZC1 and ZC2, but that he has a total row by ZC2 (not editable).
    That's why I defined a structure on the rows with restrictions for ZC1 and ZC2, according to the master data relationship, and put the structure on the rows.
    I defined a hierarchy for ZC1 where nodes are values of char ZC2 and I set this in the characteristic relationship for the provider. here is the hierarchy.
    AI
        PREVAI
        GUASAI
    BT
        PREVBT
        GUASBT
    The result is that in the best option I see in the query invalid combinations such as BT PREVAI.
    Any suggestion?

  • BI IP : Characteristic relationship in Planning Modeler EXCL. #

    Hi,
    While creating characteristic relationship in the Planning Modeler. There is a new check box named :
    " Excl. # "
    It was not available in previous versions. What does it mean ?
    Regards
    Dheeraj

    Hi,
    For eg. you have characteristic relationship between two characteristics Product and Product Group with following valid combinations:
    Product  |  Product Group
    '#           |     Juice
    Juice 1   |    Juice
    Juice 2   |    Juice
    Here, if you set checkbox 'EXCL #'. then the  first combination which has '#' in Proudct will not be considered as valid combination by system.
    Regards,
    Deepti
    Edited by: Deepti Maru on Nov 5, 2008 12:15 PM

  • Characteristic relationship not working

    Hi All,
    I created a characteristic relationship using Datastore object considering two infoobjects that were available both in my real cube as well as the ods.
    Bcos of this i was able to generate(through reporting on cube) a valid combination of these two objects which were there in Datastore but not in Cube.
    Yesterday i created this and the query was working fine.After that i deleted the char relationship and recreted again and did some more enhancements like suppressing result rows etc, adding more characteristics in filter.
    But the query is not displaying any results now for objects present only in DSO and not in cube.
    What could have changed because of which it is not working?
    Any help is appreciated.
    Ajay

    Hello, the link should work, here a clickable link:
    http://pwmather.wordpress.com/2013/07/04/projectserver-ps2013-excel-pivot-table-limitation/
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Characteristic Relationship - Derive week from 0CALWEEK

    I need an exit for characteristic relationship, deriving week (to a custom characteristic ZWEEK) from 0CALWEEK. I.e. I should be filling ZWEEK with the week number 1-52 based on 0CALWEEK's YYYYWW. Anyone have something like this already in place and would perhaps be so generous as to share the code or experiences?
    Regards,
    Thomas

    Hi Thomas,
    here you are:
    FUNCTION Z_DERIVE_ZWEEK.
    *"*"Local interface:
    *"       IMPORTING
    *"             VALUE(I_AREA) TYPE  UPC_Y_AREA
    *"             REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"             REFERENCE(ITO_SOURCE) TYPE  UPC_YTO_CHA
    *"             REFERENCE(ITO_TARGET) TYPE  UPC_YTO_CHA
    *"       CHANGING
    *"             REFERENCE(XS_CHAS) TYPE  ANY
    *"       EXCEPTIONS
    *"              FAILED
      FIELD-SYMBOLS: <calweek> TYPE ANY, <zweek> TYPE ANY.
      READ TABLE ito_source TRANSPORTING NO FIELDS WITH
        KEY CHANM = '0CALWEEK'.
      if sy-subrc = 0.
        ASSIGN COMPONENT '0CALWEEK' OF STRUCTURE xs_chas TO <calweek>.
        READ TABLE ito_target TRANSPORTING NO FIELDS WITH
          KEY CHANM = 'ZWEEK'.
        if sy-subrc = 0.
          ASSIGN COMPONENT 'ZWEEK' OF STRUCTURE xs_chas TO <zweek>.
          <zweek> = <calweek>+4(2).
        endif.
      endif.
    ENDFUNCTION.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Characteristic Relationship - displaying data

    Hi All,
    I implemented characteristic relationship (through ABAP class) and it is working fine except one thing.
    It displays the desired combinations, but also posted data in infoprovider in planning mode, that were suppose to be hidden (according to char. rel. logic).
    I set for all the relevant characteristics "characteristic relationship" in query designer....
    Any idea what I am doing wrong?
    Many Thanks!
    Pavel

    Hi Pavel,
    sorry, maybe your exist does not work in all cases (implementation of the check method).
    From your description it seems that you want to control access or maybe only make something not input ready. In the first case use authorization, in the latter use data slices.
    When you say 'measures' it is also not clear for me whether you mean 'key figures'. You can not control key figures with characteristics relations, except you are using a characteristic to model key figures (account model). But again, characteristic relationships are a means to control the valid combination in the cube (so to say they define the 'truth' in the cube or what are 'consistent' data records). Data slices are a concept to protect data from being changed (typical example: lock a planning version).
    Regards,
    Gregor

  • Characteristic Relationship

    I am using a characteristic relationship (without derivation) on Employee for Cost Center.
    I have a cube that contains Key figures for each period for each planned cost center (with employee = #). I am wanting to copy these key figures to the employees within each cost center.
    ex:
    CC   Plan Hrs
    1238  155
    2345  200
    3425  175
    I have employee 10134 (CC = 1238)
    I am wanting to use ONE copy function to copy all key figures changing Employee:
    Employee = # to Employee = 10134
    I was hoping setting the Characteristic relationship would only copy the plan hours according to Master Cost Center (155 hours to 10134, etc). Instead, it will fail stating
    "Combination '10134,DEL/2345' is invalid; Valid is '10134,DEL/1238': Characteristic 0EMPLOYEE'".
    How can I set this characteristic relationship to only allow the copy to employees within the cost center without having it fail? I do not want to allow this function to copy the KF for CC 3425 to employees within another cost center.
    Thanks!

    Hi,
    it seems that you have combinations employee = #, CC = DEL/2345 in your copy source, the system then tries to copy such combinations to  '10134,DEL/2345' and this combination is not valid. This will only happen in the special case that you have employee = # as copy source and 10134 as target and employee is the only field to be changed, i.e. source and target have only single value selections.
    You can work around this effect as follows: allow more more values in the target for employee or by adding CC to the fields to be changed (if this characteristic is not restricted to a single value in the filter used in the planning function).
    Another option is to decomment the following lines in class CL_RSPLFC_COPY, method IF_RSPLFA_SRVTYPE_IMP_EXEC_REF~EXECUTE
            ELSE.
            .... restriction to single values => check the combination (much faster)
              MOVE-CORRESPONDING <s_block_line> TO <s_chas>.
              LOOP AT l_s_rule-t_to_sel INTO l_s_sel.
                ASSIGN COMPONENT l_s_sel-chanm OF STRUCTURE <s_chas> TO <cha>.
              precondition:  l_s_sel-t_rng contains just one line with sign = 'I' and opt = 'Eq'
                LOOP AT l_s_sel-t_rng INTO l_s_rng.
                  <cha> = l_s_rng-low.
                  EXIT.
                ENDLOOP.
              ENDLOOP.
              cl_rsplfr_controller=>p_r_cr_controller->check( EXPORTING i_s_chas = <s_chas>
                                        IMPORTING e_t_mesg = l_t_contr_msg
                                                  e_is_valid = l_is_valid ).
              IF l_is_valid = abap_false.
                continue.                                                                                "<== insert
              create context without real message
               me->msg_with_context( EXPORTING i_r_msg_src = l_r_msg         "<== begin of change
                                               i_s_rule = l_s_rule
                                     CHANGING  c_r_msg_trgt = l_r_i_msg ).
               LOOP AT l_t_contr_msg INTO l_s_contr_msg.
                 MESSAGE ID l_s_contr_msg-msgid TYPE 'E' NUMBER l_s_contr_msg-msgno
                       WITH l_s_contr_msg-msgv1 l_s_contr_msg-msgv2
                            l_s_contr_msg-msgv3 l_s_contr_msg-msgv4
                       INTO l_dummy.
                 l_r_i_msg->add_msg( ).
               ENDLOOP.
               RETURN. " all messages are error. => planning function stops.     "<== end of change
              ENDIF.
    Regards,
    Gregor

Maybe you are looking for

  • Using ACCESS2000 DoCmd.SendObject , , acFormatRTF to write e-mail does not appear in OUT BOX

    OUTLOOK does not work with WINDOWS 8.1. I am trying THUNDERBIRD. I can send emails if they are created in THUNDERBIRD. I need to create them in ACCESS 2000 using DoCmd.SendObject , , acFormatRTF . The code runs but the e-mails do not appear in THUNDE

  • Can't find the accessibility menu any more under tools

    I am trying to restore the ability of websites to redirect me to other sites. I think I'd made the mistake of removing this capability by using the Tools/Options/General/Accessibility menu, under "Warn me when websites try to redirect or reload the p

  • Create a ipod or iphone version

    I try to create a ipod or iphone version of this movie but when I try the audio comes in fine but the picture is all white. Is there a fix for this?

  • How to recover account without email

    I have one skype account and i forget the email id registered to it and password also.I don't even know that if somebody using that account or not. So, is there any way out so that I can recover that account or I come to know which email id is regist

  • Is 1GB of RAM Enough?

    I was planning on buying a MacBook with the SuperDrive and a 2.0GHz. Is 1GB of RAM enough to run photoshop, dreamweaver, and flash, beacuse if I only get 1G of RAM then I can upgrade the hard drive to 100GB. I plan on using Boot Camp also. This will