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

Document posted to 2100 Profit Center in Co Code 1000

Dear Sap Gurus.,

1) Here I checked the wrongly posted document number 5100006202 for company code 1000 to profit center 2100.

2) I found that mistake why company code 1000 allowed to post profit center 2100,because actually that profit 2100 belongs to company code 2000,but user made the mistake whilst creation of material master (MM01),user wrongly assigned profit center 2100 in MM01(material master) into costing tab instead of assgined for profit center 1100 or 1200.

3) Actually plant 1100 and 1200 belongs to company code 1000, plant 2100 and 2200 belongs to company code 2000,profit center 1100 and 1200 belongs to company code 1000, profit center 2100 and 2200 belongs to company code 2000.

4) As per wrongly posted document, that document contained PO Number 7200004444, that PO contained material ACETICACID, I checked the same material in Material master (MM03) user assgined the profit center as wrongly.

5) When i tried to change profit center in material master (MM02) system has not allowed to change profit center, why because in proift center master profit center are inactive status, I also tried to change profit center inactive status to active status in (KE52), But system has not allowed to change active status, because the system showing error messasge like this activity was cancelled as material ACETICACID is assgined to profit center directly.so process terminated.

My Client Asking below one Requirements';

Our basic requirement is, if the PO is in a particular profit center, then the documents in all the line items (MIGO and MIRO) should be posted to that particular profit center. If there is a mistake in material master, then the system should not allow to create PO itself.

Please any one help me to solve the issue , it's very urgent because i am facing this problem in production server.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Sep 25, 2014 at 05:00 AM

    Hi,

    Are you using same controlling area for both the company codes? If yes, at the of profit centre creation you have to select the check box for only one company code.

    Suppose,you are creating a profit centre 2100 for co.code 2000. Then in profit centre creation under company codes tab, you have to select the check box against the co.code 2000 only and uncheck it for other co.codes. In your case I think you have selected the profit centres for both company codes. Due to this system is not throwing error message, if you assign wrong profit centre.

    Please change the profit centres assignments for the company codes in KE52 accordingly.

    Regards,

    Mukthar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 25, 2014 at 05:33 AM

    Hi,

    Please write logic in CMOD on the basis of Material group and Plant as follows with the help of ABAPer

    IF SY-TCODE = 'MM01'.
    IF WMARC-PRCTR IS NOT INITIAL.
    SELECT SINGLE * FROM CEPC INTO WA_CEPC WHERE PRCTR = WMARC-PRCTR.
    IF SY-SUBRC NE 0.
    CONCATENATE 'Profit center -' WMARC-PRCTR ' is wrong ' INTO ERROR.
    MESSAGE: ERROR TYPE 'E'.
    ENDIF.
    ENDIF.
    ENDIF.

    IF SY-TCODE = 'MM02'.
    SELECT SINGLE * FROM MARC INTO WA_MARC1 WHERE MATNR = WMARA-MATNR.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM CEPC INTO WA_CEPC WHERE PRCTR = WA_MARC1-PRCTR.
    IF SY-SUBRC NE 0.
    CONCATENATE 'Profit center -' WMARC-PRCTR ' is wrong ' INTO ERROR.
    MESSAGE: ERROR TYPE 'E'.
    ENDIF.
    ENDIF.
    ENDIF.

    CASE WMARC-WERKS.
    WHEN ABCD
    IF WMARA-MTART EQ 'Z101' OR WMARA-MTART EQ 'Z201'.
    IF WMARC-PRCTR NE '000000AB02'.
    MESSAGE ID 'ZMMMSG01' TYPE 'E' NUMBER 000 WITH 'For plant ABCD Material type (name of material type) enter profit center AB02'.
    ENDIF.
    ELSEIF WMARA-MTART EQ 'Z102' OR WMARA-MTART EQ 'Z202'.
    IF WMARC-PRCTR NE '000000AB01'.
    MESSAGE ID 'ZMMMSG01' TYPE 'E' NUMBER 000 WITH 'For plant ABCD and material type ' enter profit center AB01'.
    ENDIF.


    Hope, this solves your issue.



    Regards,

    Tejas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2014 at 05:39 AM

    A lot of thanks all you guys for suggestions

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2014 at 05:54 AM

    Dear Mukthar Ali.,

    I checked in profit center master(KE52), but profit center 1100 and 1200 assigned to company code 1000, profit center 2100 and 2200 assgined to company code 2000, configuration ok, but all the profit center are there inactive status.when i am going to change that inactive status to active status system has not allowed to change the status.because system showing the error message, material directly assgined to profit center ,so process terminated., first i need to change profit center in material master(MM02) but system has not allowed to chnage the profit center in material master(MM02) ,because we have already posted the document with that profit center.

    Please help me sap Gurus to solve that error. i am facing that problem in production server.

    Regards.,

    NATTUDURAI

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2014 at 07:31 AM

    Hi,

    I checked the profit center master but there is profit center master are inactive status

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2014 at 07:37 AM

    Hi,

    I checked the profit center master but there is profit center master are inactive status, and also i posted the same material now also system posted to profit center 2100 for company code 1000

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2014 at 03:15 AM

    Hi.,

    Sap gurus.,

    Please provide me the steps, what are the steps is there to change material master, as per all your suggestions my understanding is we should bring the stock value 0(zero) for that relevant material.so to bring the material value zero(0) what are the steps is there and what are the T.Codes we need to use to change material master.

    Document posted to 2100 Profit Center in Co Code 1000

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      First check the material has stock. If yes, you have to issue the stock balance through movement type 201 by MIGO-Goods issue option. After that check the stock whether it is 0 or not. Then change the profit centre for the material master.

      At the time of changing it, if you get the error as " You want to change the profit center but material stock still exists". Then change the message as warning in OMT4 for area MM and msg no.335.

      Regards,

      Mukthar

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.