Derivation of CO-PA fields

hi,
can anybody suggest the easiest way to derive the CO-PA values  for user defined characteristics.
anand

Hi Anand,
Characteristics in Profitability Analysis represent those criteria according to which the operating results shall be analyzed.
A transaction posted to PA may not supply values for all the characteristics.However, many characteristics are dependent on others, which makes it possible to derive the missing ones from the information provided.
Derivation involves a number of different steps, which are processed in the following order:
User Exit : You can only change the user-defined characteristics.
(ii) Derivation of Fixed Characteristics (e.g. Co Area from Co Code)
(iii)Derivation tables : For Characteristics chosen from SAP tables, as well as certain Fixed Characteristics
(iv) Derivation of quantity fields: If you assigned the sales quantity (FKIMG) or storage quantity (FKLMG) from SD to value fields in CO-PA when you set up the SD interface, the system can derive the corresponding quantity units automatically.
(v) Derivation Strategy (e.g. Derivation Rules, Move etc.): For user defined Characteristics.
(vi) Derivation using the dummy profit center: If Profit Center Accounting is active and the characteristic Profit center is not known, the system automatically derives the dummy profit center for the current controlling area.
Values are derived for certain characteristics only if the values are not yet known and all the values of the characteristics required for that derivation are known. If characteristic values are supplied by the source document, these are not overwritten by derivation, even if derivation would normally lead to other values.
The exception to this is derivation via user exits, which lets you overwrite existing characteristic values. The exceptions to this are the fixed characteristics Profit center (PRCTR) and Business area (GSBER), which can be changed using a user exit.
There are 5 different Derivation strategy which can be adopted in various scenarios:
Derivation Rule: A derivation rule is an "if  then" rule that determines which actual characteristic values or combinations of source characteristic values result in which target characteristic values.
(ii) Table lookups: Table lookups let you read individual records of any table to determine characteristic values. Here the source fields must make up the key of a specific table, from which the system can copy certain contents to the target fields.
(iii) Moves: Moves let you copy a constant or the content of any source field to a target field. For example, you can copy the value of a characteristic to another field if certain conditions are fulfilled.
(iv) Clear: Clears let you delete the value of a characteristic, setting that field back to its initial value (blank for CHAR fields, "0" for NUMC fields).
The easiest way could be either of these. Hope I had made clear to you. Please award points.
Rgds
Manish

