cancel
Showing results for 
Search instead for 
Did you mean: 

Turn off validation for contract / agreement in ME22N?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi there,

I have done this before using the extended classic scenario in SRM and it worked perfectly. Now we are only using the CLASSIC scenario and I was hoping there would be a way around the validation of the contract during PO creation.

I think the only way for now is to put the contract reference into another field for now.....like a "tracking number" field or something.....

Can you think of any other way?

Thanks

Lynton

Former Member
0 Kudos

Hi

I am not much aware of SRM workings, I gave my opinion on the message settings...

rwarri1
Active Contributor
0 Kudos

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 !

Former Member
0 Kudos

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

rwarri1
Active Contributor
0 Kudos

Hi,

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

Cheers !

Former Member
0 Kudos

Hi there,

I tried transaction "OME0" and it says "transaction does not exist".......have I got it correct?

rwarri1
Active Contributor
0 Kudos

Hi,

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

Cheers !

Former Member
0 Kudos

Hi there,

Thanks for the reply, I really appreciate it! Can you tell me how to change the message from ERROR to be a WARNING or INFORMATION message without changing SAP standard code?

I will most certainly reward points

Thanks again

Lynton

Former Member
0 Kudos

hi,

img-mm-purchasing-environment data- here you can change the status