Skip to Content
author's profile photo Former Member
Former Member

LSMW using IDoc in order to change cost center

Hello, I am using the COSMAS IDOC (Basic Type COSMAS01) in order to change cost center master data. I created LSMW and I am filling only two fields: KOSTL and KHINR. I put KOKRS and MSGFN (004) as constants. After step "14 Start Idoc Processing" I can no longer find the cost center in the system. It seems as though the item was deleted. I am wondering how can I change data without deleting it? Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 14, 2015 at 10:45 AM


    Obviously, deletion of cost centre, if it happened, is not done just due to the fact that you used COSMAS Idoc. Actually, you cannot simply delete operational cost centre. Check if it has just disappeared from the hierarchy via OKEON.

    Why would you use Idoc method in your LSMW? It's much more transparent with BAPI (BUS0012/CHANGEMULTIPLE) or even through transaction recording for such a simple change.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.