cancel
Showing results for 
Search instead for 
Did you mean: 

Should Give Error Message

Former Member
0 Kudos

Hi all

Purchasing organization 001 assigned to company code 001,

when user want to create Vendor with P.Org 001 and comapny code 002

the system should give error message

During Vendor creation ,if the wrong purchase organisation is selected, system is allowing to create the vendor master.

Even though ,I have done the Setting in the following , the error message is not reflectiog

1. Message Control for Vendor Master Data

2.T.code : OBMSG

3.T.code : OBA5

Kinldy let me know the steps if possible let me know userexit to solve this......

Thanks & Regards

chand

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you can try this exit to prevent saving vendor data in your case.

SAPMF02K -> EXIT_SAPMF02K_001

regards,

w.

Former Member
0 Kudos

Hi Wojciech Zalech,

Thank you very much for the reply....

now the abap consulant wants write a code he is asking for the table and fleids.......

kindly help me what are the tables i need to mention for the abap consultnat.......

hope to hear back from you.....

Thanks&Regards,

Chand

Former Member
0 Kudos

Hi,

In the exit FM EXIT_SAPMF02K_001 you have your company code and Purch. Org. in the following fields:

I_LFB1-BUKRS (Company Code the vendor is being created in)

I_LFM1-EKORG (Purch. Org the vendor is being created in)

Having above, you can check in the table T024E ( here you have assignment of Purchasing Org to Company Code) if there is assignment between Purch. Org and Company Code.

Hope it helps.

Regards,

w.

Former Member
0 Kudos

Hi Wojciech Zalech,

Problem solved....

Thank you very much

Answers (0)