Bapi to delete cost element in KAH2

Hi all,
  anyone knows which is the bapi/function module that deletes any cost element at any group? Like it is done in transaction KAH2?
Thanks in advance,
Carlos.

Thank you so much Ganga!
The first one is working fine althought the cost element is not removed from table SETLEAF and it is still appearing in KAH3, but now with the message ">>> No valid master record", but it's the same as standard does.
Thanks again!
Carlos.

Similar Messages

  • To delete Cost Element that already has posting.

    Hi,
    I need to delete Cost element that already has posting. I used KO04 error msg. KS133 Deletion is not possible (depend records exist in table COEP). Cummulative balance already zerorise.
    Thank you.
    Moderator: Please, search SDN

    Hi, it's better not to use in productive.
    See here IMG-Controlling-General Controlling-Production Start-Up Preparation-Delete Test Data-Delete Transaction Data  and then Delete Cost Elements

  • BAPI for  ""Change Cost Element / Activity Input Planning ""

    Hi
    Is there any BAPI for  ""Change Cost Element / Activity Input Planning "" ( TC KP06) as there is BDC for that but is goes through lot of steps . ( TC OKKS, KP04, KP06 )
    So if any one know the BAPI for the same please let me know,  and if possible send me your code also it will be really help full.
    Regards

    o   OBJECT_INDEX - Index uniquely identifying the row and thus the           
        object. The index must be greater than zero and may only appear once     
        in the table. If the index does not exist in INDEXSTRUCTURE, the row     
        is ignored.                                                                               
    o   COSTCENTER    - Cost center that includes the activity.                                                                               
    o   ACTTYPE       - Activity type that includes the activity. You must       
        fill this together with COSTCENTER. You only need it for an activity     
        input that is activity-dependent.                                                                               
    o   CO_BUSPROC - Business process that includes the activity.                                                                               
    o   ORDERID       - Order that includes the activity.                                                                               
    o   WBS_ELEMENT  - WBS element that includes the activity                                                                               
    You may fill one object only,for example COSTCENTER, CO_BUSPROC,             
    ORDERID, or WBS_ELEMENT.                                                     

  • How to delete cost element name from group after deleting the cost element

    Hi,
    Please let me know how to delete the cost element number  from the Cost element group hierarchy.I have deleted cost element but still showing only the CE number---no valid master record.If I d not want this to be visible within hierarchy let me know what should I do.
    Thanks

    Hi
    Go to change cost element group select the cost element click on select tab (3rd Tab from Left) it will take u to new screen in that screen select remove tab (1st tab from left)
    Regards
    Sandesh

  • Delete Cost element group

    Hi Gurus,
    I would like delete a cost element group by KAH2. When I try to delete it, the program tells me that is being used in a report.
    I use the feature "Extras -> Where-Used list for group" to find the report in which I am using the cost element group.
    I go to modify the report painter by GRR2 to see in what line is using this cost element group, but I can`t find any line of the report, or in General options of this report, where is using this cost element group.
    It seems that the report is not using this cost element group, however I can not erase, because it always brings me to this report.
    Someone can help me?
    Thank you very much.

    Hi
    You  can remove the cost elements from Cost Element Group just select the cost element Group(Tcode:KAH2) then select the cost element that time the cost element becomes in red colour then right click on it & click on remove (F5).
    Then you can reassign the cost element if required
    Please check & confirm the same
    Hope this will solve your problem
    Regards
    Praveen PC

  • Delete Cost Element after Plan data posted

    A user created Cost Elements in error and posted fiscal 2010 Plan data, however the business users wish to track these particular accounts by profit center, not by cost center.  We'd like to delete the cost elements so users will not be prompted for cost center when posting to these accounts.
    But even after reversing the plan data, we are not permitted to delete these cost elements with KA04, - hard error cites records existing in Table COSP.
    Thanks in advance for your suggestions.

    Yes, you can't shorten the validity to exclude the posting data from the system, even though you made the balance zero by posting off-setting entries to that particular cost element.
    Yes, shortening the validity works the same way as deletion.
    Hope this helps.
    Edited by: Pradeep kumar Athmakur on Feb 5, 2010 11:16 AM

  • Delete cost element o reconcile FI-CO

    Hi guru,
    I have the following problem.
    I have posted a document in november with a G/L account that I haven't created cost element.
    I have created the cost element in december and, succesively, posting another document.
    Now, I can't delete the cost element.
    Is there a way to reconcile CO with the FI posting that I made in november?
    Thanks in advance
    regards

    Hi Sridhar,
    I think OKBA is to transfer the document to SPL (Special Purpose Ledgers) and I don't think it is possible to transfer the data so as to create the cost center line items.
    Please let me know your inputs.
    Good Luck!!!!!
    Thanks and Regards,
    Bhuvaneswari.S

  • Delete cost element

    Hello Everybody,
    I try to delete a cost element with T KA04 in batch method, but it is more than a day since I executed and it is still going on.
    Do you know if this is right?
    On the other hand, I try to do this because a user created a GL account, then they made a posting in this account (without a cost center), and finally this GL account was created as a cost element. After this process, they realized the posting was wrong because a cost center has to be used.
    Do any of you know how to deal with this problem?, how to delete the cost element or reverse the document they posted?
    Thanks in advance.

    Hi Israel,
    Once a value is posted to a G/L account or a Cost Element, you cannot delete the same. You can only block the same so that no future postings happen to these.
    You can reverse the document posted using the T Code FB08.
    Let me know if this solves your issue.
    Regards
    Sridhar

  • Delete Cost Element which has a posting

    Hi,
    How do I delete a cost element which already has a posting in it?
    Thanks,
    Teo

    HI Eli Klovski,
    Your solution is:
    The cost element should not be deleted after actual/planning data is put on it. You can prevent further posting on it in various ways, but you won't be able to delete it.
    Can you tell me how to prevent further posting to cost element but it should be posted in FI
    Suggest me please.
    Raju

  • Delete cost element in KP06 planning

    Dear all,
    I am facing the issue in cost run:
    Our scenario is like below we done cost element planning for cost center activity type cost element combination(kp06) due to mistake user defined the cost element which is not relevant for activity price calculation after that i run the plan price calculation(KSPI) here i found the warning  message  "Cost element is not assigned to cost component structure, if i will ignore this message my cost component view and itemization view won't match. So i deleted the cost element value from KP06 , but when i execute the kspi same message is appeating.
    1) Please advise me how to delete the cost element from kp06 resulting it wont appear in kspi.
    Regards,
    Ravi.

    Hello Ravi,
    I repeatedly used the following programms Ajay might refer to.
    First guess: xx29 might help.
    "Best practice?": I would not call it best practice. At least it is SAP-reports and not
    customer-specific reports.
    I hope it helps.
    With kind regards
    Thomas
    RKPLNC18
    RKPLNC19
    RKPLNC25
    RKPLNC27
    RKPLNC23
    RKPLNC29
    RKPLNC39

  • Cost Elements in KAH2 Greyed out

    Hi Experts,
    I am quite new to SAP FICO.
    I am trying to have cost elements under a cost element group (STORISS) so that they are not greyed out. I suppose this is because of the levels or hierarchies. Can anyone suggest to me how I can put the cost elements in the proper level, i.e. they should not be greyed out and they should have a line showing that they are under the STORISS cost element group.
    I have tried to add the cost elements again, but it says the entry already exists (as it should). Is there a way of deleting the cost elements and reinserting them?
    Please assist. Thank you.
    Darlington
    Edited by: Darlington Chiyamha on Aug 17, 2009 6:09 PM

    Hi,
    The Cost Element would not be selected in case you have added a range of Cost Elements.
    It appears that you have included from and to both as the same Cost Element and then the single cost element appears down below. In this case please put the cursor on the From and To range 2303200 - 2303200 and then try F9(select) & F5(delete).
    This will delete the entire range. If the From and To range is having more than one cost element then all the elements will get deleted and if you want to keep some of them then you will have to split the range and then include. E.g. you include 2303200 to 2309999 as range and now you want to delete 2305500 then select the range 2303200 to 2309999 and delete the range. Then put two ranges 2303200 to 2305499 and 2305501 to 2309999.
    Hope this helps.
    Thanks,

  • Delete cost element o reconcile FI-CO (2)

    Hi guru,
    we have the following problem:
    We posted a document (posting date "26.11.2007") with two account (X, Y) just created like a cost element in November 2007(validity date "01.01.2000 - 31.12.999) and another one account (Z) not created like cost element in November 2007.
    In December 2007 the account (Z) has created like cost element and we posted in same period others FI documents with account (Z).
    Now we want to transfer the document posted with posting date 26.11.2007 and with account (Z) in CO module and we executed the following actions:
    OKBA transaction but is not possible
    KA04 transaction but is not possible because there are document posted on the (Z) account in December
    Is there another way to resolve this issue?
    Thanks in advance
    Regards

    Hi Sridhar,
    I think OKBA is to transfer the document to SPL (Special Purpose Ledgers) and I don't think it is possible to transfer the data so as to create the cost center line items.
    Please let me know your inputs.
    Good Luck!!!!!
    Thanks and Regards,
    Bhuvaneswari.S

  • Cost element deletion-COEP entries deletion originated from Spl purpse ledg

    Hi Folks,
    We have created RA GL account by mistake as cost element and some entries have already gone into table COEP table. To delete cost element the prerequisite is that cost element shouldn't contain any entries. We have deleted COEP entries by using program "RKACOR20 : to delete CO documents for the GL doc and its reversal document" generated from FI, but unable to delete one entry which has got originated from Special purpose ledger. Can any one suggest way to delete this entry from COEP table.
    Thanks in advance.
    Thanks
    Rajesh Angadala

    Hi
    Check the below program, may be it works :
    Function Module: K_OBJECT_DATA_DELETE
    Program :
    RGUREP03                       FI-SL: Delete Line Items and Correct Totals Reco
    MGCU3TOP                       FI-SL: Delete Transaction Data
    SAPMGCU3                       FI-SL: Delete Transaction Data
    SKS

  • How can I delete a cost element group

    Hy,
    I have a new system and the cost elements groups came with the questionary. Now I want to delete them, but I have an error like : "You want to delete object (Group element cost BON_1000). This is not possible because the object is being used in another object (group, report ... )." It is possible somehow to delete cost element group?
    I don't have any other dates in the system. Thank you!

    Hi Biro Dorel 
    The cost element group can be used by either back end configuration like cost component structure or front end transactions like allocation cycles.
    Please make sure none of any front end or back end functions are using the cost element group.
    If you do sure your system is new and no transactions use it. Please check whether the group is used by another cost element group. Or if you do not know where it is used, try to use the "where used list" to find the object using the group by click the buttom on the tool bar in the cost element group maintenance window (T_KAH3).

  • Cost Element Deletion Job test run getting run time error

    How can I make test run of cost element deletion job in background?

    Hi Riyas,
    Deleting Cost Elements in the Background
    If you want to delete many cost elements, the checks for dependent data take some time. You should therefore carry out the deletion in the background at times of minimal system usage.
    To do so, choose Background processing.
    Choose Execute and answer the confirmation prompt with Yes.
    ( T Code: KA04 - Individual cost element deletion )
    ( KA24 - Collective Deletion)
    Enter a job name in the dialog box.
    Enter a date and time for the planned start or select Immediate start.
    You can also define from which date and from which time no more starts should occur.
    Choose Confirm to leave the dialog box. In the next dialog box, choose Save.
    The R/3 System deletes the cost elements at the date specified.
    To check the current status of the job, choose System
    Status of Background Job T Code: SM37 and Execute.
    Regards,
    Pavan Kumar Arvapally

Maybe you are looking for

  • Effect of RLS policy (VPD) on execution plan of a query

    Hi I have been working on tuning of few queries. A RLS policy is defined on most of the tables which appends an extra where condition (something like AREA_CODE=1). I am not able to understand the effect of this extra where clause on the execution pla

  • Opening Lightroom images in photoshop cs5 ACR

    Is there any way to edit Lightroom 3.0 images in Photoshop Cs5 ACR? If I choose Edit in Photoshop the image goes directly to photoshop and bypasses ACR. I have tried creating an ACR option in Preferences but cant find the ACR file. Can anyone help?

  • Illustrator CS5.1 crashes on opening or saving a file-

    I am on a Macbook Pro using Yosemite and Illustrator CS5.1. Everything was working great then out of the blue I couldn't save a file (or open one) onto my hard drive from Illustrator (PhotoShop works great). I can still save on to and open from a fla

  • Problem with execution plan

    I'm having a problem where a sql suddenly takes several minutes to execute. This is a sequel that runs every day in production and executes fine, but suddenly it takes several minutes to finish. Websphere is set to time out after 2 minutes, it then e

  • Integration Process-Unexpected error

    Hi, When I am creating Integration process I am gettin Unexpected error(I am getting this error when I am clicking on create button). Object Integration Process: IP_MULBPM | urn:rweint currently being edited by user:XXX Can any body suggest.