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

Turn off validation for contract / agreement in ME22N?

Hi there,

I am creating PO's in ECC 6.0 with reference to a contract that exists in SRM using BAPI_PO_CREATE1 and my only problem is the validation it is doing on the agreement (I think field EKKO-KONNR) that does not exist in ECC 6.0 but only in SRM.

I have been running CHECKS in ME22N on the PO I have created and it always brings up "Document XYZ does now exist". I understand it is doing a check in table EKKO for the contract and doesn't find it that is why it is complaining......

The only way I can think of is to get a reference to the "message manager" and delete that message from it......

When I debug it calls function module ME_EKKO_SINGLE_READ and this raises message "Document XYZ does not exist"....

I have found a BADI that I am thinking of implementing called ME_PROCESS_PO_CUST....it has a "CHECK" method that I may be able to use to REMOVE messages from the message manager (by including an include calld MM_MESSAGES_MAC)...

Any ideas on this? Surely a person can stop validation on the contract / agreement reference when checking a PO?

Thanks in advance

Regards

Lynton

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Apr 30, 2008 at 04:43 AM

    Hi,

    Stopping validation would mean changing standard SAP functionality. Instead you could change the message from 'error' to 'information'.

    Cheers !

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 30, 2008 at 05:45 AM

    Hi,

    Transaction is OME0. Add message 06 019 and flag it as "W".

    Cheers !

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 30, 2008 at 05:56 AM

    Hi,

    It must have changed in ECC 6.0. You can also do it via customizing as Mani has suggested.

    Materials Management --> Purchasing --> Environment Data --> Define Attributes of System Messages

    Cheers !

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rajesh,

      I have tried exactly what you recommended......and in theory it should work but it unfortunately doesn't. If I go into ME22N and enter in a specific PO and then change the "agreement" to something invalid it still brings up and ERROR message, not a warning ....something like "Document 11111 does not exist".....

      I did exactly as you said in SPRO and even added the user parameter in SUO1 for myself....and logged off and back onto SAP....still doesn't work ;-(

      But thanks anyway, I appreciate the help 😉

      Lynton

  • author's profile photo Former Member
    Former Member
    Posted on Apr 30, 2008 at 06:02 AM

    Hi

    If the contract is created in SRM, are you replicating the same in ECC 6.0.

    If not then you cannot create a PO with reference to the contract which does not exist in ECC 6.0.

    In ECC 6.0 the filed EKKO - KONNR exists.

    Changing the message may not help you...

    Thanks & Regards

    Kishore

    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.