Characteristic derivation in COPA

Hi
I need to program a piece of code that retrieves a specific value out of a deriviation rule on SPART. Anyone now of a functionmodule/BAPI that can do this. Have been debugging transaction KEDE hours on end but have not found the "holy grail" yet. Hope someone can help.
The right help will be rewarded!
Cheers and thx

Hi,
Go through this SAP Note 172740.  May be useful.
Thanks
Krishna.

Similar Messages

  • COPA-Characteristic Derivation

    hi
    i created a character to capture vessel name which is stored in billing under Customer PO number.  For the i created Table Look Up like Origin Table is VBKD and field is BSTKD and Target filed is WWVSL which i created.  But while releasing the billing document, i am getting error as mentioned below:
    Error occurred during table access. See long text
    Message no. K/112
    CO-PA Characteristic Derivation
    Diagnosis
    Step 0027 Table lookup for vessel name
    While executing this table lookup, the system could not find an entry for the specified source values in table VBKD.
    This derivation step is defined so that an error message is displayed when this occurs.
    Table VBKD lacks entries for the following source values:
    Sales Order Number/Item Number in Sales Order
    214/10
    Procedure
    Make an entry in table VBKD for the specified source values.
    If you do not want derivation to be performed in every instance, change the derivation step so that no error message is displayed if no entry exists.
    Maintain derivation strategy
    If any one know how to solve this error, pls let me know.
    i will assign good points.
    thanks

    Hi There
    Go to KEDR and double click on that derivation step .
    You will see three tabs there ( Definition , Condition Attribute )
    Go to attributes and uncheck the issue error message box.
    Thanks,
    Reddy

  • Will Characteristic Derivation in KEPM using Plan Method COPY

    Dear All,
    While performing Planning using KEPM transaction with Plan Method Copy. Characteristic Derivation is not working.
    System Construction
    We have put a derivation step in KEDR that needs to populate a Custom Characteristic WWXXX with a certain value. The Condition for this step is PLIKZ(plan\actual) indicator should be equall to 1.
    We are copying Actual data to plan using the Plan Method COPY.The Custom Characteristic is not updated while posting actual data. However we want it to be updated while planning, hence the derivation rule. However, it is not getting update.
    Note: In COPA Plan Version "Check Derivation" is selected. and We have tested in KE21S it was working fine
    Thanks & Regards
    Surya

    Hi,
    it is copy/paste.
    "Move" can be used if you want just a sequence "345" from a characteristic "123456" by using the "detail" button in the step definition.
    If you want to remove the characeristic from a field, make a "clear" step.
    Best regards, Christian

  • Characteristic Derivation in Profitability Analysis

    Dear Experts,
    I am finding it bit difficult to understand the concept fully when it comes to the Characteristic Derivation in Profitability Analysis.
    I had gone through the various SAP explanations of MOVE, LOOK UP, ENHANCEMENT, DERIVATION RULEu2026. And now I am having rough understanding of all of it. But I am finding it difficult to understand on how these various steps or rule impact the COPA output. In other words if someone can explain the usage of all the MOVE, LOOK UP, ENHANCEMENT, DERIVATION RULE steps with an example?
    Thanks in advance
    Paul

    Hello Paul,
    Its purely clients decision/requirements  which determine whether derivation is required or not.  But in all COPA implemenation you need at least couple of derivations.
    I will explain a simple scenario for Table Look up. Suppose you are settling production orders linked to a sales order ( Make to order scenario).
    When the production order settles variances to COPA, system will not transfer Customer ( sold to party) characteristics.
    But you can tweak the system through a small derivation rule to bring the customer from sales order and pass it to COPA when production order is settled.
    For table look up first you have to identify the table, here our reference is sales order (VBAP-VBELN) and the required field is sold to party (VBAP-KUNNR), both are in VBAK
    In the source field for table look up
    VBAP- VBELN =  CO-PA- KAUFN ( means if sales order number from VBAP table is same as the COPA sales order number)
    VBAK-KUNNR= CO-PA-KDNR  ( then pull the customer number associated with that sales order and populate the COPA customer field)
    Please carefully go through SAP help for derivation, it is clearly explained with simple examples
    http://help.sap.com/saphelp_46c/helpdata/en/7a/4c37ef4a0111d1894c0000e829fbbd/frameset.htm
    thanks
    SAP FREAK

  • SO not derived to COPA

    Hi experts,
    In one of the client, while creating SO, it is entirely not derived into COPA, not even a single characteristic or a value field, which is weird, because in another client, nothing's wrong. I have checked the COPA related customizing:
    - KEDR, no error issue is ticked
    - KEA0, environment and data structure is generated correctly (green light)
    - KEKE, profitability analysis is active
    - KEKF, activate transfer of SO is active (with indicator '1')
    The SO is created, but nothing is created in COPA (i checked ke24 and ke30, nothing related the SO is there). I simulate the transfer for that existing SO, nothing is derived.
    Any suggestions what could have possibly gone wrong?
    Please suggest
    Thank you all so much for your help
    Regards, Erwin

    Hi,
    Is your sales order item category having billing plan relevant, if this is the case have you maintaine billing plan?
    what kind of billing you are using , delivery based , order based , and whether billing plan is used or not.
    How incoming order is updated in COPA on the date of entry or based on schedule lines, if it is based on schedule line , are schedulelines properly maintianed.
    if there are many exists implemented in SD , check whether any of  exit having certain condition  on the fullfillment of which only copa doc is posted.

  • Error in characteristic derivation at the level of the invoice item when re

    We are implementing the SAP project for just one small private medical Center which includes mainly outpatient cases in different medical Clinics (different departments in the same medical center) .For example: Radiology center/department, cardiology center Obstetrics center and so on.
    We have defined each center/department as a different profit center.
    Some of departments are subdivided to several medical organizational units; each unit represents a different cost center at the same profit center/department.
    A case-based order (internal CO orders relating to a patientu2019s case) is created in the background when the patient is admitted
    The same patient can get services from few organizational units (in ISH)/cost centers at the same visit/case and that's why it is important to collect revenue and costs at the same case based order. The revenue is posted to the case base order by using billing in the ISH module and the costs by internal activity allocation.
    We have assigned IS-H services to activity types in Controlling; the services transfer to the case based order. CO-relevant services are posted from IS-H to cost centers in CO and within internal activity allocation, allocate them to the case-based order.
    For example:
    X ray service assigned to Technician minutes activity type.
    Each X Ray service takes 20 minutes of  Technician (Qty Cnv Facto=20 MIN)
    The service transfer is preformed automatically at final billing.
    We have implemented Case Costing Level 2 in order to analyze case costs in CO-PA.
    We want to have the ability to derive the profitability analysis characteristics at the level of a line item in the case, for example: we want to define a service or the preformed organizational unit as a characteristic in PA.
    We are not sure what the best feasible solution for this requirement is.
    We investigated few alternatives: 
    1.     We have defined the case based order as real order with a settlement rule to a profitability segment. Revenue and Costs are posted to the cased based order and then settled to the profitability analysis. We eliminated this alternative because we didn't find any way to distribute revenue and case costs to PA between the different "line item characteristics" (for example: different services in the case).
    2.     After eliminating the first alternative we tried to change the solution.
    We have dealt with revenue and costs separately.
    1.     Revenue: In the "configure revenue accounting" We flagged the Post to Prof.Segment checkbox, the patient billing module attempts to determine a profitability segment in CO for each invoice item and to post the revenue to it. The system determines the profitability segment using the characteristics of the patient and case data we defined.
    We are using ISH_CHARACTERISTIC_* functions for characteristic derivation but we couldn't derive user defined characteristics which are defined at the level of the invoice item. (For example: billable service in the case or preformed organizational unit for each service.).We didn't succeed to it by using the ISH_CHARACTERISTIC_* functions.
    2.     Costs:
    We tried to posts case costs (internal activity allocation) directly to profitability analysis, this way we hope to have the ability to derive characteristic of the line item.
    We know that when we use transaction: KB21N for internal activity allocation and we define two receivers, internal order and profitability segment- In case the order will be statistical the true posting will be to profitability analysis segment.
    Therefore we have defined the case based order as statistical order.
    We want to intervene in the automatic creation of account assignment lines by enhancement NHCO0001 IS-H: Create account asgmt. line during CO transfer.
    The transfer program creates for CO-relevant services account assignment lines for Assignment rules.
    But-We didn't find any way to do it, because the profitability segment object is missing in enhancement NHCO0001.
    As an alternative we tried to use User-Exit in the profitability analysis valuation (transaction: ke4u) but also with no success. (Enhancement COPA0002).
    Could you Please advice what to do,I didn't succeed in my ideas and investigations.
    Thanks
    Yael Jacobi
    Controlling Consultant

    HI Claudius
    Thanks for your answer, I will try to discuss it again with my customer to understand weather he really needs/wants a profitability analysis on service level.
    I processed also an inquiry within the Service Remote Consulting according , I will let you know their answer as well.
    I have additional issue to discuss with you , please let me know wheatear you can help me.
    There are internal service sales between different departments in the same medical center. For example: Radiology center/department sells X-rays services for the cardiology center. We need the ability to sell a service to a different department in a different price than to an external payer/customer/insurance provider.
    Is it possible to implement profit center transfer prices along with the ISH_CO integration?,
    How is it getting along with the posting of internal activity allocation when services transfer to Controlling?
    At standard the costs are allocated (by means of internal activity allocation) between profit centers. The responsible cost center (assigned to the performing organization unit) is credited and the case based order (which is assigned to different profit center) is debited.
    Is it possible to implement transfer prices in case the performing organizational units are connected to the same profit center? (because some of departments are subdivided to several medical organizational units; and each unit represents a different cost center at the same profit center/department).
    Do you recommend defining a different profit center also for each sub-department?
    Do you have any other proposed solution for this issue?.
    Thanks,
    Yael

  • Is there a way to specifiy a date in characteristic derivations?

    Hello,
    I have a characteristic derivation set up for certain attributes on the characteristic 0employee. In the transactional cube there are records for an employee that hasn't actually started employement yet, but since it is a budget/forecast model they have records in the cube as well as other employee attributes. When I try to perform a copy function, it tries to derive the attributes for this employee, but since the start date on the employee master data is in the future, it is using the first 0employee record with the valid from date = '01.01.1000', which has no attributes set up.
    Here is an example:
    Cube contains employee 00014300 and country 'AU '.
    Master data contains:
    00014300 A       20.03.2005 01.01.1000 ' '
    00014300 A       31.12.9999 21.03.2005 AU
    Copy function as of today (15.03.2005) is using the first record so I get the error "Value AU of chara Country does not correspond to the attrib.val  of chara Employee".
    Can anyone tell me how to get around this problem without modifying master data directly as there could be a few records with the same problem. Can I specify a date to of '31.12.9999' for characeristic derivations?
    Thanks,
    Linda

    Hi
    I would suggest using an Exit Characteristic Derivation, that way you can decide in your own ABAP code which master data record to use.
    function z_derive_emp_info.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(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
      DATA:
      itab TYPE TABLE OF ????.
      FIELD-SYMBOLS:
      <emp_id> TYPE /BI0/OIEMPLOYEE, 
      <country> TYPE /BI0/OICOUNTRY_ID,
      <???> TYPE another attribute???.
      ASSIGN COMPONENT '0EMPLOYEE' OF STRUCTURE xs_chas TO <emp_id>.
      ASSIGN COMPONENT '0COUNTRY_ID' OF STRUCTURE xs_chas TO <country>.
      ASSIGN COMPONENT '???' OF STRUCTURE xs_chas TO <???>.
    SELECT ??? ???
    INTO TABLE itab
    FROM /BI0/QEMPLOYEE
    WHERE EMPLOYEE = <emp_id>
    AND OBJVERS = 'A'.
    READ itab ..... WITH KEY DATETO ???
                              DATEFROM ???
    <country> = itab-country.
    <???>  = itab-???.
      etc.

  • Problem in using the PA characteristic derivation using KEDR transaction

    Hi All,
                  For one of my requirements i need to update the 'KAUFN'  field in CE1XXX table with the reference document no(Contract number- VGBEL) which is there in VBAK table while createing the sales order using VA01 transaction.  I have implemented one derivation using the user exit EXIT_SAPLKEDRCOPA_001. I got succeeded in updating the structure I_COPA_ITEM with the VGBEL filed, but the problem it is not updating in the table CE1XXX table. 
                Please suggest me regarding this problem. Is there any other way for this issue.

    Hi Hussain,
    Have a look at the following useful link:
    Re: CO- PA characteristic derivation
    Hope it helps.

  • Product Hierarchy Derivation in COPA

    Hi Gurus,
    We have 6 levels of Product hierarchy defined in the system and I am able to include it in the data structure. The related Characteristics are PAPH1,PAPH2,PAPH3,PAPH4,PAPH5,PAPH6 included in my operating concern. Level 1 has 1 character in number and rest of the levels has 3 characters each in number as follows.
    Level 1--1 Number of Character
    Level 2--3 Number of Characters
    Level 3--3 Number of Characters
    Level 4--3 Number of Characters
    Level 5--3 Number of Characters
    Level 6--3 Number of Characters
    Hence all together the total number/length is 16.
    Now, when I generated the operating concern,the derivation rules for product hierarchy are created automatically as follows.
    Following is the screen shot for source field if I open step number 22
    The corresponding screen shot for Target field is as follows
    For step 23 , the source field details are same as step 22 but target field details are as follows
    We have assigned Product hierarchy in Material master in tab Sales:Sales Org 2 which is 16 digits.
    Now when I try to test the derivation rule for step 22, system gives me following error
    =================================================================================
    Characteristic value   010 does not exist for characteristic PAPH2 (ProdHier01-2)
    Message no. KE0C133
    Diagnosis
    The characteristic "PAPH2" ("ProdHier01-2") should be posted to Profitability Analysis (CO-PA). When the system checked the entries, it was established that the transferred characteristic value ("  010") is not valid in CO-PA.
    System Response
    The data is not consistent and therefore cannot be transferred to CO-PA.
    Procedure
    With the function Maintain Characteristic Values, you can add characteristic values to those that are valid.
    ==================================================================================
    I am getting the same error for all steps in test mode. How to fix this error? Do I need delete the PAPH1--PAPH6 characteristics and use the user defined characteristics and write derivation rule again? Also I want to know the use of steps 28 to 31 (clear) in this regard.
    I have not included characteristic PRODH in my data structure. Do I require to include it in my Operating concern?
    Regards,
    makrand

    Dear Ajay,
    Hearty Thanks for the solution. As suggested by you, I removed "move" steps and defined the Table Lookup" steps.
    There are two target entries i.e MVKE (Origin) table and the field name is PRODH (Product Hierarchy) which is equivalent to second target entry COPA (Origin) field (PAPH1 -----to PAPH6) in the same line.
    In field PRODH,I used offset position. I selected "Entire Field Contents" and kept character position as 0 and kept total characters as 16 in each table lookup entry.
    Again I have to make offset settings in PAPH1---PAPH6 fields. I selected "Entire Field Contents" tab and system automatically changed the field length for PAPH1 to PAPH6. Now the results are correct.
    I arrived at solution after making some combinations in offset. Thought, this may be useful for somebody facing the similar issue.
    What's the use of "Clear" steps which are generated by system?
    Thanks and regards,
    makrand

  • State (Region) Derivation in COPA

    HI,
    I currenlty have the COPA derviation for State (Region) mapped to KNNR, based on the Customer number (KNA1) and the Region Field (Regio).  I feel this is incorrect becusae while the sales team changes the ship to address for the customer, it will not reflect this in COPA.  does anyone know what the correct mapping should be?  I asked the SD guy and he is not sure. 
    Thanks,
    Rashad

    Hi,
    the SAP standard customer in CO-PA characteristic KUNNR is the sold-to-party customer. So if you want to derive another SD partner role (ship-to-party, payer,...) follow SAPNET note 36557. Once the ship-to-party customer is derived you can derive state (or anything else) in the same way as its done for the sold-to-party customer.
    Best regards, Christian

  • Adding a new Characteristic in live COPA table

    Dear Friends
    My client is using COPA for reporting purpose. Now the client need to add one more charachteristic in COPA table ie CE1XXXXX for doing better analysis. And the propsed character is maintaining in customer master data also. Can anybody teel me about:
        Is it possible to add a new character in a live COPA table ?
        If possible what all precaution we need to take for adding a new character and what is the impact of the same? or
        My client is having some character field in the COPA Table CE1XXXX which is not using at all. So is it possible for me to use that
        field for the new character.
        If we make any modification in COPA, what will happen to the datas stored in the COPA table ?
    Thanks & Regards
    Jo
    Moderator: Please, search SDN

    Hi Jo ,
    1. Is it possible to add a new character in a live COPA table ? => Yes , it is possible to add new characteristics in Live- COPA . You have to regenerate the Operating Concern again . Please do the changes at the time.. when no Sales and FI entries are taking place .. as during the time you are changing.. any billing documents created cannot be released to accounting as COPA will not be active at that moment .
    2. If possible what all precaution we need to take for adding a new character and what is the impact of the same? => Please do the changes at the time.. when no Sales and FI entries are taking place .. as during the time you are changing.. any billing documents created cannot be released to accounting as COPA will not be active at that moment .
    3. My client is having some character field in the COPA Table CE1XXXX which is not using at all. So is it possible for me to use that
    field for the new character.=> You can have maximum of 50 characteristics and 120 value fields allowed
    in an Operating Concern. If some characteristics are customer defined characteristics and are not used.. you can use them.. but you have to re-think on derivation strategy to derive the characteristics in COPA document .
    4. If we make any modification in COPA, what will happen to the datas stored in the COPA table ?=> Data will remain as it is. No changes will be there in old data . But if you want to rederive the new characteristics in the OLD COPA documents .. you have to perform the COPA realignment transaction KEND ..
    Hope it clarifies all your queries. Please revert back for any further clarifications
    Regards
    Sarada

  • Derivation Rule: COPA

    Hello Everyone,
    Could you please tell me how to write derivation rule in COPA.  I would appreciation if you send me any document related to it.
    Thanks in advance.
    Sneha

    Hi
    I am working on SAP-ISU project. Our system is very old and we need to maintain it upt 2011. I found a Note 734718 for schedule records and implemented it.
    I have searched for the programs which uses '31.12.2009' as end date. I found two programs RKEVKED0, LSSQ0V28.  These are called dynamically. When I see the program I found that type-pools for KEDR is used. Also in the code dynamic table declaration is used.
    I looked at KEDR transaction and nothing understood about it.
    Can you please tell me how these programs are generated and why 31.12.2009 is used as end date.
    Thanks in advance
    Vijay

  • WWSRG derivation in COPA

    Hi,
    In the copa documents, the Sales reporting group is fetched from Derviation.
    Its done through a user exit. It is derived based on the Object number
    That is ARTNR . This is derived from INOB table, based on material number.
    After that I am confused as to which table it actually looks to fetch the WWSRG i.e the Sales reporting group.
    Any idea, which table is a possible table, which may actually be fetching WWSRG value?
    SRG is in MARA. But it is not picked from MARA. So please let me know any other possible table.

    Hi
    Right person to answer this question would be your ABAP consultant
    if you are using INOB table means you are having Variant Characteristics.... The possible tables/Structures would be AUSP, CLOBJDAT and INOB/MARA...
    The Table CLOBJDAT stores the variant chars...
    Regards
    Ajay M

  • Characterstic Derivation in COPA

    Dear Experts,
    could you please give me example and purpose of derivation rule (meaning) in COPA ie., why do we define derivation..
    your replies are highly appreciable..
    With Best Regards,
    satish

    Hi ,
    In COPA , you pull reports based on various dimensions , like product , plant , company code , region , division , product group etc... . We define these dimensions as Characteristics in COPA ..
    Now , if we have to pull data in these dimensions.. we have to make sure that all these characteristics are populated in a COPA Document ..All the characteristics are not always are available during creation of billing document ..hence we need to have a COPA Characteristics derivation strategy ..
    Strategy may be :
    Derivation of Fixed Characteristics
    Derivation from derivation rules
    Derivation from table lookups
      Derivation from customer hierarchy
    Derivation of Product Hierarchy
    Derivation of Region
    Derivation with move and clear functions
    Derivation within enhancement steps
      Derivation of quantity units
    Regards
    Sarada

  • Characteristic derived Update Rules

    Hi guys,
    I have to make the update rules for a DSO.
    Among characteristics there is one that should by derived from the master data table of another characteristic. Even more, this attribute is time-dependent.
    So, let's say for characteristic zstatus  I:
    <li>checked the Master Data Attribute of</li>
    <li>selected the deriving characteristic zdoc</li>
    <li>clicked the Time Dependency button</li>
    <li>checked the End radio button</li>
    <li>selected 0CALDAY from the Frm match code button</li>
    <li>Closed all modal windows and activated the update rules</li>
    After both, master data bearing characteristics and transaction data were uploaded, the results were far from what I expected to be, as you can see below:
    <li>zdoc Master data</li>
    Comp Code     BP     Ref. no     Valid-to             Valid-from            Document_date     Net_duedate     Status
    RO20     90000724     342342     11.11.2008     01.01.1000     21.11.2008     20.9.2007     
    RO20     90000724     342342     20.11.2008     12.11.2008     21.11.2008     20.9.2007                  1
    RO20     90000724     342342     31.12.9999     21.11.2008     21.11.2008     20.9.2007                  2
    <li>Transaction data [ DSO ]</li>
    Comp Code     BP     Ref. no     Document date     Status     Document Type     Amount     0CALDAY
    RO20     90000724     342342     5.9.2007                                 X            119,00     5.9.2007
    RO20     90000724     342342     5.9.2007                 1             I            119,00     21.11.2008
    RO20     90000724     342342     5.9.2007                 1            X            119,00     21.11.2008
    Well, I expected the Status column in the DSO table [ the bolded column to get the value 2 after deriving the zdoc characteristic on 0CALDAY, during data loading process, however, it takes the value 1 in turn.
    I'm not sure, I'm clear in my explanations...if  there is someone who understood my pain, and tell me what's wrong with my update rules I would appreciate.
    Kind Regards!

    After updating the data, did you perform a hierarchy/attribute change run or "activate" the master data for your lookup object?  Also, check in the "Q" table of the master date lookup object, all of those records should be in the table and active.
    Brian

Maybe you are looking for

  • Safari can't open a website because Mac OS X doesn't recognize Internet addresses starting with "http:". WHAT??

    Today I have been receiving intermittent error messages while running Safari v5.0.6 on my iMac running Mac OS X v 10.5.8 that Safari cannot open internet sites starting with https: or http: because OS X does not recognize https: or http:. It seems to

  • CFFTP using browse, filename is wrong

    I want a user to be able to browse to a file on their local machine then FTP it to a remote server.I've been using CFFTP. I can make the connection to the server just fine. I have the path correct. The problem is when selecting the file through brows

  • Dynamic table name in an inner join - select statement

    Hi, Please can you let me know if is possible to use a Dynamic table name in an inner join? Something like the statement below? (It works in a simple select statement but not in an inner join) SELECT  *      INTO CORRESPONDING FIELDS OF <t_itab>     

  • Make Bootcamp solid for 2 days

    Hi, Bootcampers. I don't know anything about Windows or Bootcamp. I need to make my Bootcamp install of WinXP SP2 bombproof for a single use: for my kid to take the bar exam using special software that runs on Windows only. The software is supposed t

  • After using Apple Compressor It wont free up my ram

    I noticed that after I use Compressor my Ram wont free up. I have 8 Gig of Ram and after using Compressor it just stays between 486 mb or 300 mb. I can only get my ram back after a reboot. What's up with that?