Skip to Content
avatar image
Former Member

Error during profit center change due to status of archived scheduling agreements

Hi All,

Facing an issue with profit center change .

I am getting error message MM326 "There are still open purchasing orders", while trying to change profit center for a material

We have already taken care of the following points:

  • Stock from plant has been removed in last financial period
  • All purchasing documents are either deleted or archived

After debugging the error we found an issue with the field EKPO-LOEKZ of an archived scheduling agreement.

Typically the field should be set as "L" after deletion.

However , here we found that it was set to value "X".

We are supporting the SAP application for a customer and this archival and the subsequent editing of field EKPO-LOEKZ was done before we took over this project.

Now we would like to change this field from "X" to "L".

But we cannot make changes to an archived document.

I have the below questions:

  1. Therefore, I would like to understand if it is possible to reverse the archival of a scheduling agreement.
  2. And after we reverse the archival, is there a standard way to change EKPO-LOEKZ from "X" to "L" ?

Thanks

Akash

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 07, 2015 at 08:26 AM

    SAP does not check archived purchase orders, it only checks POs that exist in EKPO table.

    If a PO is really archived then it is no more in the EKPO table.

    Because of this I would say it is not archived, just has a wrong deletion indicator, probably caused by BAPI_PO_CHANGE which allowed this X in some releases until it was fixed with OSS note 822324 - Possible to use 'X' in POITEM-DELETE_IND in BAPI_PO_CHANGE

    Just undelete the PO item in ME22N and delete it again, it should then have a L in EKPO-LOEKZ

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Jürgen Lins

      Hi Jurgen,

      Appreciate the help. We have resolved the issue.

      One small point worth mentioning for others with this problem is that the original report was designed for purchase orders only. We extended it to change EKKO-LOEKZ field to blank for scheduling agreements as well.

      Thanks

      Akash