COPA  - KE21N

Hi
I want to develop a ABAP programme to upload data through KE21N (Create Line Items). I used the u201CBAPI_COPAACTUALS_POSTCOSTDATAu201D to develop the upload programme. But with this BAPI, I was only able to develop the programme to put the value fields only (2nd tab in KE21N). But through this BAPI, I am unable to develop the programme to enter the characteristics (1st tab in KE21N).
Is there another BAPI where I can used to develop this programme? AND my other issue is, that I donu2019t get the technical field name for the value fields in the 2nd tab. Why is that & is there a way that I can get the technical fields names
Thanks

Hello,
Both Characteristics and Values fields' technical names are the same:
GT_LINES-VALUE or GT_LINES_VAL-VALUE
Could you please tell me how you referenced certain field when creating field structure for this BAPI?
I cant use simply "VALUE" cause its ambiguous. What is more, "VALUE(02)" etc. is also ambiguous as it exists in both structures (GT_LINES and GT_LINES_VAL).
I would appreciate any help.
Best regards,
Marek

Similar Messages

  • Documents are not included in COPA

    Hi COPA Experts,
    The accounting documents are not included in COPA KE21N settings. could you please assist us how to include accounting document in COPA.

    Hi,
    Normally things from SD will be linked to COPA by linking the condition types in SD to Value fields in COPA.
    Similarly we can do the assignments for direct postings from FI also through the PA transfer sturcture for dicrect postings.
    Goto KEI2,  Select the Structure FI, select the source fields and select the direct costs/revenues item and double clieck on the source fields, here give the range of the GL accounts (expenses for irect costs, income Gl accounts for revenues) for which you want the direct postings to reflect in COPA.
    Selest the vlue field and give the valur field for the same.
    Due to these settings we can get all the transactions (incomes/expenses) that we directly posted in FI to come into COPA.
    And additioanlly when we are making a posting it is mandatory that we have to give the profit segment in the transaction you make.
    Define the profit segment and assign it in the profit center, later in the posting selest the segment and this will act as a cost object that will help things to be reflecte in COPA.
    Otherwise the posting will not be reflecting in the COPA report.
    Hope this helps.
    Thanks,
    Shilpa.

  • FI , PCA, COPA Corrections

    Friends,
    Due to oversight, one of our SD condition types relating to standard production cost was not revalidated for the FY 2007 (the condition table for that condition type was not maintained for the FY 2007). Further, from 01-Jan-2007 to 12-Jan-2007, sales orders and other subsequent documents (delivery orders, goods issue, billing documents and accounting documents) were created (around 11,000 billing documents have been created). Fortunately, the postings to the customer a/c were not affected.
    We now want to correct the FI, COPA and PCA documents that were posted during the period. Please advice on how best to make the correction postings in all 3 areas viz. FI, COPA and PCA.
    Due to the sheer number of documents, reversal of the erroneous documents is ruled out. Also, we want to correct the postings by the month-end for reporting purpose.
    Please advice on how best to do the same.
    Thanks & Regards,
    Sameer S. Gupte
    Cell: 91 9323274801

    I don't fully understand your error. If all three GL, COPA and PCA are incorrect then in that case I would make a correcting entry in GL that flows to PCA and COPA. You'll need a GL account that is set up to allow direct postings to PA. The config will have to be in place to pass that account to the proper COPA value fields.
    You also can make direct postings to PCA 9KE0 - Enter  and COPA KE21N - Create Line Items . This alows you to go in and make any entries deemed appropriate. This would be used to snch them up with GL.
    pls assign points as a way to say thanks.

  • KE21N with reference - copy old copa records without applying new derivation rule

    Dear all,
    does anyone have a clue how to make this:
    We would like to copy some old COPA line items but face the problem that doing KE21N with a reference document the old derivation is overwritten in the moment the document is saved.
    Is there any possibility to copy the old document and also the old derivations?
    Thank you a lot
    Kind regards
    Birgit Seeger

    Hi Birgit
    The only way I can think of is to enter the char values as you want directly in ke21n. You may Need to temporarily change your derivation rules to not derive the char values if the same is already filled
    Just click on the magnifying lens icon beside the Target field inside your derivation rule and you change setting
    Br. Ajay M

  • Value flow to COPA.(KE21N)

    Dear All,
    When we use KE21N to manually post COPA documents how does system works. As per my knowledge system creates a segment number while posting a COPA document and for this system 1st check that any other same segment number exist in tables or not.
    If we are posting actual data then will it update in CE1XXXX or CE3xxxx. I`m considering costing based COPA.
    Kindly share your experience on the same.....
    Regards
    Nitisha

    Dear Waman ,
    Thanks for your reply.
    "Anyways I do not see how the internal architecture of COPA matters from a user viewpoint"
    Nowhere I have mentioned that I`m thinking from a user viewpoint, i was interested to know how does internal architecture of COPA works for my knowledge as I want to be assured on what I`m working or delivering it as a solution to client.
    One can never assume what`s going on in client`s mind after all client is client.
    Any ways thanks for your input.
    Regards
    Nitisha

  • KE21N in COPA

    Will KE21N in COPA will trigger a reconciliation document in Finance? Is online CO FI reconciliation activated for COPA also?

    Unfortunatey, KE21N in CO-PA is not related to FI-CO reconciliation ledger, in other words, there're no option also to use real-time integration of CO with FI. Some of individual transactions within CO-PA such as Topdown distribution, Valuation have a case.

  • Recalculation of Value field in COPA

    Hi,
    We have a value field in COPA which derives its value from the UoM conversion maintained in Material Master,
    we have now realized that incorrect conversion factors were maintianed in some material master records due to which incorrect values are being displayed in COPA reports.
    We have corrected the Material Master records, but how can we update the existing COPA values ?
    Regards
    Sachin Bhutani

    Hi ,
    You cannot revalue value fields in COPA. You can however derive the characteristics derivation using Realignment functionality. In order to overcome your problem , you may have to resort to differential postings generation through KE21N.
    Enjoy
    Venkat.

  • Changing Value field in COPA

    Hi,
      We have already posted a billing document. The material contains alternative unit of measurement. In the material master the alternative unit of measurement has been maintained wrongly. Due to this the report in copa shows a wrong picture in terms of units sold and the respective COGS for the material. Now we have changed the alternative unit of measurement.
    But how to change the value in the value field. Kindly help me in this regards
    Example: Material 1 Base unit : M2, Sale unit PC. Alt UOM wrongly maintained: 1 pc = 100 M2. Sold qty = 10 Pc, sold qty in Base unit : 1000 M2. Actual UOM : 10 PC = 100 M2, Actual old qty : 10 PC , 100 M2. 
    Regards

    Hi Vasantha,
    For this you can do manually cancel copa line item by using
    T CODE- KE4S00 ofter you post line item correctly (please maintain correct alternative unit of measurement )by using
    T CODE - KE21n .
    K.Satish
    With this method you will delete CO-PA line item and you will loose connection to the original billing document.
    Tapio

  • COPA report & G/L balance misatched

    Dear Experts,
    Will u pls explain me when i see G/L balance of Domestic Sales(G/l number 500000) it come  200050.If i check it through COPA report in same period/year,distribution channel of Domestic sale it shows  me different figure.In the COPA repot in top list item when i check FI documents one by one some documents are missing.Pls suggest me how i got correct data in the COPA report and why the  documents not seen in COPA reprt.Pls suggest.
    Thanks & Regards,
    Debashis

    Hi
    FI - COPA reconciliation is always a tedious task and time consuming.
    Download COPA line item data from KE24 and FI balance from FBL3n and compare the balances by record type.
    1. Make sure cost element category for your sales GL 500000 is either set to 11 or 12.
    2. Check the record type of COPA documents posted in KE24.
    3. If the record type is F which comes thru SD/Billing module, check and make sure the FI Balance matches with COPA for this record type. You need to get the FI balance for this record type either by user/Job name or by different doc type.
    4. Check if there is any direct FI-PA transfer structure is activated for this GL and if any user posted FI entry with manual entry of characteristics, where by some of the characteristics are not input correct/blank. This is higly prone transaction for FI - COPA reconciliation issue.
    5. Check if there is any direct COPA entry posting made thru transaction KE21N. This will result in more/less balance in COPA than in FI.
    6. Check if any copa entries are transferred thru external system, and few important characteristics not derived properly.
    7. Check KEDR derivations are set properly
    8. Check if any other cost element area are allocated to this cost element in Controlling Allocations/distributions/assesments.
    9. Last but not the least, check if the COPA report you are checking is able to identify the correct characteristics. If not amend the report based on the data poste.
    Regards,
    Sekhar

  • Changes in MM02 not reflecting in COPA lin item report

    Hi,
    In my project during data conversion material was grouped wrongly. We realised it later once we started designing COPA reports. The material is used by seven company codes. The basic material group defined in basic data is used by all company codes while Material group 1,2,3 4 and 5 are used by company specific defined in sales orgs 2 View in MM master(MM01).
    I am designing report for three companies by using material group 1,2,3,4 and 5.
    We tried changing the material group 1,2,3,4 and 5 for wrongly grouped materials in MM02. But in COPA report these changes are not reflecting. The grouping in report is still as per the data conversion grouping.
    Please suggest on how should we rectify our material grouping to reflect in COPA report.
    Regds

    Hi,
    in COPA reports characteristics are read from the COPA tables, they are not dynamically derived at the time of executing the report. In the COPA tables oyu will find the characteristic as derived at the moment of posting the line item.
    If the characeristic that you want to rectify is in the definition of your your COPA segments - which you can check through TC KEQ3 - then there is possibility to carry changed master data over to past COPA data.
    TC KEND allows you change the existing COPA segments according to current master data. However, it will not make changes to table CE1XXXX, where COPA line items are stored, but changes happen on the segment level (CE4XXXX).
    This means that you always see the changes in COPA reports that read from segments, but not in line item based reports.
    To change your output from line item based reports I see no other possibilty but to make correcting entries in CE1XXXX using KE21N or KEFC.
    If you should consider using KEND please read the documentation for "realignment". It can create problems, for example if you have a SAP BW that is delta-updated from CE11XXX. Also your summarization levels for COPA have to be rebuilt after KEND.

  • COPA posting reversal

    We are using ECC6, new GL and COPA. SAP modules SD, MM, FI, CO.
    A complex posting has been made with a Sales Order automatically generating a Purchase Order which was GRNd and invoices issued. All of the postings were subsequently cancelled or reversed due to errors and omissions and a new sequence of postings made. This happened several times before the users thought they had got it right!
    The end result has been that the Revenue, as shown in the KE30 report, is now zero, but the COGS posting still remains.
    Can anyone suggest why the COGS posting would not have been reversed along with the finance postings and how we could resolve this?
    Thanks in advance

    Thanks, Abhisek
    the sequence of postings was very complex. let me post you the email I got from the Finance user:
    History of events leading up to this error.
    u2022     Sales order 979 created.
    u2022     And from that PO 4500000941 was raised. 3 lines !
    u2022     The PO was GRNu2019d
    u2022     I then matched (Vendor) invoice BAE1286 to the GRN
    u2022     Ian raised invoice 90001690 to WUK
    u2022     In the following month I received the duty and delivery charge invoice from (freight company), I realised then that the delivery cost generated was 4x the cost of the goods. To correct the problem we had to back out/reverse all the documents and Ian would re-price the delivery charges.
    u2022     Ian raised credit note 90001938 to cancel invoice 90001690
    u2022     And I reversed out the (Vendor) invoice
    u2022     Ian created 3 new lines on PO, now 4, 5 and 6
    u2022     I re-posted the test rite invoice and the (Freight) charges to the new lines
    u2022     I asked Ian to raise the new invoice in billings due list, however when Ian tried to find it in billings due it wasnu2019t there!
    u2022     So again I reversed the (Vendor) and (Freight) invoices from lines 4, 5 and  6. This left the Balance of the order at 0.00 !
    u2022     Ian raised another sales order and PO, SO 1723 and PO being 4500001625.
    u2022     I posted the (Vendor) invoice and (Freight) charges and from that Ian raised invoice 90001952
    At this point I thought that this was job done, however I checked the KE30 and discovered something wrong.
    Make sure you run ke30 for the full year to see the results
                   Rev          COGS          
    Sales doc 979            67K          61K          
    Crd 900000077          -67K          0          
    Sales doc 1723           67K          63K               (Reason the COGS is 2k
    higher is because of the
    addition (Freight) cost)
    Total               67K          124K
    As you can see the COGS is now double to the revenue!
    Now it thought that this could be 2 things, either when I did the reversal of the (Vendor) invoice it did not reverse the COGS in KE30, or when the credit note reversed it did not reverse the COGS in KE30 ?
    On PO 4500000941 invoice cancelled the posting and tried to raise another credit but this time a stock credit in the hope that it would reverse the COGS posting.  Credit note 90002063 was raised however it did not reverse the GOGS. And it has now left us in a worst state than before, please see below.
                   Rev          COGS          
    Sales doc 979            67K          61K          
    Crd 60000077          -67K          0          
    Crd 60000079          -67K          0
    Sales doc 1723           67K          63K     
    Total                0K          124K
    What I advised Ian to do is to cancel sales doc 60000079 (credit note 90002067) so we are back in this position, I had to do this as the sale ledger for (our operating concern) did not balance we had to 1 to may credits raised. (Operating Concern) account is now o.k and we are back in this position with the KE30
    Rev          COGS          
    Sales doc 979            67K          61K          
    Crd 900000077          -67K          0          
    Sales doc 1723           67K          63K               (Reason the COGS is 2k
    higher is because of the
    addition (Freight) cost)
    Total               67K          124K
    We have raised endless amounts of reversals, credits notes, new POu2019s that it is totally confusion in the document flow so I donu2019t want to go down the route of doing anymore however we need to fix the COGS ?
    A reason why the COGS never reversed is maybe because the original PO was cancelled (trash cans next to each line) before we raised the credits ?
    Is there away we can manually credit 67K in the COGS for Test rite ?
    I think you can see why I'm calling for help! Will KE21N allow them to make a posting that will create the credit they need?
    Thanks for your time.

  • FI-COPA issue

    Hi,
    "FI-COPA are not aligned for the 01 2011 difference". How can i investigate the reason for this difference. How should i proceed on this? I have got all the document numbers which have not got posted in COPA.
    Please advice.
    Many Thanks in advance,
    Neha Agarwal.

    Hi Neha
    Its a very difficult question to answer.... Answer to this mainly depends on how your business wants to see COPA
    If you have forogt to create some GL accounts as cost elements OR Catg 11/12 cost elemnents did not post in COPA - You can pass a correction entry in COPA from KE21N
    If you dont want to create these GLs as cost elements, then you need to live with this difference....
    br, Ajay M

  • Can we manually give value to value fields in COPA?

    Hi Friends,
    Due to restrictions in COPA, we are not able to pass some values in to COPA value fields automatically, but this data is available in tables related to FI, can we pass this data in to COPA manually.
    If possible can you tell me the procedure for doing that.
    Valuble inputs will be rewarded and highly appreciated.
    Thanks in advance.
    Regards
    Ravi

    hi
    yes, you can go to tCode KE21n and enter the manul postings..
    hope this will helps u out...
    assing the points if help full
    Ranjit

  • COGS not capture in COPA

    Hi,
    I had a scenerio that there is pricing error in SD when the user create the billing documment and the cost of good sold was not capture in the billing document after the user created the condition type. However the invoice cannot be cancelled and the COGS was not capture in COPA. is it possible to create line item in COPA to reflect the missing COGS for the same line items? Pls advice.
    Best Rgds,
    Li Ling

    Hi Li
    Normally in make to stock (descrete) scenario. VPRS condition type is assigned to COPA value field of COGS.
    Check COPA settings if VPRS is assigned to any value field in transaction code KE41.
    Meanwhile for those where already sales documents are already transffered to COPA without COGS. You can create document in COPA with TCode KE21n or try to rerun the sales documents using KE2B after assigning the VPRS condition type.
    Regards,
    Suraj

  • Real time configurations for derivation types in COPA

    We have taken the sample operating concern by going thru the path
    < IMG Activity: Controlling - operating concern - sap operating concern template >, the Quickstart S-GO operating concern template>
    and configured the following derivation types by looking at the examples:
    - Derivation rule
    - Table lookups
    - Moves
    - Clear
    -Customer Enhancement
    Also, it would be great if some one could provide me with real time configuration of the derivation types in COPA
    Moderator: Please, read the rules of the forum before posting

    Hi Praveen
    Rec Type for Variance transactions is already fixed i.e. C and cant be changed....
    You can use Z rec types in KE21N for manual postings/adjustments.... Or during external data transfer
    If you can be specific on your requirement, we can discuss further using Exit COPA0002 or 0005... But for standard transactions, you cant change the rec types
    Br, Ajay M

Maybe you are looking for

  • My external hard drive will not show up in iMovie 10.0.4.  How do I copy my movies into it?

    My Mac OSX 10.9.4 has both iMovie 10 and iMovie 9. I've started uploading all of my videos from my camera to iMovie 10 and have not worried about my external hard drive. Now it's been a couple months of putting those videos onto iMovie 10 and I just

  • Unable to execute Custom SQL operation using DB Adapter

    The SQL function i used is insert into QueueTable1 (select * from TQueueTable2) I executed this successfully in PL/SQL developer But while using DBadapter in BPEL. Its failing. No instance is created. I think the query is executed but haven't receive

  • Java.io.IOException: No content

    While checking the attachment of mail i am getting the following exception, Multipart multipart = (Multipart)message.getContent(); What may be the reason , if content type is null how to solve this one. java.io.IOException: No content at javax.mail.i

  • Flattened to Parent Child Hierarchy

    Hi, My client has a little different requirement from normal. We want to convert the flattened version of hierarchy to parent child format. Does anyone have any sql script or idea how we can achieve this quickly? Thanks in advance.

  • Problems with Blog Comments after running Google Analytics Automator

    I upgraded to IWeb 09 today and was hoping that there would be not too many compatibility issues. Well, here is one. I noticed that the comment function on my blog page kept disappearing after I published the website to MobileMe. After some hours of