COPA0005

Hi,
We have a requirement to modify the Division for CO-PA line item.
In the current Intercompany sales process, when I create a sales order and save it I am able to see the corresponidng CO-PA line items in KE24 using sale order number as a Reference document number.
I used the enhancement component COPA0005(EXIT_SAPLKEII_001) and added the code to determine the correct Division for Co-PA line item from Ztable.
I want to test this user exit for Sales and Distribution data coming to CO-PA. So I created sales order and when I save the sales order the program is not stopping at the stop point I put in user exit code.
I have created the project in CMOD and assign the enhancement COPA0005 to it and activated it.
Can anyone tell me if I am using the correct enhancement component? If yes,how to stop the program at the user exit code in debugging mode?
Thanks
Bhasker

Hi Paolo,
Thanks for your reply,
My requirement is not only for Sales Orders, but also for Puchase Orders
I need to derive the Division from PO and modify it for CO-PA line item.
So I need a user exit which should be triggered whenever a Intercompany Sales Order or Puchase Orders is created.
Thanks
Bhasker

Similar Messages

  • CO-PA Cost Component do not match with Standard Cost Component Values

    Dear Members,
    The CO-PA Cost Components (as mapped through KE4R), do not match with Standard Cost Component values for the Group Currency. In local currency the values match.
    System is correctly picking up VPRS value, both in local currency and Group Currency, which is equal to the total of Standard Cost Components however, it is the Value Fields linked to the Standard Cost Components in Group Currency that do not match.
    In KE40, the Indicator is 4:Released Standard Cost Estimate matching Goods issue Date.
    I have verified KEPH/CKMLPKEPH tables. The values are same as that of VPRS.
    Any help/clues?
    Regards
    Satya

    Hi,
    In case of billing documents the group valuation approach is managed in the data structures of the legal valuation in additional value fields. To control costs and revenues in the different views separately, you must create additional value fields and assign them to the data structures.
    The field contents must be filled via the CO-PA user exit, they cannot be entered by assigning conditions to value fields. The profit center valuation is updated in a separate ledger. No separate value fields are necessary.
    The exit to be used is function module 'EXIT_SAPLKEII_002' ( enhancement COPA0005 ). Within the exit you have the complete SD data avaialble in the tables 'T_ACCIT' and 'T_ACCCR'. The conditions can be found in T_ACCIT and the corresponding values ( linked via 'POSNR' ) in table T_ACCCR. The PA line item and the corresponding SD item in table ACCIT
    can be mapped via the line item field 'RPOSN' and the field 'POSNR_SD' in table ACCIT.
    regards
    Waman

  • Incoming orders in COPA not working if Sales Order blocked for Credit Check

    Hi all,
    We need to build a report showing all incoming sales order by entry date and/or change date (change of values or quantities later on). COPA allows to do this, but the problem is that COPA line item table is only updated if the sales order is released from credit check (VKM3). I am looking for a solution to be able to record sales orders in COPA even if they are still blocked for credit check. By doing that we will be able to report all sales orders entered from COPA and provide basis for commissions calculation to the business.
    I have investigated possible COPA enhancements like COPA0005 but it doesn't seem to be used at the time of sales order save.
    Thanks.

    Hello ,
    Thanks for the reply
    As you said , the credit check in the service order is information message "Credit check (maximum percentage for ope
    exceeded)" .
    If you enter and come out this message then one more message will come , i.e., "The business transaction can not be carried out" detail message -  System status CNOK is active (ORD XXXXXXX).
    with the above message , system will not allow to do the Service order release.
    In this particular case , we have done the VKM1 for the sales order to unblock the order from credit check . But again system is checking the credit check at service order (created w.r.t sales order) . we are not able to control this .
    we also suggested the solution to the customer , saying removal of credit check for service orders . But customer requires credit check to happen at both the documents.

  • Batch wise rate and revenue for Profitability reports

    Process are
    We are doing GR of material based on Batch wise and we have moving average price for all trading material.
    let say i did 2 GR
    Material   A
    Batch      x
    MAP       10rs
    QTY       10 kg
    Material  A
    Batch    y
    MAP     15 rs
    QTY     20 kg
    now i have stock of 30 kg of material with batch X and Y
    Now i got sales order of 15 qty and I issued 10 qty from batch X and 5 qty from batch Y 
    and did billing also.
    Now my client want profitability batch wise and rate of consumption also batch wise.
    I can create one characteristic WWBAT for batch and also planned  Table lookup for Derivation from SD table LIPS.
    But how to get cost Batch wise - 10 rs for batch -X and 15 rs for batch-Y. becoz price will come from VPRS which is my latest MAP
    regards
    RR

    Hi
    For Batch - You need to create a WW Char i.e. User Defined Char
    Valuation Type - Should be available as a Standard Char in COPA.. You can pull it in your Op Concern from KEA5 using "Reference" option
    To get the Batch No - You need to create a derivation step in KEDR using "Enhancement" method... SOURCE field can be ARTNR and Target Field will be WW Char.... Then you can write exit COPA0001 or COPA0005
    Valuation Type can also be fetched using the same exit...
    br, Ajay M

  • Details from Billing doc line item in COPA

    Hi,
    We are posting billing docs with multiple ship-to parties on the different line items. In COPA I need to get hold of the ship-to party. There are no sales orders created in the process.
    In neither the derivations (KEDR) nor in the user-exit am I able to get hold of the billing doc line item nr, as that is what I need to determine the ship-to party from the VBRP table.
    Any ideas on how I can pick up the ship-to party from the billing doc?
    Thanks in advance
    Piet Strydom

    HI,
    Thanks for your response.
    Yes, we have ship-to party at the line-item level. Technically it is stored on VBPA, but the access into VBPA is the billing doc and line item number.
    I have not been able to find good (SAP) documentation for exit COPA0005, but what I did find warned against changing characteristics? That should be done in COPA0001. However, the RBELN and RPOSN fields are not populated yet.

  • Condition VPRS value in operating concern currency.

    Hi,
    We've encountered the following problem. I was wondering if anyone of you had a similar one and how did you go about it:
    1. We've defined second local currency for our company codes = currency type 30 = USD
    2. CO-PA stores both company code currency = currency type 10 and op. concern currency B0=USD
    3. When we post goods issue to a customer, COGS is posted in FI in both currencies 10 and 30.
    4. Then when we run billing COGS condition VPRS is transfered to CO-PA in company code currency and operating concern currency. The value in company code currency is equal to the value during goods issue posting, however the value in operating concern currency (B0=USD) is calculated using the current exchange rate type 'M'. As a result VPRS value in CO-PA in B0=USD is not the same as the value of COGS in FI for currency type 30=USD (as the exchange rate is different during billing).
    It makes it impossible to reconcile COGS between FI and CO-PA in USD.
    For direct posting to CO-PA from MM and FI, SAP provides notes 604936 and 1066394 which solve the issue if B0=30. However those notes do not provide solution for billing documents and VPRS.
    We were advised that this problem can be solved using CO-PA enhacement COPA0005.
    Have you ever done it? Any tips on codeing this user exit? Any sample code?
    Regards,
    SZ

    Hi,
    Currency options in operating concern enables you to view the data  in copa. Activation or deactivation of the additional currencies here wont impact base data from any documents.
    If u r business doesnt have the profit center valuation or group valuation u can deactivate other currencies.
    Regards
    Sudhakar Reddy

  • 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

  • CO_PA document creation

    Gurus,
    How is it possible avoid the creation of a co-pa document for a particular invoice document type in a SD flow?
    Many thanks
    Regards
    Edited by: vittoria Acquafredda on Dec 16, 2009 4:47 PM

    Hi,
    You can use an enhancement 'COPA0005' to stop posting to COPA for some specific documents.
    check this link details...
    Re: Exit for stop document in COPA
    Hope this helps.

  • Derivation rule in COPA from BSEG

    Hi experts,
    My issue is to derivate a field (SEGMENT) from Table BSEG in COPA.
    Unfortunatly my customer donu2019t use the standard customizing from the SEGMENT derivation rule, we donu2019t populate the field SEGMENT in the profit center master data.
    Firstly, with a user exit (U903 - ZRGGBS000) which is trigger with substitution rule we populated the field SEGMENT in BSEG.
    Now I created a new characteristic WWSEG and I canu2019t derive it in KEDR with table look up, can I have your advices please?
    With an abaper, we tried to find a solution with the COPA0005 exit but he donu2019t find the logic to map the source  field BSEG-SEGMENT and the target field COPA-WWSEG
    Thanks
    Kinds regards
    Cédric

    Hi Waman,
    Thanks a lot for all and thanks to Dave.
    But it doesn't work.
    The segment in bseg-segment is filled when posting a FI document.
    For reminder, the field BSEG-SEGMENT is firstly filled with a user exit.
    We implemented the note 1135567, we created the program ZRFI_OSS_KEAK_SEGMENT adapting the code to our characteristic WWSEG, when we tested, in debug we drop in the Abap code but the structure COBL-SEGMENT is not filled, therefore the WWSEG is not filled.
    Have you other idea to solve my issue ?
    Best regards
    Cédric

  • Customer number to be populated as co pa characteristics in rev line item FB50

    Hi
    FB50
    Debit Customer
    Credit Revenue with profitability segment as cost object
    In profitability segment customer number has one of the characteristics.
    In this credit line above we need to populate the customer field (which is part of co pa characteristics)
    from debit line item as part of co pa characteristics.
    Is it possible. An earliest response would really be appreciated.
    Aparrajith

    Hi Aparajith
    You can write your Code in the exit COPA0005 on the similar lines as provided in the Note
    I have asked people to implement the note in similar occassions in SCN Forum and till date no one has said that this did not work..
    I would suggest ask your ABAP guys to debug and check the reason for not working.. Else, writ your own code
    Br. Ajay M

  • Customer in PSG from FI line item

    Hi,
    we need to get customer in PSG while creating an invoice in F-02, FB01,FB70...
    For example, the 1st line item: posting key 01, customer XXXXXX, the 2nd line item: posting key 50, revenue account XXXXXX.
    In the second line item we have PSG where have to populate the customer number from the previous line item.
    I think we can use enhancement COPA0005, exit EXIT_SAPLKEII_001. But I don't know which tables or structures should we use.
    Can we use ACCIT and ACCIT_PA, because I think that BSEG will not help?
    Thanks in advance,
    Jasmina.
    EDIT: Problem solved via ACCIT
    Edited by: Jasmina Miteva on Feb 3, 2010 2:24 PM

    DO the config for AP -AR
    IMG>Fi>AP-AR>Customer/vendor acounts>line items> Define additional fields for line item display
    Table-BKPF, Field-GRPID
    And for GL do the same
    Thanks
    Ron

  • Prevent billing document from going to COPA

    Hello,
    I have a requirement to prevent a certain billing document from going to COPA. I created a new pricing condition, assigned an account key and linked this account key to a GL account. This enabled the condition value to be transferred to the GL account. In order to prevent the condition value from going to COPA, I did not assign this condition type to a COPA value field (transaction KE4I).
    However, I notice that the bllling document is going to COPA but no condition values are getting transferred. Is it possible to prevent such billing documents from going to COPA entirely (as they would unecessarily create a profitability segment)?
    P.S: This billing document was created with reference to a delivery of type LO (delivery without order reference) as we do not have the need for a sales order in this scenario.
    Thanks,
    Rugmani

    Hi
    First of all, I would like to ask you why you would not like to take this in COPA. When a revenue value is posted in GL account and you dont take a posting in COPA, it would imbalance your FI and COPA profitability...
    However, if you have rationally analysed your requirement and you would like to do it anyway, then here is the solution
    Use Exit COPA0005 and apply the following code..
    (This code is sample, based on blocking COPA doc where distribution channel = 45 and Ref Org Unit = CRMB).. You need to write your code in a way that it does not stop creating the COPA doc in other cases where it is required....
    Do thorough testing once you have this code..
    *&  Include           ZXKKEU07
    data : wa_ACCIT type ACCIT.
    if I_ERKRS = 'XXXX'. (Your Op Concern Code)
      read table T_ACCIT into wa_accit with key VTWEG = '45' AWORG = 'CRMB'.
      if sy-subrc = 0.
        E_INIT = 'X'.
      endif.
    endif.
    Regards
    Ajay M

  • COPA and BSEG-SGTXT

    We have postings that are happening in FI, and the users are populating the text fields on these postings.  Is there a way to pass this text field over to COPA to bring into reporting and display of documents in that module?

    Your question is more appropriate for the ERP Financials - Controlling forum, but I don't have authority to move it.  So I'll go ahead and try to give you an answer here.  But keep that in mind when posting about CO-PA in the future since a larger audience will be found at the other [forum|SAP ERP Financials - Controlling; This requirement is an unusual request and the only way I think it could be possible is as follows.
    1 Define a new characteristic (KEA5) with the option "No check" data validation so that no master data would be expected in CO-PA (KES1).
    2 Add this new characteristic to your operating concern (KEA0) and activate and generate the operating concern.
    3 Utilize COPA enhancement COPA0005 (SMOD) by defining an enhancement project in (CMOD) and calling the function module EXIT_SAPLKEII_002 and programming your logic to read SGTXT from include INCLUDE ZXKKEU08.  (Notice that use of enhancement COPA0005 is not related to CO-PA derivation (KEDR), rather it is a way to directly modify the CO-PA data passed by the FI/CO document.
    Here is some relevant documenation on COPA005.
    This enhancement lets you modify how actual data is updated in
    Profitability Analysis via the FI/CO interface.
    Caution!
    Using the components in this enhancement means that you are modifying
    the standard update of actual data from Sales and Distribution (SD),
    Financial Accounting (FI), or Materials Management (MM) to Profitability
    Analysis. To avoid data from being updated inconsistently, you need to
    have a solid understanding of the "FI/CO document" interface!
    Make changes with extreme caution. If unsure, contact SAP!
    The components comprise the following function modules:
    o   EXIT_SAPLKEII_001
    o   EXIT_SAPLKEII_002
    You are responsible for ensuring the consistency of any changes made!
    Test each change made extensively before use in the productive system.
    For further clarification, contact SAP.
    You should strongly consider whether this solution will negatively affect your system performance by growing your segment-level characteristics (table CE4XXXX where XXXX is your operating concern).  You may want to in fact make this new characteristic field a non-segment level characteristic (KEQ3).  This will disable you from viewing this field in summary level CO-PA reports (KE31), but it would available from line item based reports (KE91) or from a custom BW infoprovider which gets line item data.  You could of course use a combination of KE31 reports and KE91 reports by jumping from summary to detail reports and passing the selected characteristics.  This is accomplished via the split report (KE3L) option.
    Best regards,
    [Jeffrey Holdeman|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/jeffrey+holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group
    Tried to fix the formatting, but unsuccessful.  Edited by: Jeffrey Holdeman on Jul 28, 2009 10:04 PM
    Edited by: Jeffrey Holdeman on Jul 28, 2009 10:10 PM

  • COPA document with out customer

    Dear All,
    Our AR Team clears small differnces through reason codes which posts the amount automatically to the account 310011 (Sales Credits & Allowances-revenue cost element) but while posting this they are not entering the customer number manually in profitable segment which resulting in the creation of COPA document with amount but with out customer number.
    Is there any way we can automatically determine the customer number in the profitable segment while clearing the customer open items through reason code ?
    I would greatly appreciate respnses.
    Thanks,
    Ram

    Hi Ram
    Refer note 137552.. It populates Customer no in te discount line item... See if this helps you
    This note uses exit COPA0005.. You can write your own code in COPA0005 incase this note does not help
    br, Ajay M

  • Error Message K/ 839 (CO-PA condiction type inactive) in F110

    Dears,
    As we generate the payment proposal in F110 the system returns error message "K/ 839 - CO-PA valaution, condiction type Z001 inactive".
    Z001 is a condiction type that we assigned in CO-PA pricing, in transaction 8KEV.
    Is there any where I need to activave the condiction type, as says the error messagem? Where to do it? Or the error might be related to an other phenomenon?
    Thanks in advance.
    Roger Aquino

    Hi
    Have you assigned this costing sheet to Record Type B in KE4U??
    If yes, check the same
    Also, check if any exits COPA0002 or COPA0005 is in Place which is triggering the same
    br, Ajay M

Maybe you are looking for

  • Error message when updating itunes

    well im trying to update when i get this error message http://i76.photobucket.com/albums/j35/liljbird/itunes.jpg?t=1186532623 can you please help me thanks in advance

  • Clear the entry for killed/sniped session in v$session

    Dear all, In our production database(11.2.0.1.0) running on windows 2008 server many client session showing inactive from last 4-5 hour and I want to kill those session because all sessions are dedicated so for this I created a resource plan set its

  • Ios slb configuration

    Hi guys, need help with configuring cisco slb for 2 microsoft exchange servers. Have created server farm for the 2 servers, configuration works. Problem is user logs onto the domain, then when opening outlook, user is required to log in again. Now if

  • OK to leave screen on for hours?

    Thinking of using my iPhone 4 as an alarm clock, with a nifty little stand and all.  Is there any harm in turning the auto-lock off and having the screen be "on" for 8 or more hours at a time?  The display probably wouldn't change much if I just had

  • 10.6.8 missing plug in for embedded pdf

    Ever since I upgraded to 10.6.8 I can't see embedded pdf files. Instead I see a message "missing plug-in". Same thing happens in Safari and Firefox. Does anyone have a solution? Thanks in advance.