Similar Messages

  • Using enhancement COPA0001 in a derivation to clear value fields

    Dear colleagues,
    In our sales process, freight is added as an item of the sales order, which means we maintain different freight types as materials (mat type ZFRE - "Freight") and we create cost estimates, so that this cost can be valuated into COPA.
    Our problem is that we do not want to capture the cost of goods sold and the cost of sales for those materialss, as they only represent the freight cost that is paid by us and reimbursed by our customers. In addition, I we would like to move the value of the revenue value field to another value field (Freight sales).
    I am trying to accomplish this by using enhancement COPA0001 - I created an enhancement step and I added a code to include ZXKKEU11 which specifies the "clear" of 2 value fields and the "move" of the revenue to another value field.
    I had done this in the past to clear quantity fields, but I am testing this new config and it doesn't work.
    When testing the derivation analyzer tells me that "Derivation was not carried out. Reason: None of the target fields are to be derived".
    I looked in the known resources, but couldn't find any valuable information about such an issue. I did see in the SAP library that target fields can be "All quantity unit fields" , but value fields are not mentioned.
    Did anyone have a similar experience or knows if what I'm trying to do is possible?
    Thanks,
    Yoel.

    Hi
    You can try with exit COPA0005 as Christian mentioned...
    But, I would like to know your process in ddetail to see if any standard mechanism is possible...
    1. What does your sale order look like? Does it has one saleable material + Multiple freight materials?
    2. What purpose these freight materials serve? Do they have a revenue as well as cost in the sale order pricing procedure?
    3. Can you explain your total scenario with accounting entries? and what exactly are you looking at
    Regards
    Ajay M

  • Powerpivot chart derived from Powerpivot table/field list

    Hi
    Is there a way to create a Powerpivot chart where it values are derived from a Powerpivot table?
    When I am in Powerpivot, there are options to create charts, tables and both charts and tables together.
    However, the chart has a separate field list than the table. Is there a way to make the chart and the table from one field list?
    Paul

    Hey Paul,
    afaik there is no possibility. The field list cannot be configured like slicers to have an effect on this or that pivot-table / pivot-chart.
    Nevertheless I don't want to disappoint you :)
    You could build one pivot-table and duplicate these values to some hidden sheet on which you build on your chart. If you then change the attribute on the rows the chart should adapt (but right now I'm not sure. Imagine you change the product subcategory
    (5 items) with the product (1000 items). How does the chart react?)
    Does this work (for you)? :)
    Kind regards
    Please mark helpful posts and answers! :)

  • COPA Derivation based with target field as non-copa field

    Hello experts,
    There is a requirement to derive the Characteristic maintained in Classification view(AUSP table) in Material master based on material number.The target field into which the characteristic value needs to be populated is not in COPA(it is a non-copa field).
    I tried to use table look up with AUSP table, but it is asking for values of certain key fields like
    ATZHL(Characteristic value counter)  MAFID(Indicator: Object/Class) and
    KLART(Class Type), which are not there in COPA.
    With the Enhancement in KEDR transaction, EXIT_SAPlKEDRCOPA_001 and Include ZXKKEU11, I  created an enhancement step by giving  the material as the key in the source fields.With that material number I can do a select on the AUSP table inside the include ZXKKEU11 and get the characteristic value. The problem i am facing is that the target field which stores the internal characteristic value is not there in COPA?And while creating a derivation rule, I can only select the COPA fields as target fields.
    It's urgent....any suggestions  please? Points will be rewarded for any useful answer.
    Thanks,
    Anky

    Hi,
    As far as I know the derivation functionality in COPA is meant for derivation of characteristic values to store them in a characteristic field.
    If you splitt up the derivation in two steps it might be possible to use the USERTEMP fields, to store the information needed and to pass it on to an other lookup step as a key-reference.
    Regards,
    Roy

  • COPA derivation rule for GL fields

    we are using Transaction type (BSEG_BEWAR) to store additional information for our Sales reporting. During the GL entry this field is update. I have created Derivation rule in COPA using table look up. The table I am using is BSEG. I have characteristics defined for Transaction type- WWTTY.
    when the table lookup is populated I get following fields in source as target :
    BSEG  -
    > BUKRS                                COPA  --> BUKRS
    BSEG  -
    > BELNR                               COPA -
    > BELNR
    BSEG -
    > GJAHR                              COPA  ---> GJAHR
    BSEG  -
    > BUZEI                               COPA  -
    > WWDOC ( This is custom defined in COPA)
    Assignment of Target Fields:
    BSEG ---> BEWAR                                COPA -
    WWDOC
    Still I am in seeing COPA getting updated with Transaction type value.
    Need input to solve this issue.
    Thanks in advance

    Hi Ajay,
    Thank you so much for your reply.Please note that the GL is a cost element but the category in system is 1 and not 12.However I would like understand as to why is this happening.why does the system picks up derviation rule for a Gross sales GL and not for Discount GL(Cost element).
    The distribution channel  gets updated for sales GL when i check the prof segment of the line item, however this is not the case with doscount GL.
    I would like to understnad the implication before changing cost element category from 1 to 12 as it runs across system.
    Kindly provide some more explaination.
    thanks in advance.

  • Identify price [Derive dynamic pricing] related fields within sales quote output form in SAP cloud for customer CRM application

    We have designed a Sales Quote Output Form using ADLC for SAP Cloud for Customer (C4C). We need to print both header and item level price details like Unit Price, Tax%, Tax Amount, Discount %, Discount value on the output form. We are now struggling to find the actual fields which will carry these values in the transaction. We are using multiple pricing procedures which have different condition types. The struggle is to find the actual condition type while generating the output. Can somebody guide which fields could carry these values which condition type. Can this be achieved without coding. Please guide.
    I have added two screen shots for reference.

    I am not sure I understand your question. What I think you are asking is in your data binding where is the data for fields in question. That is something you will need to get from whoever defined the data. The connection simply binds the data to your form but determining which field carries that data is not something this group would be able to help with. I would go back to your DBA and ask for a schema or DB reference to show which bindings will carry that data. Does that help?

  • FM DERIVER Custom field in Derivation Rule

    Hi Experts,
    I want to have a custom field while defining Derivation Rule in TCODE FMDERIVE, the field I require is Storage Location LGORT. Inorder to achieve this I have used Customer Include in structure FMDERIVE and inserted field LGORT.
    Now the problem is that when I am defining my custom Derivation Rule using custom field Storage Location, the rule is not determined.
    Could u please help me in this.
    Thanks n Regards
    Rohit

    Hi
    Go to
    Spro -PSFM-FMG-Master Data-Allocation to account assignment from other components -select derivation steps
    here u selct 3 option
    cost center to commitment-item/fund ctr/fund function
    then define account assignment derivation
    here u define Derivation rule whcihever u define
    here u find tables and field whichever u find
    if nay query, revert back
    Regards
    Roobal

  • Formatting output field to derive Record Throughput (Records Per Second)

    It's been so long long that I've done this I am seeking some guidance.
    The business problem I have is to derive a new calculated field to determine Throughput (Records Per Second)
    Formula: (((batch_job_execution.end_time - batch_job_execution.start_time) * (24*60))) / (write_count)
    The Results from above basically give me a Time Formatted Field and I am seeking an Intgerger field.
    I take it I need to do a CAST or other type of formatting function(s) and it most likely needs to be broken down
    within the calculated field above.
    If someone can provide some guidance as how best to approach this problem, that'll be GREAT!!
    If I need to provide some more information, please let me know as well.
    Sincerely,
    George

    Hello again,
    I attempted to use the TIMESTAMPDIFF function and I am receiving error ORA-00904 invalid identifier.
    I do not find this function in my Oracle SQL book so I'm assuming this might be a function that was created internally
    within your enterprise. Please correct me if I am wrong. This may have to be the path I take. (Create a FUNCTION to perform TIMESTAMPDIFF processing)
    Again, this is just some of my thoughts based on my research and I could be far off.
    Please advise or confirm my suspicions.
    Thanks
    George

  • Valuation field not updated in Profit Center view

    Good morning Gurus,
    I am facing a big problem in KE24 report. As I've checked here, one of my valuation fields related to Raw Materials (VVM01) is only being updated in Legal View from CO. Even I check it in CE1SA01 table (my table for CO documents), the value is not updated there for Profit Center view. I've check all exits that we have here, but the problem is not there. Derivation rules for the field are not customized, so I don't know where is the problem.
    Anyone have already faced this problem? Could you please help me? Points will be awarded.
    Many thanks in advance,
    Diogo Patriota.

    Issue has been resolved.1
    Issue has been resolved

  • Sales employee field in VA01 blocked & which fields are must to see in COPA

    Hi,
    I am able to see all the transactions from SD  and FI direct postings coming into COPA.
    But the  management wants to see the profitability in Sales employee level also.
    I am able to give the sales employee wise details in FI but in SD vao1 while I create a sales order the sales employee field in account assignments is blocked.
    I gave the same information in the other tab Partner function, but still I am not able to see the transaction in COPA  at sales employee level.
    Also please let me know if I have make all the characteristics I am seeing in COPA S mandatory like(WBS element, sales order, sales employee, ) mandatory or is it sufficient that I keep only profit center as a mandatory field.
    I feel profit center should be kept as mandatory field in SD and FI posting while remaining are all optional.
    Please explin me how I should unblock the sales employee in Va01 and also let me know the logic why we have to keep the fields optional or mandatory.
    Please assist me.
    Thanks,
    Shilpa.

    Hi Shilpa
    Leave the fields as they are.. NO need to make any thing as optional or mandatory
    Include the sales employee as partner fucntion in your sales order... You also need to write derivation rules in KEDR for the same
    You will need to write 2 derivation rules for each partner function
    1. In one Der Rule, make the sale order item KDPOS as constant value 0000
    2. In the other one, dont make it a constant....Leave it as it is
    DERIVATION RULE 1
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR/PERNR = COPA-WW100 / KMVTNR
    DERIVATION RULE 2
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS (Click on Magnifying lens.. Specify Constant = 0000)
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR/PERNR = COPA-WW100 / KMVTNR
    Regards
    Ajay M

  • What's a good way to handle this conversion to a QUAN field?

    Good day everyone,
    I developed an RFC that receives data from XI.  I assign this data to a BAPI, and one of the fields is a field with a data type of QUAN(length 13, decimals 3).  All works fine if XI passes me a numeric value in this field.
    Here's the problem:  In running some test cases through XI and into the RFC, we ran a test case where the quantity field had a value of "test" (e.g. no numeric value).  Incredibly, XI transforms the text value of "test" into the value of 4534 and sends it to my RFC.  So my RFC thinks everything's fine when, in fact, that number was derived from a text field and is completely wrong.
    What we need to do is change the field to something that will "kick out" in XI when it tries to call my RFC.  I thought I could change it to a type of NUMC, but that doesn't let me use decimals.  We've already sent out the file layout to vendors, so we expect them to include numeric values with decimal places if need be.
    Is my best bet changing this to a character field with a length of 17, then checking to make sure it consists only of 0-9, a space, or a decimal?  I then need to assign it to the BAPI's field with the data type of QUAN(13,3) -- am I going to have issues trying to do this from a character field?  Do I need to worry whether or not they include a decimal (it might be implied -- in other words, they might just say quantity is "20" which becomes "20.000" to the BAPI).  Is there a nifty routine I can use to do all this easily?
    Thanks everyone.  Points awarded as always for ALL helpful answers.

    Ravi, that's kinda what I was thinking, but if it's true (i.e. a proper amount) can I just move the contents directly to my QUAN field?  Will SAP automatically do the conversion for me such that it ends up in the right place?  I've yet to have to worry about such conversions -- this is the first time I've had to deal with it -- and I want to make sure that the right value gets assigned, whether that value is "20", "54.1", "1000.25", or "986.500".

  • Populate data into customise field in the line item of FB60

    Hi,
    Does anyone know which BAdI/User Exit/ Implementation that i can use for populating data into the customize field in the line item of FB60?
    Thanks in advance.

    Hi,
    I have found the module to implement. But i met with one problem which is I edit the data for customise field, and modify the table xbseg. I don't know why until the point which it is needed to cast it to the screen, the data that i derived for my customise field is being deleted. Any idea why is it so?

  • Assignment Field on the Outgoing Payment through transaction code FF.5

    Hi,
    The transaction code FF.5 to upload the bank statement and automatic postings. Currently the Assignment field of the line items get the value by way of combination of ID, Serial Number and Currency. The requirement is to change the derivation of the Assignment field to that of Value Date.
    Can anybody help me in this regard.
    Thanks&Regards,
    Sreeharsha Singuru

    Hi
    Chage the Sort Key for Bank GL Accounts is GL Master to 001 ie. Posting Date
    Assign points if useful,
    Regards,
    Raj

  • Define Derivation Strategy for Reassignment

    Dear All!
    I have created the  derivation  strategy for Reassignment with tthe option of derivation rule
    <b>Source Fields</b>
    SOURCE_FUND
    SOURCE_FUNDS_CENTER
    BCS_BUDGET_CATEGORY
    NUMBER
    <b>Target Fields</b>
    TARGET_FUND
    TARGET_FUNDS_CENTER
    PERCENTAGE
    the abover derivation assigned to FM &  maitain Rule value in the following way.
    <b> Source Filed</b>
    SOURCE_FUND : 11000
    SOURCE_FUNDS_CENTER: 89000
    BCS_BUDGET_CATEGORY: 9F
    NUMBER : 1
    <b>Target Field</b>
    TARGET_FUND : 11000
    TARGET_FUNDS_CENTER: 55000
    PERCENTAGE: 30%
    b] Source Filed</b>
    SOURCE_FUND : 11000
    SOURCE_FUNDS_CENTER: 89000
    BCS_BUDGET_CATEGORY: 9F
    NUMBER : 2
    <b>Target Field</b>
    TARGET_FUND : 11000
    TARGET_FUNDS_CENTER: 44000
    PERCENTAGE: 70 %
    As I carryforward the residual budget, system only consider the 30 & 70% , create line item with that percentage. but can not read the traget fund center. system pick the source fund center 89000 instead of 44000 & 55000
    please advise why not system pick the target fund center, it only consider the %.
    Thanks

    Solved

  • Copa derivation rule for customer group

    Hi All,
    I am currently facing an issue with Derivation rule and hope someone can help me on resolving  this.I have created a COPA derivation rule which has field as
    Source Field
    company code
    Plant
    Target field
    Distribution channel
    Condition
    customer group 3 = 18.
    so ideally with this conbination the distribtion channel gets updated
    for the sales order.
    However the issue we are facing is that the rule is working for only 1st line item and not for the others. I have also kept setting as" overwrite values only if new values found"
    e.g if we see the accounting doc of billing then
    line item 1 customer: x
    line item 2 SaLes GL: rule works fine and dist channel is updated.
    line item 3 discount GL: rule does not work.
    Have checked the derivation rule and it looks correct.
    Can you kindly suggest solution to this.

    Hi Ajay,
    Thank you so much for your reply.Please note that the GL is a cost element but the category in system is 1 and not 12.However I would like understand as to why is this happening.why does the system picks up derviation rule for a Gross sales GL and not for Discount GL(Cost element).
    The distribution channel  gets updated for sales GL when i check the prof segment of the line item, however this is not the case with doscount GL.
    I would like to understnad the implication before changing cost element category from 1 to 12 as it runs across system.
    Kindly provide some more explaination.
    thanks in advance.

Maybe you are looking for